FAILURE MAP
← Case archive

FA-91214 / Quantum circuit simulation / Member archive

Grover planner reports zero marked items as invalid input · case 04

M = 0 yields "invalid" instead of "no-solution".

Member previewVariant 4 · 3 implementations · 6 checks per implementation

Case contract

Input [N, M]. "invalid" if N < 1, M < 0 or M > N; "no-solution" if M == 0; if 2M >= N return {"iterations": 0, "success": M/N}; else theta = asin(sqrt(M/N)), k = floor(pi/(4 theta)) and success = sin^2((2k+1) theta). Probabilities rounded to 6 decimals.

Why this case matters

Choosing the Grover iteration count wrongly overshoots the amplitude peak and collapses the success probability.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: no marked items"invalid""no-solution"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 ↗