Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.MeasuredPrefix

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.

inductive Cslib.Quantum.MeasuredPrefix (ι D V W : Type) [Fintype ι] [Fintype V] [Fintype W] (B : Type) [Fintype B] :

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.

noncomputable def Cslib.Quantum.MeasuredPrefix.state {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] (step : D → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (ψ : ValueState ι V W) {B : Type} [Fintype B] :
MeasuredPrefix ι D V W B → (ι → D) → B → ValueState ι V W

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.

noncomputable def Cslib.Quantum.MeasuredPrefix.updateCost {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] {B : Type} [Fintype B] :
MeasuredPrefix ι D V W B → ℝ

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.

theorem Cslib.Quantum.MeasuredPrefix.sum_sq_state {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] (step : D → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) {B : Type} [Fintype B] (p : MeasuredPrefix ι D V W B) (ψ : ValueState ι V W) (H : ι → D) :
∑ b : B, ‖state step ψ p H b‖ ^ 2 = ‖ψ‖ ^ 2

The branches carry exactly the squared norm of the input register, even for adaptively chosen services and intermediate measurements.

noncomputable def Cslib.Quantum.MeasuredPrefix.outcomeIsometry {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] (step : D → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) {B : Type} [Fintype B] (p : MeasuredPrefix ι D V W B) (H : ι → D) :

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.

theorem Cslib.Quantum.MeasuredPrefix.updateCost_nonneg {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] {B : Type} [Fintype B] (p : MeasuredPrefix ι D V W B) :

Disturbance costs are nonnegative.

theorem Cslib.Quantum.MeasuredPrefix.sum_sq_state_update_sub_le {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] [DecidableEq ι] (step : D → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) {B : Type} [Fintype B] (p : MeasuredPrefix ι D V W B) (ψ : ValueState ι V W) (hψ : ‖ψ‖ = 1) (H : ι → D) (v : D) :
∑ i : ι, ∑ b : B, ‖state step ψ p (Function.update H i v) b - state step ψ p H b‖ ^ 2 ≤ p.updateCost ^ 2

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.

noncomputable def Cslib.Quantum.MeasuredPrefix.serviceAcceptance {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] (step : D → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) {R O : Type} [Fintype O] (run : OracleComp (fun (x : ι) => D) R) (next : R → MeasuredPrefix ι D V W O) (accept : R → Finset (O × ι × V × W)) (H : ι → D) (u : ValueState ι V W) :

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.

theorem Cslib.Quantum.MeasuredPrefix.mean_abs_serviceAcceptance_update_sub_le {ι D V W : Type} [Fintype ι] [Fintype V] [Fintype W] [DecidableEq ι] (step : D → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) {R O : Type} [Fintype O] (run : OracleComp (fun (x : ι) => D) R) (next : R → MeasuredPrefix ι D V W O) (accept : R → Finset (O × ι × V × W)) (H : ι → D) (v : D) (u : ValueState ι V W) {K : ℕ} (bound : run.IsQueryBounded K) (μ : PMF ι) {δ : ℝ} (hp : ∀ (i : ι), (μ i).toReal ≤ δ) :
∑ i : ι, (μ i).toReal * |serviceAcceptance step run next accept (Function.update H i v) u - serviceAcceptance step run next accept H u| ≤ ‖u‖ ^ 2 * √(δ * (↑K + (next (OracleComp.evalPure H run)).updateCost ^ 2))

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.