Compute Required Error Rate (Inverse)
compute_required_error_rateInverse of compute_expectation. Given a circuit (numQubits, compDepth) and an acceptable effective error rate, return the required per-gate logical error rate (requiredLogicalErrorRatePerGate: a number, or null only when the target is genuinely unreachable; never 0) and, for every EC option (no-EC, surface-code per distance, every qLDPC code), the required physical error rate plus the subset of current SOTA hardware that already qualifies. An option whose inverse lands above the code threshold is capped at min(MAX_P, threshold) and carries a note (any sub-threshold p satisfies it); unreachableReason is reserved for genuinely unreachable options. Answers "what hardware do I need to run this algorithm?".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compDepth | Yes | Circuit depth d (sequential 2-qubit gate layers). Accepts values up to 1e13. | |
| numQubits | Yes | Number of logical qubits n in the circuit. | |
| acceptableErrorRatePercent | Yes | Upper bound on the effective error rate, as a percent. Default website convention is 33 (i.e. ≤33% effective error is "acceptable"). |