FAILURE MAP
← Case archive

FA-90942 / Quantum circuit simulation / Member archive

Pauli expectation omits complex conjugation of the bra · case 02

Complex states return expectations that differ from <psi|P|psi>, e.g. <X> on |+i> is nonzero.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Input [n, amps, pauli]; pauli is an n-character string over I,X,Y,Z whose rightmost character acts on qubit 0 (LSB). Return the real expectation <psi|P|psi>/<psi|psi> rounded to 6 decimals. Errors: "length-mismatch", "bad-pauli" (any character outside uppercase IXYZ).

Why this case matters

Pauli expectation values are the observable layer of variational algorithms; string-order or phase slips bias every energy estimate.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: random expectation 2-0.523769-0.200793Failed

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 ↗