Fit Historic Series (log-linear)
fit_historic_seriesFit a log-linear trend (ln(value) = slope * year + intercept) to one historic series — fidelity or qubit-count — for one hardware type. Atomic primitive: compose with list_current_quantum_computers, compute_required_error_rate, or your own modelling to answer "when might hardware reach X?". residualStdDev is the BIASED (maximum-likelihood) RMS — divides by n, not (n - 2); on small series (n ≈ 3–5) inflate by √(n / (n - 2)) before building confidence intervals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seriesType | Yes | Which historic series to fit: "fidelity" (2-qubit gate error rate) or "qubit-count" (physical qubits). | |
| targetValue | No | Optional. When supplied, the response includes yearAtTargetValue — the extrapolated year the fit crosses this value (error rate for fidelity series, qubit count for qubit-count series). Null if slope is flat. | |
| hardwareType | Yes | Hardware platform as used by get_historic_series. |