Quantum query prefixes with measured classical oracle services #
An interaction prefix alternates coherent queries, measurements and classical subroutines. Classical labels remember the measured outcomes and returned replies. The quantum register is retained on every branch. A classical subroutine can adapt its internal queries to the actual table. Each is counted even when the subroutine eventually returns an error.
A finite interaction before a fresh address is sampled. The label type contains all outward classical information. Control depends on these labels; coherent queries act on the entire private quantum register and produce no classical query transcript.
- start {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] : MeasuredPrefix ι D V W Unit
The empty prefix acting on the supplied quantum register.
- localGate {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] {B : Type} [history : Fintype B] (prior : MeasuredPrefix ι D V W B) (applyGate : B → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) : MeasuredPrefix ι D V W B
A table-independent isometry selected by the observed classical history.
- coherent {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] {B : Type} [history : Fintype B] (prior : MeasuredPrefix ι D V W B) (enabled : B → Bool) (gate : B → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) : MeasuredPrefix ι D V W B
Conditional coherent query followed by a branch-dependent isometry.
- measure {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] {B M : Type} [history : Fintype B] [labels : Fintype M] [eqLabel : DecidableEq M] (prior : MeasuredPrefix ι D V W B) (read : B → ι × V × W → M) : MeasuredPrefix ι D V W (B × M)
Measure a classical label and retain the associated projected state.
- service {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] {B R : Type} [history : Fintype B] [labels : Fintype R] [eqLabel : DecidableEq R] (prior : MeasuredPrefix ι D V W B) (run : B → OracleComp (fun (x : ι) => D) R) (K : ℕ) (budget : ∀ (b : B), (run b).IsQueryBounded K) : MeasuredPrefix ι D V W (B × R)
Run an adaptive classical service on the same fixed table and record the outward reply. Internal reads occur in the service only.
Unnormalized residual vector at an actual outward history. Its squared norm is the probability of that history. The classical service returns the answer computed from the table.
The sum of the per-call disturbance factors. A coherent call contributes two and a
classical service inspecting at most K table entries contributes √(2K). Local gates and
measurements have zero cost.
The branches carry exactly the squared norm of the input register, even for adaptively chosen services and intermediate measurements.
Collect all outward records and retained amplitudes of the actual measured computation. Its squared amplitude at each label is the probability of that record and final basis outcome.
Disturbance costs are nonnegative.
Sum, over changed table addresses and all outward histories, of the squared difference between the two retained states. The estimate includes all earlier adaptive classical services and coherent calls on this same table.
Acceptance when a bounded classical service returns a reply and the adversary resumes its measured quantum computation on the same table, starting in the supplied residual state.
Expected change caused by one hidden table update before a bounded classical service and an arbitrary adaptive quantum continuation. Only the actual classical accesses at H can alter its reply. On every other address, the single unchanged reply selects the same circuit.