neuralqx.experimental.utils.errors module

exception InvalidSU2CutoffError(value)

Bases: neuralqxError

Raised when two_j_max is not a valid non-negative integer cutoff.

exception InvalidSU2StateLayoutError(expected_size, got)

Bases: neuralqxError

Raised when a state has the wrong shape for a compiled SU(2) layout.

exception SU2ChannelConstructionFailureError(vertex, edge_spins)

Bases: neuralqxError

Raised when local channels cannot be completed for supplied edge spins.

exception SU2ExactEnumerationTooLargeError(max_states)

Bases: neuralqxError

Raised when exact-mode enumeration exceeds the configured guard.

exception neuralqxError(msg)

Bases: Exception

exception SU2UnconstrainedNotImplementedError

Bases: neuralqxError

Raised when users request the magnetic-index SU(2) link space.

exception UnsupportedRecouplingSchemeError(recoupling)

Bases: neuralqxError

Raised when a recoupling tree kind is not supported yet.