Documentation

CslibFrontier.Computability.Complexity.Classes.BQP.Time

Quantum time classes #

BQTIME enc t (Cslib.Complexity.BQTIME) is the class of problems decided with bounded error by the polynomial-time uniform families of quantum circuits of Cslib.Complexity.BQP whose circuits for inputs of length n have at most c₁ t n + c₂ gates, for constants c₁ and c₂. The gate count plays the role of running time.

The families are polynomial-time uniform, so every circuit has polynomially many gates anyway, and BQTIME enc t is only meaningful for polynomially bounded t: it always lies in BQP (Cslib.Complexity.BQTIME_subset_BQP), and the gate bound no longer constrains the family once t dominates every polynomial. BQP is the union of the classes BQTIME[n ^ k] (Cslib.Complexity.BQP_eq_iUnion_BQTIME).

The same families with the same gate bounds define three more classes, by other acceptance conditions:

Main definitions #

Main results #

References #

def Cslib.Complexity.BQTIME {α : Type} (enc : α ↪ List Bool) (t : ℕ → ℕ) :
Set (Set α)

Bounded-error quantum time t: the problems decided with bounded error, with respect to the encoding enc of instances, by a polynomial-time uniform family of quantum circuits over the Hadamard, NOT, CNOT and Toffoli gates (Cslib.Quantum.UniformCircuitFamily) whose circuit for inputs of length n has at most c₁ t n + c₂ gates. Members are accepted with probability at least 2 / 3 and other instances with probability at most 1 / 3.

Since the families are polynomial-time uniform, their circuits have polynomially many gates in any case, so the class is only meaningful for polynomially bounded t.

def Cslib.Complexity.NQTIME {α : Type} (enc : α ↪ List Bool) (t : ℕ → ℕ) :
Set (Set α)

Nondeterministic quantum time t: the problems whose members, with respect to the encoding enc of instances, are exactly the instances accepted with nonzero probability by a polynomial-time uniform family of quantum circuits over the Hadamard, NOT, CNOT and Toffoli gates (Cslib.Quantum.UniformCircuitFamily) whose circuit for inputs of length n has at most c₁ t n + c₂ gates.

def Cslib.Complexity.EQTIME {α : Type} (enc : α ↪ List Bool) (t : ℕ → ℕ) :
Set (Set α)

Exact quantum time t over the Hadamard, NOT, CNOT and Toffoli gates: the problems decided without error, with respect to the encoding enc of instances, by a polynomial-time uniform family of quantum circuits whose circuit for inputs of length n has at most c₁ t n + c₂ gates. Members are accepted with probability 1 and other instances with probability 0.

def Cslib.Complexity.PostBQTIME {α : Type} (enc : α ↪ List Bool) (t : ℕ → ℕ) :
Set (Set α)

Postselected bounded-error quantum time t: the problems decided with bounded error after postselection, with respect to the encoding enc of instances, by a polynomial-time uniform family of quantum circuits over the Hadamard, NOT, CNOT and Toffoli gates whose circuit for inputs of length n has at most c₁ t n + c₂ gates. On every instance qubit 1 reads 1 with nonzero probability, and conditioned on that (Cslib.Quantum.UniformCircuitFamily.postselectedAcceptProb) members are accepted with probability at least 2 / 3 and other instances with probability at most 1 / 3.

theorem Cslib.Complexity.EQTIME_subset_NQTIME {α : Type} {enc : α ↪ List Bool} (t : ℕ → ℕ) :
EQTIME enc t ⊆ NQTIME enc t

Exact quantum time is nondeterministic quantum time: a probability that is 0 or 1 is positive exactly when it is 1.

theorem Cslib.Complexity.EQTIME_subset_BQTIME {α : Type} {enc : α ↪ List Bool} (t : ℕ → ℕ) :
EQTIME enc t ⊆ BQTIME enc t

Exact quantum time is bounded-error quantum time.

theorem Cslib.Complexity.BQTIME_subset_BQP {α : Type} {enc : α ↪ List Bool} (t : ℕ → ℕ) :
BQTIME enc t ⊆ BQP enc

Every BQTIME class lies in BQP.

theorem Cslib.Quantum.UniformCircuitFamily.exists_polynomial_gate_bound (F : UniformCircuitFamily) :
∃ (d : ℕ) (c₁ : ℕ) (c₂ : ℕ), ∀ (n : ℕ), (F.gates n).length ≤ c₁ * n ^ d + c₂

The gate count of a polynomial-time uniform circuit family has a polynomial bound in the length of the input.

theorem Cslib.Complexity.BQP_eq_iUnion_BQTIME {α : Type} {enc : α ↪ List Bool} :
BQP enc = ⋃ (k : ℕ), BQTIME enc fun (n : ℕ) => n ^ k

BQP is the union of the polynomial quantum time classes BQTIME[n ^ k]: the circuits of a polynomial-time uniform family have polynomially many gates.