FA-91087 / Quantum circuit simulation / Member archive
Bloch vector normalizes by the norm instead of the squared norm · case 02
The unnormalized input 3|0> + 4|1> yields a vector of length 5 instead of 1.
Case contract
Input [[ar, ai], [br, bi]] for a|0> + b|1> (possibly unnormalized). Return the Bloch vector [2Re(conj(a) b), 2Im(conj(a) b), |a|^2 - |b|^2] divided by |a|^2 + |b|^2, rounded to 6 decimals, or "zero-state" when the squared norm is below 1e-12.
Why this case matters
Bloch coordinates feed visualizers and single-qubit tomography checks; sign or scale slips put states on the wrong axis.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: random qubit 2 | [-1.484464, 0.686572, -0.342584] | [-0.888347, 0.410865, -0.205012] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