mqt.qudits.exceptions.circuiterror

Module Contents

exception CircuitError(message: str)[source]

Bases: Exception

Common base class for all non-exit exceptions.

exception InvalidQuditDimensionError(message: str)[source]

Bases: ValueError

Raised when the qudit dimension is invalid for the S gate.

exception ShapeMismatchError(message: str)[source]

Bases: ValueError

Raised when input arrays have mismatched shapes.