Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.PermutationInversion

Quantum query lower bound for inverting a permutation #

This module proves [Amb02], Theorem 7 (Section 6.2 of arXiv:quant-ph/0002066v1): any bounded-error quantum query algorithm that inverts a permutation π : Equiv.Perm ι at a fixed target element target : ι — finding the unique index i = π.symm target satisfying π i = target via black-box value queries (step : ι → (EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V)) to ⇑π : ι → ι — uses Ω(√|ι|) queries.

The adversary relation. Given disjoint index sets I₀, I₁ : Finset ι, let permInvLeft I₀ target be the permutations π with π.symm target ∈ I₀, and permInvRight I₁ target those with σ.symm target ∈ I₁. The relation permInvPermRel I₀ I₁ target pairs π ∈ permInvLeft I₀ target with σ = π * Equiv.swap (π.symm target) j for each j ∈ I₁:

Applying Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_mul_sqrt_value with m = #I₁, m' = #I₀, and L = max #I₀ #I₁ and canceling √(max #I₀ #I₁) via min_mul_max gives (1 - δ) √(min #I₀ #I₁) ≤ 2 T (one_sub_mul_sqrt_min_le_of_permInversion_partition). Splitting ι into halves of sizes ⌊|ι| / 2⌋ and |ι| - ⌊|ι| / 2⌋ yields:

Main definitions #

Main results #

References #

Combinatorial adversary relation on permutations #

def Cslib.Quantum.permInvLeft {ι : Type u_1} [Fintype ι] [DecidableEq ι] (I₀ : Finset ι) (target : ι) :

Permutations π : Equiv.Perm ι whose preimage π.symm target of target lies in I₀.

def Cslib.Quantum.permInvRight {ι : Type u_1} [Fintype ι] [DecidableEq ι] (I₁ : Finset ι) (target : ι) :

Permutations σ : Equiv.Perm ι whose preimage σ.symm target of target lies in I₁.

def Cslib.Quantum.permInvPermRel {ι : Type u_1} [Fintype ι] [DecidableEq ι] (I₀ I₁ : Finset ι) (target : ι) :

Ambainis's transposition adversary relation ([Amb02], Theorem 7): relates each π ∈ permInvLeft I₀ target to π * Equiv.swap (π.symm target) j for j ∈ I₁.

theorem Cslib.Quantum.mem_permInvPermRel {ι : Type u_1} [Fintype ι] [DecidableEq ι] {I₀ I₁ : Finset ι} {target : ι} {p : Equiv.Perm ι × Equiv.Perm ι} :
p ∈ permInvPermRel I₀ I₁ target ↔ (Equiv.symm p.1) target ∈ I₀ ∧ (Equiv.symm p.2) target ∈ I₁ ∧ p.2 = p.1 * Equiv.swap ((Equiv.symm p.1) target) ((Equiv.symm p.2) target)

Membership characterization of permInvPermRel I₀ I₁ target.

theorem Cslib.Quantum.permInvPermRel_swap {ι : Type u_1} [Fintype ι] [DecidableEq ι] (I₀ I₁ : Finset ι) (target : ι) :

Swapping coordinates maps permInvPermRel I₀ I₁ target onto permInvPermRel I₁ I₀ target.

theorem Cslib.Quantum.permInvPermRel_nonempty {ι : Type u_1} [Fintype ι] [DecidableEq ι] {I₀ I₁ : Finset ι} (h₀ : I₀.Nonempty) (h₁ : I₁.Nonempty) (target : ι) :
(permInvPermRel I₀ I₁ target).Nonempty

When I₀ and I₁ are nonempty, permInvPermRel I₀ I₁ target is nonempty.

theorem Cslib.Quantum.permInvPermRel_symm_ne {ι : Type u_1} [Fintype ι] [DecidableEq ι] {I₀ I₁ : Finset ι} (hdisj : Disjoint I₀ I₁) {target : ι} {p : Equiv.Perm ι × Equiv.Perm ι} (hp : p ∈ permInvPermRel I₀ I₁ target) :
(Equiv.symm p.1) target ≠ (Equiv.symm p.2) target

Every related pair across disjoint I₀ and I₁ has distinct target preimages.

theorem Cslib.Quantum.card_permInvPermRel_fst {ι : Type u_1} [Fintype ι] [DecidableEq ι] {I₀ I₁ : Finset ι} {target : ι} {p : Equiv.Perm ι × Equiv.Perm ι} (hp : p ∈ permInvPermRel I₀ I₁ target) :
{q ∈ permInvPermRel I₀ I₁ target | q.1 = p.1}.card = I₁.card

Every first permutation in permInvPermRel I₀ I₁ target has exactly #I₁ partners.

theorem Cslib.Quantum.card_permInvPermRel_snd {ι : Type u_1} [Fintype ι] [DecidableEq ι] {I₀ I₁ : Finset ι} {target : ι} {p : Equiv.Perm ι × Equiv.Perm ι} (hp : p ∈ permInvPermRel I₀ I₁ target) :
{q ∈ permInvPermRel I₀ I₁ target | q.2 = p.2}.card = I₀.card

