quri_parts.itensor.estimator module#

ITensorStateT#

A type alias for state classes supported by ITensor estimators. ITensor estimators support circuit states.

ITensorParametricStateT#

A type alias for parametric state classes supported by ITensor estimators. ITensor estimators support circuit states.

create_itensor_mps_estimator(*, maxdim=None, cutoff=None, **kwargs)#

Returns a QuantumEstimator that uses ITensor MPS simulator to calculate expectation values.

The following parameters including keyword arguments **kwargs are passed to ITensors.apply.

Parameters:
  • maxdim (Optional[int]) – The maximum number of singular values.

  • cutoff (Optional[float]) – Singular value truncation cutoff.

  • kwargs (Any) –

Return type:

QuantumEstimator[ITensorStateT]

create_itensor_mps_concurrent_estimator(executor=None, concurrency=1, *, maxdim=None, cutoff=None, **kwargs)#

Returns a ConcurrentQuantumEstimator that uses ITensor MPS simulator to calculate expectation values.

For now, this function works when the executor is defined like below

Examples

>>> with ProcessPoolExecutor(
        max_workers=2, mp_context=get_context("spawn")
    ) as executor:

The following parameters including keyword arguments **kwargs are passed to ITensors.apply.

Parameters:
  • maxdim (Optional[int]) – The maximum number of singular values.

  • cutoff (Optional[float]) – Singular value truncation cutoff.

  • executor (Optional['Executor']) –

  • concurrency (int) –

  • kwargs (Any) –

Return type:

ConcurrentQuantumEstimator[ITensorStateT]

create_itensor_mps_parametric_estimator(*, maxdim=None, cutoff=None, **kwargs)#

Creates parametric estimator that uses ITensor MPS simulator to calculate expectation values.

The following parameters including keyword arguments **kwargs are passed to ITensors.apply.

Parameters:
  • maxdim (Optional[int]) – The maximum number of singular values.

  • cutoff (Optional[float]) – Singular value truncation cutoff.

  • kwargs (Any) –

Return type:

ParametricQuantumEstimator[ITensorParametricStateT]

create_itensor_mps_concurrent_parametric_estimator(executor=None, concurrency=1, *, maxdim=None, cutoff=None, **kwargs)#

Creates concurrent parametric estimator from parametric estimator.

The following parameters including keyword arguments **kwargs are passed to ITensors.apply.

Parameters:
  • maxdim (Optional[int]) – The maximum number of singular values.

  • cutoff (Optional[float]) – Singular value truncation cutoff.

  • executor (Optional['Executor']) –

  • concurrency (int) –

  • kwargs (Any) –

Return type:

ConcurrentParametricQuantumEstimator[ITensorParametricStateT]