FA-91097 / Quantum circuit simulation / Member archive
Reduced density matrix matches on the kept qubit instead of the environment · case 02
A Bell state reduces to a matrix with coherences instead of the maximally mixed I/2.
Case contract
Input [n, amps, keep]; trace out every qubit except keep (0 = LSB) from the pure state and return {"rho": 2x2 matrix of [re, im] entries with rho[r][c] = sum psi_r psi_c^*, trace-normalized, "purity": sum |rho_rc|^2}, all rounded to 6 decimals.
Why this case matters
Reduced states quantify entanglement and are used in debugging subsystem behavior; index or conjugation slips give non-physical matrices.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: random reduction 2 | {"purity": 0.532768, "rho": [[[0.628, 0.0], [0.0, 0.0]], [[0.0, 0.0], [0.372, 0.0]]]} | {"purity": 0.676383, "rho": [[[0.313851, 0.0], [-0.134578, -0.188226]], [[-0.134578, 0.188226], [0.686149, 0.0]]]} | 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 ↗