Every second permutation in permInvPermRel I₀ I₁ target has exactly #I₀ partners.

theorem Cslib.Quantum.card_permInvPermRel_diff_mul_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] {I₀ I₁ : Finset ι} (hdisj : Disjoint I₀ I₁) {target : ι} {p : Equiv.Perm ι × Equiv.Perm ι} (hp : p ∈ permInvPermRel I₀ I₁ target) {k : ι} (hk : p.1 k ≠ p.2 k) :
{q ∈ permInvPermRel I₀ I₁ target | q.1 k ≠ q.2 k ∧ q.1 = p.1}.card * {q ∈ permInvPermRel I₀ I₁ target | q.1 k ≠ q.2 k ∧ q.2 = p.2}.card ≤ max I₀.card I₁.card

Key product bound for permutation inversion ([Amb02], proof of Theorem 7): at any differing coordinate k of (π, σ) ∈ permInvPermRel I₀ I₁ target (Disjoint I₀ I₁), one of the two directional conflict counts is 1 and the other is at most #I₁ or #I₀, so their product is at most max #I₀ #I₁.

Quantum query lower bounds for inverting a permutation #

theorem Cslib.Quantum.one_sub_mul_sqrt_min_le_of_permInversion_partition {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype V] [Fintype W] (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) {I₀ I₁ : Finset ι} (hdisj : Disjoint I₀ I₁) (target : ι) {δ : ℝ} (hδ : ∀ p ∈ permInvPermRel I₀ I₁ target, ‖inner ℂ (runValue step U ψ₀ (⇑p.1) T) (runValue step U ψ₀ (⇑p.2) T)‖ ≤ δ) :
(1 - δ) * √↑(min I₀.card I₁.card) ≤ 2 * ↑T

