Execution on Classiq simulators
Classiq offers execution on simulators that are located at the Classiq backend.
Tip
These simulators don't require an account on a different cloud, and are usually fast to execute.
Simulator Usage
from classiq.execution import ClassiqBackendPreferences
preferences = ClassiqBackendPreferences(
backend_name="Name of requested quantum simulator"
)
Classiq supports following simulators:
-
simulator
, a general-purpose quantum simulator. -
simulator_statevector
, which returns the full state vector. Since the state vector is exponentially large, this simulator is only suitable for small circuits. -
simulator_density_matrix
, a simulator based on density matrices. -
simulator_matrix_product_state
, which is efficient for simulating circuits with a low level of entanglement.
The enum ClassiqSimulatorBackendNames
contains these names.
Nvidia Simulator Usage
Execution on Nvidia simulators requires specific license permissions. Before first use, contact Classiq support.
from classiq.execution import ClassiqBackendPreferences
preferences = ClassiqBackendPreferences(backend_name="nvidia_state_vector_simulator")
Note
The number of execution requests to the NVIDIA simulator may be limited. If you encounter any problem, contact Classiq support.