Statefold

Statefold examples

A two-qubit Bell pair.

Bell state
from zius.quantum.statefold import StateVector

sv = StateVector(num_qubits=2)
sv.h(0)
sv.cx(0, 1)
print(sv.probabilities())