Polynomial-time uniform families of quantum circuits #
A uniform family of quantum circuits (Cslib.Quantum.UniformCircuitFamily) gives, for inputs of
length n, an m-qubit register with m = width n ≥ n and the gate codes gates n of a circuit
over the Hadamard, NOT, CNOT and Toffoli gates
(CslibFrontier/Computability/Circuit/Quantum/Code.lean).
Both are computed from n, written in unary, by a polynomial-time machine. This follows the
library's convention for uniform Boolean circuits
(Cslib.Complexity.CircuitValue.exists_uniformCircuits) and Arora, Barak,
Chapter 10: a polynomial-time machine that, given n in unary, outputs the descriptions of the
gates. Wires and the register width are written in unary, so they are
polynomially bounded. On an input word x the family runs its circuit for n = |x| from
|x 0^{m - n}⟩ and accepts when the final measurement finds qubit 0 in state 1
(Cslib.Quantum.UniformCircuitFamily.acceptProb).
Postselected classes condition on a second measured qubit: the postselected acceptance probability
is the probability that qubit 0 reads 1 given that qubit 1 does
(Cslib.Quantum.UniformCircuitFamily.postselectedAcceptProb), as in
Aaronson, Definition 1, with the two qubits exchanged.
Appending a NOT gate on qubit 0 gives a family with complementary acceptance probability
(Cslib.Quantum.UniformCircuitFamily.appendNot).
Main definitions #
Cslib.Quantum.encGateCode: the encoding of gate codes.Cslib.Quantum.UniformCircuitFamily: polynomial-time uniform families of circuits.Cslib.Quantum.UniformCircuitFamily.acceptProb: the acceptance probability on an input word.Cslib.Quantum.UniformCircuitFamily.onesProb,Cslib.Quantum.UniformCircuitFamily.postselectedAcceptProb: the probability that measured qubits read1, and the acceptance probability postselected on qubit1.Cslib.Quantum.UniformCircuitFamily.appendNot: the family with a final NOT on qubit0.
Main results #
Cslib.Quantum.UniformCircuitFamily.acceptProb_appendNot: the acceptance probability ofappendNotis one minus that of the family.
References #
A polynomial-time uniform family of quantum circuits over the Hadamard, NOT, CNOT and
Toffoli gates. On inputs of length n it uses a register of width n qubits, at least n and at
least one, and the well-formed gate codes gates n. The width and the gate codes are computed from
n in unary in polynomial time.
The number of qubits used on inputs of length
n.The gate codes of the circuit used on inputs of length
n, applied first to last.- computableInPolyTime_width : Turing.MultiTapeTM.ComputableInPolyTime self.width Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
- computableInPolyTime_gates : Turing.MultiTapeTM.ComputableInPolyTime self.gates Turing.MultiTapeTM.encUnary (Turing.MultiTapeTM.encList encGateCode)
The acceptance probability of the family on the input word x: its circuit for inputs of
length |x|, started in |x 0^{m - |x|}⟩, ends with qubit 0 measured in state 1.
The probability that the final measurement of the family's circuit on the input word x finds
every qubit of S in state 1.
The postselected acceptance probability of the family on the input word x: the
probability that qubit 0 reads 1 conditioned on qubit 1 reading 1, that is, the probability
that both read 1 divided by the probability that qubit 1 does. It is 0 when qubit 1 never
reads 1.
The family with a final NOT gate on qubit 0.
A final NOT on qubit 0 complements the acceptance probability.