跳转至

CoreException

QuICT.tools.exception.core.core_exception

CheckPointNoChildError

CheckPointNoChildError(msg: str = None)

Bases: QuICTException

The CheckPointChildren not found Error.

Source code in QuICT/tools/exception/core/core_exception.py
def __init__(self, msg: str = None):
    super().__init__(1011, msg)

QubitMeasureError

QubitMeasureError(msg: str = None)

Bases: QuICTException

Qubit's Measure Error.

Source code in QuICT/tools/exception/core/core_exception.py
def __init__(self, msg: str = None):
    super().__init__(1010, msg)

TypeError

TypeError(locate: str, require: str, given: str)

Bases: QuICTException

Type Error in Core Module, including Layout, Fidelity, Qureg, ...

Source code in QuICT/tools/exception/core/core_exception.py
6
7
8
def __init__(self, locate: str, require: str, given: str):
    msg = f"{locate}'s type should be {require}, but given {given}."
    super().__init__(1001, msg)