跳转至

SimulationException

QuICT.tools.exception.simulation.simulation_exception

GateAlgorithmNotImplementError

GateAlgorithmNotImplementError(msg: str = None)

Bases: QuICTException

The algorithm of simulate quantum gate is not implemented.

Source code in QuICT/tools/exception/simulation/simulation_exception.py
def __init__(self, msg: str = None):
    super().__init__(2005, msg)

GateTypeNotImplementError

GateTypeNotImplementError(msg: str = None)

Bases: QuICTException

The given gate is not implemented in simulation.

Source code in QuICT/tools/exception/simulation/simulation_exception.py
def __init__(self, msg: str = None):
    super().__init__(2002, msg)

SampleBeforeRunError

SampleBeforeRunError(msg: str)

Bases: QuICTException

Simulation sample before run error.

Source code in QuICT/tools/exception/simulation/simulation_exception.py
def __init__(self, msg: str):
    super().__init__(2001, msg)

SimulationMatrixError

SimulationMatrixError(msg: str)

Bases: QuICTException

Simulation Matrix Error

Source code in QuICT/tools/exception/simulation/simulation_exception.py
def __init__(self, msg: str):
    super().__init__(2003, msg)

SimulatorOptionsUnmatchedError

SimulatorOptionsUnmatchedError(msg: str)

Bases: QuICTException

The backend and optional arguments is not matched in the simulation.

Source code in QuICT/tools/exception/simulation/simulation_exception.py
def __init__(self, msg: str):
    super().__init__(2007, msg)

StateVectorUnmatchedError

StateVectorUnmatchedError(msg: str)

Bases: QuICTException

The State Vector is not matched the simulation.

Source code in QuICT/tools/exception/simulation/simulation_exception.py
def __init__(self, msg: str):
    super().__init__(2004, msg)

UnitaryMatrixUnmatchedError

UnitaryMatrixUnmatchedError(msg: str)

Bases: QuICTException

The State Vector is not matched the simulation.

Source code in QuICT/tools/exception/simulation/simulation_exception.py
def __init__(self, msg: str):
    super().__init__(2006, msg)