Qx.StateShapeError exception (Qx - Quantum Computing Simulator v0.8.0)

View Source

Raised when a state vector's shape does not match the expected size for the target quantum circuit.

A circuit with n qubits requires a state vector of length 2^n.