QuimbSimulator
class QuimbSimulator(quimb_circuit_factory, autodiff_backend=None, progbar=False)
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
- quimb_circuit_factory (QuimbCircuitFactory)
- autodiff_backend (str | None)
- progbar (bool)
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()
.