Qx.BasisError exception (Qx - Quantum Computing Simulator v0.9.0)
View SourceRaised when a computational basis value is not 0 or 1.
Carries the offending :value so callers can pattern-match on the cause
rather than parsing the message.
Like Qx.ParameterError, this exception omits the
exception(message) when is_binary fallback: a basis value may be any
term — a binary included — so every value is captured in :value, never
treated as a pre-formatted message.