Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.ValueQueryUpdate

Changing one entry of a coherent value oracle #

The query-magnitude argument of Bennett et al., Theorem 3.3 bounds the effect of changing oracle answers on the state of a quantum algorithm. Here each symbol selects a unitary on the response register, which includes a multi-bit XOR oracle and arbitrary workspace.

After T coherent queries, the adversary produces a classical message by measuring its state. The challenger samples an address from a message-dependent distribution with point probabilities at most δ and reveals the address. Refreshing the oracle there changes the final acceptance probability by at most 2 T √δ. The continuation has the residual quantum state and the current table. The bound covers one programming event.

theorem Cslib.Quantum.norm_valueOracle_update_sub_le {ι : Type u_1} {V : Type u_2} {W : Type u_3} {α : Type u_4} [Fintype ι] [Fintype V] [Fintype W] [DecidableEq ι] (step : α → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (H : ι → α) (ψ : ValueState ι V W) (i : ι) (v : α) :
‖(valueOracle step (Function.update H i v)) ψ - (valueOracle step H) ψ‖ ≤ 2 * ‖querySlice i ψ‖

Replacing a single table entry changes only its query slice.

theorem Cslib.Quantum.norm_runValue_update_sub_le {ι : Type u_1} {V : Type u_2} {W : Type u_3} {α : Type u_4} [Fintype ι] [Fintype V] [Fintype W] [DecidableEq ι] (step : α → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (H : ι → α) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) (ψ : ValueState ι V W) (i : ι) (v : α) (T : ℕ) :
‖runValue step U ψ (Function.update H i v) T - runValue step U ψ H T‖ ≤ 2 * ∑ t ∈ Finset.range T, ‖querySlice i (runValue step U ψ H t)‖

The distance from changing one table entry is at most twice the sum of the unmodified run's query amplitudes at that index.

theorem Cslib.Quantum.sum_sq_norm_projOutcomes_fibers {B : Type u_5} {M : Type u_6} [Fintype B] [Fintype M] [DecidableEq M] (readout : B → M) (ϕ : EuclideanSpace ℂ B) :
∑ m : M, ‖(projOutcomes fun (x : B) => readout x = m) ϕ‖ ^ 2 = ‖ϕ‖ ^ 2

Squared norms sum to the input norm squared across the fibers of a basis readout.

theorem Cslib.Quantum.abs_branch_refresh_le {ι : Type u_1} {α : Type u_4} [Fintype ι] [DecidableEq ι] {M : Type u_5} {Y : Type u_6} {B : Type u_7} {κ : Type u_8} [Fintype M] [Fintype Y] [Fintype B] [Fintype κ] [Fintype α] [Nonempty α] (branch : (ι → α) → M → EuclideanSpace ℂ B) (norm : ∀ (H : ι → α), ∑ m : M, ‖branch H m‖ ^ 2 = 1) {cost : ℝ} (hcost : 0 ≤ cost) (sensitivity : ∀ (H : ι → α) (v : α), ∑ i : ι, ∑ m : M, ‖branch (Function.update H i v) m - branch H m‖ ^ 2 ≤ cost ^ 2) (p : M → PMF Y) (address : M → Y → ι) {δ : NNReal} (hp : ∀ (m : M) (i : ι), ((PMF.map (address m) (p m)) i).toReal ≤ ↑δ) (post : (ι → α) → M → Y → EuclideanSpace ℂ B →ₗᵢ[ℂ] EuclideanSpace ℂ κ) (accept : (ι → α) → M → Y → Finset κ) :
|(Finset.univ.expect fun (hv : (ι → α) × α) => ∑ m : M, ∑ y : Y, ((p m) y).toReal * measureProb ((post (Function.update hv.1 (address m y) hv.2) m y) (branch hv.1 m)) (accept (Function.update hv.1 (address m y) hv.2) m y)) - Finset.univ.expect fun (hv : (ι → α) × α) => ∑ m : M, ∑ y : Y, ((p m) y).toReal * measureProb ((post hv.1 m y) (branch hv.1 m)) (accept hv.1 m y)| ≤ cost * √↑δ

A fresh table update at a sampled address after a normalized family of retained measurement branches. The full private coin giving the address remains available to the continuation. The weighted change of the final Born probability is controlled by the proven squared sensitivity of the prefix under a single table update.

theorem Cslib.Quantum.abs_readout_reprogrammed_measureProb_sub_le {ι : Type u_1} {V : Type u_2} {W : Type u_3} {α : Type u_4} [Fintype ι] [Fintype V] [Fintype W] [DecidableEq ι] (step : α → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) (ψ : ValueState ι V W) {M : Type u_5} {κ : Type u_6} [Fintype M] [DecidableEq M] [Fintype κ] [Fintype α] [Nonempty α] (hψ : ‖ψ‖ = 1) (T : ℕ) (readout : ι × V × W → M) (p : M → PMF ι) {δ : NNReal} (hp : ∀ (m : M) (i : ι), ((p m) i).toReal ≤ ↑δ) (post : (ι → α) → M → ι → ValueState ι V W →ₗᵢ[ℂ] EuclideanSpace ℂ κ) (accept : (ι → α) → M → ι → Finset κ) :
|(Finset.univ.expect fun (hv : (ι → α) × α) => ∑ m : M, ∑ i : ι, ((p m) i).toReal * measureProb ((post (Function.update hv.1 i hv.2) m i) ((projOutcomes fun (x : ι × V × W) => readout x = m) (runValue step U ψ hv.1 T))) (accept (Function.update hv.1 i hv.2) m i)) - Finset.univ.expect fun (hv : (ι → α) × α) => ∑ m : M, ∑ i : ι, ((p m) i).toReal * measureProb ((post hv.1 m i) ((projOutcomes fun (x : ι × V × W) => readout x = m) (runValue step U ψ hv.1 T))) (accept hv.1 m i)| ≤ 2 * ↑T * √↑δ

One reprogramming after a classical message is measured from the quantum adversary's state. Conditioned on the message, the challenger draws an address from its specified distribution, with point masses bounded by δ. The continuation sees the message, address and current table. Its distinguishing advantage after T prior coherent queries is at most 2 T √δ.

theorem Cslib.Quantum.abs_reprogrammed_measureProb_sub_le {ι : Type u_1} {V : Type u_2} {W : Type u_3} {α : Type u_4} [Fintype ι] [Fintype V] [Fintype W] [DecidableEq ι] (step : α → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) (ψ : ValueState ι V W) {κ : Type u_5} [Fintype κ] [Fintype α] [Nonempty α] (hψ : ‖ψ‖ = 1) (T : ℕ) (p : PMF ι) {δ : ℝ} (hp : ∀ (i : ι), (p i).toReal ≤ δ) (post : (ι → α) → ι → ValueState ι V W →ₗᵢ[ℂ] EuclideanSpace ℂ κ) (accept : (ι → α) → ι → Finset κ) :
|(Finset.univ.expect fun (hv : (ι → α) × α) => ∑ i : ι, (p i).toReal * measureProb ((post (Function.update hv.1 i hv.2) i) (runValue step U ψ hv.1 T)) (accept (Function.update hv.1 i hv.2) i)) - Finset.univ.expect fun (hv : (ι → α) × α) => ∑ i : ι, (p i).toReal * measureProb ((post hv.1 i) (runValue step U ψ hv.1 T)) (accept hv.1 i)| ≤ 2 * ↑T * √δ

One reprogramming in a finite quantum random oracle. After T coherent queries to a uniform table, the challenger reveals an independently drawn point and optionally refreshes its value. Both continuations see the point and the current table and may act on the retained state. The bound applies to their final measurement, including table- and point-dependent tests.