The network of a circuit in polynomial time #
The network of a list of gate codes (Cslib.Quantum.PathNetwork.network) is computable in
polynomial time from the gate codes, the measured qubits, the input register and the Hadamard sign,
with its number of rows in binary and the network in the encoding of the contraction algorithm
(ExplicitTensorNetwork.encExplicitNetwork). Every port and last occurrence is a search or a map
over the occurrences of qubits, written in unary, and every table is a map over the first 2 ^ 6
numbers, a constant list.
Main results #
Cslib.Quantum.PathNetwork.computableInPolyTime_network: the network is polynomial-time.
Reformulations for the polynomial-time combinators #
Occurrences #
Vertices #
The ports of a gate vertex, in unary.
Gate vertices are polynomial-time.
Glue vertices are polynomial-time.
The scalar vertex is polynomial-time.
The network of a circuit is polynomial-time in the gate codes, the measured qubits, the input register and the Hadamard sign, with its number of rows in binary.