Exact state preparation normally specifies one initialized input:
The original inverse-frame Hopf decoder uses a prescribed unitary completion: the state in its first column and coordinate-frame directions in designated other columns. Its inverse resolves a common objective response.
| Synthesis task | Required action |
|---|---|
| Exact state preparation | fix |
| Hopf differential-frame compilation | fix |
This repository asks whether the prescribed Hopf completion retains the state-preparation size–depth frontier, and what finite precision costs. The publication scope fixes the full-frame claims.
The LLM reading guide maps proofs and assumptions. Resume research from the workspace checkpoint.
Both models compile the complete frame; different circuits attain their optimal resource bounds.
| Model | Resource question | Scope of the matching theorem |
|---|---|---|
| Arbitrary one-qubit gates and CNOTs | exact size, CNOT count, and depth versus clean workspace | real and phase-dressed complex magnitude frames, every clean budget |
| Clifford+T | T-count versus accuracy and clean/dirty workspace | real and phase-dressed complex magnitude frames, every precision, under the sufficient clean reservation below |
Let
and let
and
The upper bounds hold for every parameter tuple; lower bounds hold in the worst case over the Hopf-frame family, uniformly in the clean-workspace budget.
The worst-case CNOT count alone is
The real result concerns the complete Hopf differential frame. The complex result concerns the phase-dressed magnitude frame
The leaf-phase derivatives form a separate direct measurement stream; they are
not additional columns of the same
The construction restores at most
Let
For
The upper construction uses
At
Composing with a literal diagonal of separately supplied certified phases extends the
one-clean bound to phase-dressed complex
magnitude frames at
Hybrid lookup uses two clean flags and
For
At fixed accuracy, grouped programs
and chunked queries give, with two clean flags and sufficient
T-count is optimal in worst-case order. Depth optimality and the high-precision endpoint remain open; the variable-precision theorem is unchanged.
Beyond Hopf frames, literal diagonals and general one-target U(2)
multiplexors attain
Two update classes attain
- Antichain changes use zero clean qubits; no changed node is an ancestor of another.
- Sparse nested changes use one clean qubit. If S is the ancestor closure of the changed nodes, a sufficient condition is
The sparse result includes a full root-to-leaf path for every n. Both preserve the complete frame and QBP interface. Generic rounding supplies neither promise.
The Hopf frame is a product of addressed tree layers. At depth
| Workspace | Schedule | Mechanism |
|---|---|---|
| borrowed-suffix echo | one original suffix data qubit carries the predicate temporarily and is restored exactly | |
| direct flagged UCG | one reusable clean flag stores the suffix-zero predicate | |
| larger |
routed parallel subframes | a tree cut turns the tail into a direct sum; the suffix is routed coherently and the subtree frames run in parallel |
| Time | Route | Purpose |
|---|---|---|
| 5 minutes | this page | problem, theorem, and construction map |
| 30–40 minutes | complete technical narrative | shared contract, the two resource models, and the QBP consequence |
| full audit | exact theorem, T-count theorem, one-clean theorem, and verification map | proofs, register schedules, evidence limits, and source dependencies |
The documentation map includes the QBP consequence, related work, and Hopf geometry.
The complete frame satisfies
At a regular coordinate,
where
A state-preparation-equivalent completion may move these marker columns. The repository contains an exact two-qubit example in which the state is unchanged but the decoded gradient changes from
For this fixed decoder, the relevant compiler contract is
for every system input
Four imported exact tools supply the construction:
| Imported result | Role here |
|---|---|
| optimal QSP frontier | benchmark and matching comparison |
| ancilla-free multi-controlled X | zero-suffix predicates and toggles |
| all-workspace UCG synthesis | prefix-selected rotations, subtree frames, and the phase diagonal |
| coherent CNOT copy–uncopy | control fanout for the decoder and router |
The Hopf-specific contributions are the complete-operator factorization and three workspace schedules, which adapt these primitives while preserving marker columns.
The normative compiler citation is:
P. Yuan and S. Zhang, “Optimal (controlled) quantum state preparation and improved unitary synthesis by quantum circuits with any number of ancillary qubits,” Quantum 7, 956 (2023).
Frame-safe compilation preserves the complete inverse-frame measurement distribution. Under the primary finite-shot target of simultaneous absolute accuracy for the raw Hopf-coordinate gradient, the global magnitude stream uses
independent executions at fixed accuracy and confidence, where
This is a matched-program statement: scalar and gradient programs use the same
forward preparation family and controlled observable, while the gradient
program adds one inverse frame of the same asymptotic logical depth as optimal
state preparation. Classical materialization of an
At finite precision, the approximation bridge controls the bias of the same fixed-parameter, bounded-score estimator. It uses the actual compiled circuit and its actual adjoint. It does not differentiate a discontinuous family of compiled words. Frame-synthesis lower bounds alone do not establish optimal gradient-query or training complexity. The same proof now covers the complete complex gradient, reflection-sum observables, rounded classical weights, and correlated dirty-bank reuse between executions with fresh declared clean inputs.
The separate state-based QBP theorem
changes the decoder and avoids compiling the fine complete frame.
For real and phase-dressed complex Hopf states, observable coefficient norm
Checks cover complete logical identities, explicit decoder/router gates, arbitrary-entangled inputs, exact resource ledgers, and gradient decoders.
UCG and multi-controlled-X decompositions are imported. Finite checks expose indexing, phase, order, cleanup, and resource errors; the asymptotic claims rest on proofs.
The fault-tolerant evidence adds exact finite source/kernel identities and rational resource checks. It does not yet provide a general elementary emitter for the complete asymptotic shared-source compiler. See the focused reproduction guide.
Device connectivity, physical noise thresholds, the full T-depth frontier, arbitrary non-Hopf charts, and application-independent observable costs remain outside the claims. Clifford work, T work, quantum executions, and classical output costs are reported separately.
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python scripts/reviewer_walkthrough.py
python validate.py
python scripts/verify_fault_tolerant.py
python scripts/unified_resource_ledger.py --n 12
python scripts/strict_zero_echo_ledger.py --n 12| Repository | Role |
|---|---|
Hopf-ansatz |
coordinate chart, inverse map, metric, tangent preparation, and optimization interface |
Hopf-QBP |
global, direct-phase, and checkpoint gradient records, including the earlier Möttönen-style robustness result |
| This repository | complete-frame contracts, exact and fault-tolerant compilation, and their scoped QBP consequences |
Evidence and sources delimit the claims. The repository uses the MIT license.