Documentation

CslibFrontier.Computability.Circuit.Quantum.Uniform

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 #

Main results #

References #

@[reducible, inline]

The encoding of gate codes (h, t, cs): the Hadamard flag, then the target and the list of controls in unary.

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 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.

@[simp]

A final NOT on qubit 0 complements the acceptance probability.