FAILURE MAP
← Case archive

FA-91104 / Quantum circuit simulation / Member archive

Reduced density matrix conjugates the row amplitude · case 04

For 0.6|0> + 0.8i|1> the off-diagonal entry rho[0][1] is +0.48i instead of -0.48i (the transpose).

Member previewVariant 4 · 3 implementations · 7 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: random reduction 8{"purity": 0.653843, "rho": [[[0.578893, 0.0], [0.238878, 0.116767]], [[0.238878, -0.116767], [0.421107, 0.0]]]}{"purity": 0.653843, "rho": [[[0.578893, 0.0], [0.238878, -0.116767]], [[0.238878, 0.116767], [0.421107, 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 ↗