Expand description
Discrete Wigner function visualization for n=1 and n=2 qubit states.
Implements Wootters’ discrete phase-space Wigner function using the displacement-operator basis {I, X, Z, Y} for n=1 and its tensor-product extension for n=2.
§Scope
Strictly limited to n=1 (4 phase-space points) and n=2 (16 points). Returns an error for n ≥ 3 because the GF(2^n) construction is research-grade and has multiple inequivalent definitions.
Functions§
- wigner_
plotly_ json - Discrete Wigner function for n=1 (4-point) or n=2 (16-point) states.