_exceptions
qoptcraft.state._exceptions
NotHermitianError()
Bases: ValueError
The matrix is not hermitian.
Source code in qoptcraft/state/_exceptions.py
36 37 38 | |
NumberModesError()
Bases: ValueError
Not all states have the same number of modes.
Source code in qoptcraft/state/_exceptions.py
28 29 30 | |
NumberPhotonsError()
Bases: ValueError
Not all states have the same number of photons.
Source code in qoptcraft/state/_exceptions.py
20 21 22 | |
ProbabilityError(sum_probs)
Bases: ValueError
Probabilities don't add up to 1.
Source code in qoptcraft/state/_exceptions.py
4 5 6 | |
PureStateLengthError()
Bases: ValueError
States and probabilities differ in length.
Source code in qoptcraft/state/_exceptions.py
12 13 14 | |