Source code for mqt.ddsim.pathstatevectorsimulator
"""Backend for DDSIM."""from__future__importannotationsfromqiskit.transpilerimportTargetfrom.pathqasmsimulatorimportPathQasmSimulatorBackend
[docs]classPathStatevectorSimulatorBackend(PathQasmSimulatorBackend):"""Python interface to MQT DDSIM Simulation Path Framework."""_SHOW_STATE_VECTOR=True_Path_SV_TARGET=Target(description="MQT DDSIM Simulation Path Framework Statevector Target",num_qubits=30,# corresponds to 16GiB memory for storing the full statevector)def__init__(self)->None:"""Constructor for the DDSIM Simulation Path Framework Statevector Simulator backend."""super().__init__(name="path_sim_statevector_simulator",description="MQT DDSIM Simulation Path Framework Statevector Simulator",)@propertydeftarget(self)->Target:"""Return the target of the backend."""returnself._Path_SV_TARGET