FAILURE MAP
← Case archive

FA-91322 / Quantum circuit simulation / Member archive

T-count charges identity rotations as Clifford gates · case 02

rz(0) and rz(2pi) each add one Clifford.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Input a gate list. t and tdg count one T each; h, s, sdg, x, y, z, cx, cz, swap count one Clifford; ccx costs 7 T and 8 Clifford; ["rz", q, a] with a in units of pi reduced mod 2 is skipped if 0, Clifford if a multiple of 1/2, one T if an odd multiple of 1/4, else ["unsupported", index]; other names give ["unknown-gate", index]. Return {"t_count", "clifford_count"}.

Why this case matters

T-count is the dominant fault-tolerant cost metric; misclassifying rotations skews resource estimates.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: random t-count 0{"clifford_count": 1, "t_count": 2}{"clifford_count": 0, "t_count": 2}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 ↗