Skip to main contentIBM Quantum Documentation
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

QuimbSimulator

class QuimbSimulator(quimb_circuit_factory, autodiff_backend=None, progbar=False)

GitHub

Bases: TensorNetworkSimulationSettings

Settings for Quimb simulator.

This is compatible with both Quimb’s MPS simulator, which eagerly contracts gates by default, as well as Quimb’s standard method for circuit simulation.

Example usage:

from functools import partial
import quimb.tensor
from qiskit_addon_aqc_tensor.simulation.quimb import QuimbSimulator
 
simulator_settings = QuimbSimulator(
    partial(
        quimb.tensor.CircuitMPS,
        gate_opts={"cutoff": 1e-8},
    ),
    autodiff_backend="jax",
)

For additional options, see the API documentation for quimb.tensor.Circuit and quimb.tensor.CircuitMPS.


Attributes

Parameters

autodiff_backend

Type: Optional[str]

Default value: None

progbar

Type: bool

Default value: False

Whether to display a progress bar while applying gates.

quimb_circuit_factory

Type: QuimbCircuitFactory

Callable for constructing the Quimb circuit, e.g., Circuit() or CircuitMPS().

Was this page helpful?
Report a bug or request content on GitHub.