Partition-form overlap bound for permutation inversion: for disjoint I₀, I₁ : Finset ι, if a T-query value-query algorithm (step, U, ψ₀) (‖ψ₀‖ = 1) ends with state overlap at most δ on every pair (π, σ) ∈ permInvPermRel I₀ I₁ target, then (1 - δ) √(min #I₀ #I₁) ≤ 2 T.

theorem Cslib.Quantum.one_sub_two_mul_sqrt_mul_sqrt_min_le_of_permInversion_partition {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype V] [Fintype W] (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (out : ι × V × W → ι) {I₀ I₁ : Finset ι} (hdisj : Disjoint I₀ I₁) (target : ι) {ε : ℝ} (h₀ : ∀ π ∈ permInvLeft I₀ target, 1 - ε ≤ measureProb (runValue step U ψ₀ (⇑π) T) {q : ι × V × W | out q = (Equiv.symm π) target}) (h₁ : ∀ σ ∈ permInvRight I₁ target, 1 - ε ≤ measureProb (runValue step U ψ₀ (⇑σ) T) {q : ι × V × W | out q = (Equiv.symm σ) target}) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * √↑(min I₀.card I₁.card) ≤ 2 * ↑T

Partition-form bounded-error bound for permutation inversion: if a T-query value-query algorithm outputs π.symm target via out with probability at least 1 - ε (2 * ε ≤ 1) on every π ∈ permInvLeft I₀ target and σ ∈ permInvRight I₁ target (Disjoint I₀ I₁), then (1 - 2√(ε(1-ε))) √(min #I₀ #I₁) ≤ 2 T.

theorem Cslib.Quantum.one_sub_mul_sqrt_div_two_le_of_permInversion {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [Fintype V] [Fintype W] (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (target : ι) {δ : ℝ} (hδ : ∀ (π σ : Equiv.Perm ι), (Equiv.symm π) target ≠ (Equiv.symm σ) target → ‖inner ℂ (runValue step U ψ₀ (⇑π) T) (runValue step U ψ₀ (⇑σ) T)‖ ≤ δ) :
(1 - δ) * √↑(Fintype.card ι / 2) ≤ 2 * ↑T

Permutation inversion overlap bound ([Amb02], Theorem 7, overlap form): if on every pair of permutations π, σ : Equiv.Perm ι with π.symm target ≠ σ.symm target, a T-query value-query algorithm ends with state overlap at most δ, then (1 - δ) √⌊|ι| / 2⌋ ≤ 2 T.

theorem Cslib.Quantum.one_sub_two_mul_sqrt_mul_sqrt_div_two_le_of_permInversion {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype V] [Fintype W] (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (out : ι × V × W → ι) (target : ι) {ε : ℝ} (hcorr : ∀ (π : Equiv.Perm ι), 1 - ε ≤ measureProb (runValue step U ψ₀ (⇑π) T) {q : ι × V × W | out q = (Equiv.symm π) target}) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * √↑(Fintype.card ι / 2) ≤ 2 * ↑T

Ambainis's quantum query lower bound for inverting a permutation ([Amb02], Section 6.2, Theorem 7): any T-query value-query algorithm that outputs π.symm target via out with probability at least 1 - ε (2 * ε ≤ 1) on every permutation π : Equiv.Perm ι satisfies (1 - 2√(ε(1-ε))) √⌊|ι| / 2⌋ ≤ 2 T.

theorem Cslib.Quantum.one_sub_two_mul_sqrt_mul_sqrt_div_two_le_of_permInversion_measureOut {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [Fintype V] [Fintype W] (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (out : ι × V × W → ι) (target : ι) {ε : ℝ} (hcorr : ∀ (π : Equiv.Perm ι), ENNReal.ofReal (1 - ε) ≤ (measureOut (runValue step U ψ₀ (⇑π) T) ⋯ out) ((Equiv.symm π) target)) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * √↑(Fintype.card ι / 2) ≤ 2 * ↑T

PMF (measureOut) form of one_sub_two_mul_sqrt_mul_sqrt_div_two_le_of_permInversion, not requiring [DecidableEq ι].

theorem Cslib.Quantum.one_sub_two_mul_sqrt_mul_sqrt_sub_one_le_of_permInversion {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype V] [Fintype W] (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (out : ι × V × W → ι) (target : ι) {ε : ℝ} (hcorr : ∀ (π : Equiv.Perm ι), 1 - ε ≤ measureProb (runValue step U ψ₀ (⇑π) T) {q : ι × V × W | out q = (Equiv.symm π) target}) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * √↑(Fintype.card ι - 1) ≤ 2 * √2 * ↑T

Sharp √(|ι| - 1) form of Theorem 7 valid for every finite type ι (including |ι| = 1, where 0 queries invert the unique permutation): (1 - 2√(ε(1-ε))) √(|ι| - 1) ≤ 2 √2 T.

theorem Cslib.Quantum.one_sub_two_mul_sqrt_mul_sqrt_card_le_of_permInversion {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype V] [Fintype W] (hcard : 2 ≤ Fintype.card ι) (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (out : ι × V × W → ι) (target : ι) {ε : ℝ} (hcorr : ∀ (π : Equiv.Perm ι), 1 - ε ≤ measureProb (runValue step U ψ₀ (⇑π) T) {q : ι × V × W | out q = (Equiv.symm π) target}) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * √↑(Fintype.card ι) ≤ 2 * √3 * ↑T

√|ι| form of Theorem 7 for 2 ≤ |ι|: (1 - 2√(ε(1-ε))) √|ι| ≤ 2 √3 T.

theorem Cslib.Quantum.permInversion_div_two_lower_bound {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype V] [Fintype W] (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (out : ι × V × W → ι) (target : ι) (hcorr : ∀ (π : Equiv.Perm ι), 2 / 3 ≤ measureProb (runValue step U ψ₀ (⇑π) T) {q : ι × V × W | out q = (Equiv.symm π) target}) :
Fintype.card ι / 2 ≤ 1296 * T ^ 2

Bounded-error (ε = 1 / 3) floor-half corollary: |ι| / 2 ≤ 1296 T² for every finite type ι.

theorem Cslib.Quantum.permInversion_lower_bound {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [DecidableEq ι] [Fintype V] [Fintype W] (hcard : 2 ≤ Fintype.card ι) (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (out : ι × V × W → ι) (target : ι) (hcorr : ∀ (π : Equiv.Perm ι), 2 / 3 ≤ measureProb (runValue step U ψ₀ (⇑π) T) {q : ι × V × W | out q = (Equiv.symm π) target}) :
Fintype.card ι ≤ 3888 * T ^ 2

Bounded-error (ε = 1 / 3) permutation-inversion lower bound ([Amb02], Theorem 7): for 2 ≤ |ι|, any T-query value-query algorithm that outputs π.symm target with probability at least 2 / 3 on every π : Equiv.Perm ι satisfies |ι| ≤ 3888 T² (in particular 1 ≤ T).

theorem Cslib.Quantum.permInversion_measureOut_lower_bound {ι : Type u_1} {V : Type u_2} {W : Type u_3} [Fintype ι] [Fintype V] [Fintype W] (hcard : 2 ≤ Fintype.card ι) (step : ι → EuclideanSpace ℂ V ≃ₗᵢ[ℂ] EuclideanSpace ℂ V) (U : ℕ → ValueState ι V W →ₗᵢ[ℂ] ValueState ι V W) {ψ₀ : ValueState ι V W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (out : ι × V × W → ι) (target : ι) (hcorr : ∀ (π : Equiv.Perm ι), ENNReal.ofReal (2 / 3) ≤ (measureOut (runValue step U ψ₀ (⇑π) T) ⋯ out) ((Equiv.symm π) target)) :
Fintype.card ι ≤ 3888 * T ^ 2

PMF (measureOut) form of permInversion_lower_bound, not requiring [DecidableEq ι].