- Boxes
- definitions
- Ellipses
- theorems and lemmas
- Blue border
- the statement of this result is ready to be formalized; all prerequisites are done
- Orange border
- the statement of this result is not ready to be formalized; the blueprint needs more work
- Blue background
- the proof of this result is ready to be formalized; all prerequisites are done
- Green border
- the statement of this result is formalized
- Green background
- the proof of this result is formalized
- Dark green background
- the proof of this result and all its ancestors are formalized
- Dark green border
- this is in Mathlib
Let \(B\) and \(J\) be finite sets, let \(I_b\) be a finite set for every \(b\in B\), and let \(0\le A_b\le 1\) on \(\mathbb C^{I_b}\). If \(f:J\to \prod _{b\in B}I_b\) is injective, then the matrix with entries \(M_{xy}=\prod _{b\in B}(A_b)_{f(x)_b,f(y)_b}\) satisfies \(M\le 1\). The sets of factors and basis indices may be empty.
The adjoint of a finite Kraus family \((K_i)_i\) is \((K_i^\dagger )_i\). The adjoint of a layer of plain gates from \(X\) to \(Y\) is the layer from \(Y\) to \(X\) on the same cells, with the adjoint gates and onsite families. The adjoint of a sequence of layers of plain gates on one system is the sequence of the adjoint layers in reverse order.
Let \(f:V\to V'\) group the sites of a geometry \(\Gamma \) on \(V\) into the sites of a geometry \(\Gamma '\) on \(V'\), and let \(r\in \mathbb {N}\). A blocking of \(\Gamma \) into \(\Gamma '\) along \(f\) with \(r\) colours assigns to every cell \(b\) of \(\Gamma \) a cell \(\bar b\) of \(\Gamma '\) with \(f(b)\subseteq \bar b\), and to every cell of \(\Gamma '\) a colour in \(\{ 0,\dots ,r-1\} \), such that distinct cells of \(\Gamma '\) of one colour are disjoint and every cell of \(\Gamma \) has positive cost.
A circuit from \(X\) to \(Z\) is either empty, when \(X=Z\), or a layer \(L\) from \(X\) to some system \(Y\) followed, for every outcome \(i\) of \(L\), by a circuit from \(Y\) to \(Z\). The dependence on \(i\) is classical feedback; a circuit in which no continuation depends on the outcome is unbranched. A branch is a choice of an outcome of every layer along a path, and its Kraus operator is the product of the Kraus operators of its layers, the first layer on the right. The map of the circuit is \(\rho \mapsto \sum _pK_p\rho K_p^\dagger \) over all branches \(p\), and its Heisenberg picture is \(A\mapsto \sum _pK_p^\dagger AK_p\), which is the Heisenberg picture of the first layer applied to those of the continuations. A single layer is a circuit, and a finite sequence of layers on one system applied from the first is an unbranched circuit.
- QuantumCircuit.Circuit
- QuantumCircuit.Circuit.Index
- QuantumCircuit.Circuit.kraus
- QuantumCircuit.Circuit.kraus_done
- QuantumCircuit.Circuit.kraus_step
- QuantumCircuit.Circuit.krausFamily
- QuantumCircuit.Circuit.map
- QuantumCircuit.Circuit.dual
- QuantumCircuit.Circuit.dual_step
- QuantumCircuit.Circuit.ofLayer
- QuantumCircuit.Circuit.seq
Let \(f:V\to V'\) group the sites of a geometry \(\Gamma \) into the sites of a geometry \(\Gamma '\), and assign to every cell \(b\) of \(\Gamma \) a cell \(\bar b\) of \(\Gamma '\). A circuit of plain gates on \(\Gamma \) is coarsenable along \(f\) and \(b\mapsto \bar b\) when every layer on every branch satisfies the hypotheses of Theorem 45.8.13: \(f(C_b)\subseteq C_{\bar b}\) for every cell \(b\) of the layer, and \(\bar b_1\), \(\bar b_2\) are disjoint for cells \(b_1\), \(b_2\) of the layer whenever \(\bar b_1\neq \bar b_2\). The coarsened circuit, from the blocked system of \(X\) to that of \(Z\) on \(\Gamma '\), replaces every layer \(L\) by the layer \(L'\) on the cells \(\bar b\) constructed in the proof of Theorem 45.8.13, the continuation after an outcome of \(L'\) being the coarsened continuation after the corresponding outcome of \(L\). Its branches are in bijection with those of the circuit. A circuit has at most one cell per layer when every layer on every branch has at most one cell.
A cost of layers determines a cost of circuits by accumulation along the most expensive branch: the cost of a circuit starting with a layer \(L\) is the cost of \(L\) plus the largest cost of a continuation, and the empty circuit costs nothing. Given a weight \(w(b,g)\in \mathbb {N}\) of every gate \(g\) on a cell \(b\), the weight of a layer is the sum of the weights of its gates. The gate count of a layer is the weight \(w(b,g)=c_b\), the sum of the costs of its cells; the number of gates of the layer meeting a site \(s\) is the weight that is \(1\) on cells of positive cost containing \(s\) and \(0\) otherwise. The depth of a layer is \(1\) if it uses a cell of positive cost and \(0\) otherwise. Onsite families cost nothing. A circuit is of depth \(T\) when its depth is at most \(T\).
Let \(V'\) be in bijection with the disjoint union of \(V\) and a finite set \(R\) of idle sites, each \(r\in R\) with a basis \(W_r\), and let \(\iota :V\to V'\) be the inclusion of \(V\). A system \(X\) on \(V\) extends to the system on \(V'\) with basis \(X_s\) at \(\iota (s)\) and \(W_r\) at \(r\). Its configurations are the pairs of a configuration of \(X\) and a configuration of the idle sites, and the configurations of \(\iota (D)\) are those of \(D\).
A condition on gates holds on a circuit when every gate of every layer on every branch satisfies it. The condition may refer to the gate alone, or also to the finite basis sets of its systems. Either form passes to a circuit with continuations attached when it holds on the circuit and every continuation, and hence to compositions.
Let \(b\) be a cell and let \(Y\) agree with \(X\) outside \(C_b\). For a gate \(g\) on \(C_b\) from \(X\) to \(Y\), the layer of \(g\) on \(b\) has the single cell \(b\) with the gate \(g\), and at every site \(s\notin C_b\) the onsite family consisting of the matrix of the identification \(X_s=Y_s\); the sites met by no cell are those outside \(C_b\). When \(Y=X\) it is the layer of one gate of Lemma 45.1.10. For a site \(s_0\), a system \(Y\) agreeing with \(X\) at every site \(s\neq s_0\), and a matrix \(A\) from \(\mathbb {C}^{X_{s_0}}\) to \(\mathbb {C}^{Y_{s_0}}\), the layer of \(A\) at \(s_0\) has no cell, the onsite family \(\{ A\} \) at \(s_0\) and the identification at every other site.
A layer acts as the identity at a site \(s\) met by no cell when \(Y_s=X_s\) and every member of its onsite family at \(s\) is the identity matrix; this holds when the onsite family at \(s\) consists of identity matrices. A layer is one step when it has no cell, or one cell and acts as the identity at every site met by no cell. The layer of one gate on a cell, a layer of onsite families only, and the layer of one matrix at one site are one step. A circuit is sequential when every layer of every branch is one step; this passes to a circuit with continuations attached when it holds for the circuit and every continuation, hence to compositions, and the circuit of one layer that is one step is sequential.
- QuantumCircuit.Layer.gateAt
- QuantumCircuit.Layer.free_gateAt_iff
- QuantumCircuit.Layer.gateAt_eq_single
- QuantumCircuit.Layer.onsiteOpAt
- QuantumCircuit.Layer.IsIdentityAt
- QuantumCircuit.Layer.isIdentityAt_of_op_eq
- QuantumCircuit.Layer.IsStep
- QuantumCircuit.Layer.isStep_gateAt
- QuantumCircuit.Layer.isStep_ofOnsite
- QuantumCircuit.Layer.isStep_onsiteOpAt
- QuantumCircuit.Circuit.IsSequential
- QuantumCircuit.Circuit.IsSequential.append
- QuantumCircuit.Circuit.IsSequential.comp
- QuantumCircuit.Circuit.isSequential_ofLayer
A gate family assigns to every region \(D\) and systems \(X,Y\) a set of gates on \(D\) from \(X\) to \(Y\), each with a finite set of outcomes. An interpretation assigns to every outcome of every gate a matrix in \(\mathbb {C}^{Y_D\times X_D}\). The plain gates on \(D\) are the finite Kraus families from \(\mathbb {C}^{X_D}\) to \(\mathbb {C}^{Y_D}\), each interpreted as itself. Keeping the matrices out of the gates allows one circuit to be evaluated against different oracles, and allows gates that are themselves formal expressions, such as weighted sums of circuits.
A morphism of gate families on the same sites maps every gate on \(D\) from \(X\) to \(Y\) to a gate on \(D\) from \(X\) to \(Y\), with a bijection of outcomes. It is compatible with interpretations when the interpreted matrices agree outcome by outcome.
The sum of two gate families has the gates of both, each with its outcomes, and the interpretations of the two families give an interpretation of the sum. The inclusion of the gates of the first family is a morphism of gate families compatible with the interpretations.
A geometry on \(V\) is a set \(\mathcal C\) of cells, each with a region \(C_b\subseteq V\) and a cost \(c_b\in \mathbb {N}\). The bonds of a ring, the windows of a chain, the edges of a graph, the wires of one site at cost zero and arbitrary sets of parties are geometries. When there are finitely many cells, the neighbourhood \(\mathcal N(R)\) of a region \(R\) is \(R\) together with every cell meeting \(R\), so \(R\subseteq \mathcal N(R)\). The cells contained in a region \(D\) form a geometry on \(D\).
Let \(\iota :V\to V'\) be injective. A morphism of geometries over \(\iota \) is an injective map of cells \(b\mapsto b'\) with \(C_{b'}=\iota (C_b)\); costs are compared separately. The union of the images of a set of cells is the image of their union, and the images of pairwise disjoint cells are pairwise disjoint. The identity of the cells is a morphism of a geometry to itself over the identity of \(V\).
A layer from \(X\) to \(Y\) consists of a set of pairwise disjoint cells \(b\), each carrying a gate \(g_b\) on \(C_b\), and of a finite Kraus family \((k_{s,\omega })_\omega \) from \(\mathbb {C}^{X_s}\) to \(\mathbb {C}^{Y_s}\) at every site \(s\) met by no cell. Its outcomes are the choices \(i\) of an outcome for every cell and every remaining site, and its Kraus operators are
A property of Kraus families holds locally on the layer when it holds for every gate, as interpreted, and every onsite family. The backward light cone of a region \(R\) through the layer is \(R\) together with every cell of the layer that meets \(R\).
A map of systems from \(V\) to \(V'\) assigns to every system \(X\) on \(V\) a system \(X'\) on \(V'\). A map of layers from the circuits on \(V\) with geometry \(\Gamma \) and gate family \(G\) to those on \(V'\) with \(\Gamma '\) and \(G'\) is a map of systems together with a layer \(L'\) from \(X'\) to \(Y'\) for every layer \(L\) from \(X\) to \(Y\), and a bijection between the Kraus indices of \(L'\) and of \(L\). The image of a circuit replaces every layer by its image, the continuation of an index of \(L'\) being the image of the continuation of the corresponding index of \(L\); the branches of the image are in bijection with those of the circuit.
A property of Kraus families holds locally on a circuit when it holds locally on every layer of every branch. The backward light cone of a region \(R\) through a circuit is obtained from the last layer to the first, each layer adding its cells that meet the current region, over all branches.
The configurations of a single site \(a\) are the basis \(X_a\), and those of \(\{ a,b\} \) for \(a\neq b\) are the pairs in \(X_a\times X_b\), the first factor at \(a\). A matrix on a set \(B\) in bijection with the configurations of a region \(D\) gives the plain gate on \(D\) with this one Kraus operator. The geometry of sites and pairs on \(V\) has a cell \(\{ a\} \) of cost \(c_1\) for every site and a cell \(\{ a,b\} \) of cost \(c_2\) for every ordered pair of distinct sites.
A condition on layers holds on a circuit when every layer on every branch satisfies it. It passes to a circuit with continuations attached, when it holds on the circuit and on every continuation, and to compositions; the condition satisfied by every layer holds on every circuit. A map of layers on a domain, from the circuits on \(V\) with geometry \(\Gamma \) and gate family \(G\) to those on \(V'\) with \(\Gamma '\) and \(G'\), is a map of systems \(X\mapsto X'\) together with a condition on layers, its domain, and for every layer \(L\) from \(X\) to \(Y\) in the domain a layer \(L'\) from \(X'\) to \(Y'\) with a bijection between the Kraus indices of \(L'\) and of \(L\). A map of layers is a map of layers on the domain of all layers. The image of a circuit all of whose layers lie in the domain replaces every layer by its image, the continuation of an index of \(L'\) being the image of the continuation of the corresponding index of \(L\); the branches of the image are in bijection with those of the circuit, and equal circuits have equal images.
- QuantumCircuit.Circuit.ForallLayer
- QuantumCircuit.Circuit.ForallLayer.append
- QuantumCircuit.Circuit.ForallLayer.comp
- QuantumCircuit.Circuit.forallLayer_true
- QuantumCircuit.LayerMapOn
- QuantumCircuit.LayerMap.toLayerMapOn
- QuantumCircuit.Circuit.mapLayersOn
- QuantumCircuit.Circuit.mapIndexEquivOn
- QuantumCircuit.Circuit.mapLayersOn_congr
For a set of pairwise disjoint cells \(b\) of a geometry and a gate \(g_b\) on each, the layer of these gates carries the identity at every remaining site. The layer of one gate on one cell is the case of a single cell. For a finite Kraus family \((K_\omega )_\omega \) on \(\mathbb {C}^{X_D}\) the family of its placements is the family \((K_\omega \otimes 1)_\omega \) on \(\mathcal H_X\). A layer with no cells has a Kraus family at every site, which may change the basis.
Let \(B\) be a finite set. A call of an oracle on \(B\) on a region \(D\) is given by a bijection between the configurations of \(D\) and \(B\); it has one outcome and does not change the system. A matrix \(V\) on \(\mathbb {C}^B\) interprets the call by the matrix of \(V\) read on the configurations of \(D\) through the bijection. A circuit with oracle calls has gates in the sum of a gate family and the oracle calls; the circuit does not depend on \(V\), only its interpretation does. The number of calls of a circuit is the weight of Definition 45.4.1 that is \(1\) on calls and \(0\) on the other gates. A circuit none of whose layers contains a call makes no calls; so does every circuit of gates of the first family, included in the sum.
The measurement of a basis \(B\) is the Kraus family of the projections \(\lvert b\rangle \langle b\rvert \), \(b\in B\). The measurement of a region \(D\) is the layer with no cells, the measurement of the basis at the sites of \(D\) and the identity elsewhere; its outcomes are the configurations of \(D\). The probability of a branch \(p\) of a circuit on an input \(\rho \) is \(\operatorname {tr}(K_p\rho K_p^\dagger )\); for a state \(\rho \) and a circuit with trace-preserving gates and onsite families these are probabilities. A readout of a circuit is a map \(r\) from its branches to a finite set \(\Omega \), and the probability of a value \(\omega \) is the sum of the probabilities of the branches \(p\) with \(r(p)=\omega \).
Let \((T_k)_{k\in K}\) be a finite family of regions. The geometry of the family has the cells \(T_k\), each of cost \(1\). Its overlap graph joins distinct indices whose regions meet, and a colouring \(c\) of it with \(m\) colours has colour classes \(C_i=\{ k: c(k)=i\} \); listing the classes in turn gives an order of \(K\). For a gate \(g_k\) on each \(T_k\), the layer of colour \(i\) carries the gates \(g_k\), \(k\in C_i\), and the identity elsewhere, and the product-formula circuit with \(n\) sweeps is the sequence of the \(m\) colour layers in order, repeated \(n\) times.
For \(M\ge 1\) and \(k\in \mathbb {N}\), the blocking of the ring of \(Mk\) sites into the ring of \(M\) sites along \(p\mapsto \lfloor p/k\rfloor \) covers the cell \(\{ p,p+1\} \) by the cell \(\{ \lfloor p/k\rfloor ,\lfloor p/k\rfloor +1\} \), and gives the cell \(\{ j,j+1\} \) the colour \(2\) if \(M\) is odd and \(j=M-1\), and the colour \(j\bmod 2\) otherwise. It has two colours for \(M\) even and three for \(M\) odd.
For \(N\ge 1\), the ring of \(N\) sites is the geometry on \(\mathbb {Z}_N\) with one cell \(\{ k,k+1\} \) of cost \(1\) for each site \(k\), indices modulo \(N\). For \(N=1\) the cell is \(\{ 0\} \), and for \(N=2\) both cells are \(\{ 0,1\} \).
A gate family has one outcome per gate when every gate has exactly one outcome; every outcome of such a gate is then that outcome. A circuit is single when every gate of every layer on every branch has exactly one outcome and every onsite family exactly one member. Equivalently, the property of having exactly one member holds locally on the circuit. The empty circuit is single, a single circuit has exactly one branch, being single passes to a circuit with continuations attached when it holds for the circuit and every continuation, hence to compositions, and the circuit of one layer of a gate family with one outcome per gate is single when every onsite family of the layer has one member.
- QuantumCircuit.GateFamily.UniqueOutcome
- QuantumCircuit.GateFamily.UniqueOutcome.outcome
- QuantumCircuit.GateFamily.UniqueOutcome.eq_outcome
- QuantumCircuit.Circuit.IsSingle
- QuantumCircuit.Circuit.isSingle_done
- QuantumCircuit.Circuit.IsSingle.nonempty_unique_index
- QuantumCircuit.Circuit.isSingle_iff_forall
- QuantumCircuit.Circuit.IsSingle.append
- QuantumCircuit.Circuit.IsSingle.comp
- QuantumCircuit.Circuit.isSingle_ofLayer
For a set of sites \(S\), the geometry of all finite sets of sites has a cell \(D\) with sites \(D\) for every finite set \(D\subseteq S\). A cell of one site costs \(0\), and every other cell, the empty cell included, costs \(1\). Thus every cell costs at most \(1\), and a cell has positive cost exactly when it is not a single site.
- QuantumCircuit.Geometry.subsets
- QuantumCircuit.Geometry.subsets_cell
- QuantumCircuit.Geometry.subsets_cost
- QuantumCircuit.Geometry.subsets_cost_empty
- QuantumCircuit.Geometry.subsets_cost_singleton
- QuantumCircuit.Geometry.subsets_cost_of_two_le_card
- QuantumCircuit.Geometry.subsets_cost_pos_iff
- QuantumCircuit.Geometry.subsets_cost_le_one
A transport of gate families along \(V'\cong V\sqcup R\) maps every gate on \(D\) from \(X\) to \(Y\) to a gate on \(\iota (D)\) between the extended systems, with a bijection of outcomes. It is compatible with interpretations when the interpreted matrices agree under the identification of the configurations of \(D\) and of \(\iota (D)\). Plain gates have a compatible transport: the same operators, read on \(\iota (D)\).
Let \(h_k\) be a matrix on \(\mathbb {C}^{X_{T_k}}\) for each region \(T_k\) of the family. The Trotter circuit for a colouring \(c\) of the overlap graph is the product-formula circuit with the gates \(e^{-ith_k/n}\). The restriction of the family to a region \(L\) keeps \(h_k\) when \(T_k\subseteq L\) and replaces it by \(0\) otherwise; its gates outside \(L\) are the identity.
Let \(G\) be a graph on a finite term index set \(K\) (in the overlap graph, \(k\sim k'\) when \(k\ne k'\) and their supports meet). For \(C\subseteq K\), its boundary is \(\partial C=\{ k\in K\setminus C:\exists c\in C,\ k\sim c\} \). A cluster of \(A\subseteq K\) is a \(G\)-connected subset \(C\subseteq A\) with \(A\cap \partial C=\emptyset \). A family \(U\) of subsets of \(K\) is admissible if \(C\cap \partial C'=\emptyset \) for all \(C,C'\in U\).
A linear map \(\mathcal{S}\) between matrix algebras is trace-preserving completely positive if it has a Kraus form \(\mathcal{S}(X)=\sum _i A_iXA_i^\dagger \) with \(\sum _i A_i^\dagger A_i=I\). The Kraus operators may be rectangular, so the input and output dimensions need not agree.
A finite Kraus family from \(\mathbb {C}^I\) to \(\mathbb {C}^J\) is a finite set \(\Omega \) of outcomes together with matrices \((K_\omega \in \mathbb {C}^{J\times I})_{\omega \in \Omega }\), with no normalization imposed [ 143 , Theorem 2.1 ] . Its map is the rectangular Kraus map \(\rho \mapsto \sum _\omega K_\omega \rho K_\omega ^\dagger \) and its effect is \(E=\sum _\omega K_\omega ^\dagger K_\omega \). The family is trace-preserving when \(E=1\), which is the trace-preservation condition of Definition 6.1.4 on its operators, and trace-nonincreasing when \(E\leq 1\). A family of one operator \(V\) has map \(\rho \mapsto V\rho V^\dagger \) and effect \(V^\dagger V\); it is trace-nonincreasing exactly when \(V\) is a contraction, and it is called unitary when \(V^\dagger V=1\) and \(VV^\dagger =1\).
The tensor product of finite Kraus families \((K_\omega )_\omega \) from \(\mathbb {C}^I\) to \(\mathbb {C}^J\) and \((L_\nu )_\nu \) from \(\mathbb {C}^{I'}\) to \(\mathbb {C}^{J'}\) is the family \((K_\omega \otimes L_\nu )_{(\omega ,\nu )}\) from \(\mathbb {C}^I\otimes \mathbb {C}^{I'}\) to \(\mathbb {C}^J\otimes \mathbb {C}^{J'}\). The family \(K\) on the left factor of \(\mathbb {C}^I\otimes \mathbb {C}^W\) is its tensor product with the family of the one operator \(1\). The partial trace over \(\mathbb {C}^F\) is the family \((1\otimes \langle f|)_{f\in F}\) from \(\mathbb {C}^J\otimes \mathbb {C}^F\) to \(\mathbb {C}^J\), whose operators are the adjoints of the basis inclusions \(b\mapsto (b,f)\). For bijections \(e:I'\to I\) and \(f:J'\to J\), the relabelled family has the operators \(K_\omega \) with rows indexed through \(f\) and columns through \(e\).
A map \(f:V\to V'\) groups the sites into the blocks \(f^{-1}(b)\), \(b\in V'\). A system \(X\) on \(V\) is a system on \(V'\) with basis \(X_{f^{-1}(b)}\) at \(b\). Its configurations are those of \(X\), by the bijection of Lemma 34.7.1 for the partition into the blocks, and the configurations of a region \(D'\) of blocks are those of its preimage \(f^{-1}(D')\).
A configuration of the system is \(\sigma \in X_V=\prod _{v\in V}X_v\). The system of qudits of dimension \(d\) on \(V\) has the basis \(\{ 0,\dots ,d-1\} \) at every site. For a region \(D\), the cut along \(D\) is the bijection \(X_V\to X_D\times X_{V\setminus D}\), \(\sigma \mapsto (\sigma |_D, \sigma |_{V\setminus D})\). Two configurations have the same part on \(D\) exactly when they agree at every site of \(D\), and likewise outside \(D\).
The placement of a matrix \(K\) on \(\mathbb {C}^{X_D}\) is the operator \(K\otimes 1\) on \(\mathcal H_X=\mathbb {C}^{X_D}\otimes \mathbb {C}^{X_{V\setminus D}}\), read in the coordinates of \(\mathcal H_X\) through the cut along \(D\). Its matrix element \((K\otimes 1)_{\sigma \tau }\) is \(K_{\sigma |_D,\tau |_D}\) if \(\sigma \) and \(\tau \) agree outside \(D\), and \(0\) otherwise. On a vector \(\psi \) it acts by \(((K\otimes 1)\psi )(\sigma )=\sum _aK_{\sigma |_D,a}\, \psi (a,\sigma |_{V\setminus D})\), the sum over the configurations \(a\) of \(D\). For a diagonal matrix \(\operatorname {diag}(d)\) this is \(d(\sigma |_D)\, \psi (\sigma )\).
Let \(X\) and \(Y\) be systems on \(V\) with \(Y_v=X_v\) for every \(v\notin D\). The configurations outside \(D\) of the two systems are then the same, \(X_{V\setminus D}=Y_{V\setminus D}\); this identification is the identity when \(Y=X\), its inverse is the identification for the reversed agreement, and two identifications compose to the identification of the composed agreement. For a matrix \(K\) from \(\mathbb {C}^{X_D}\) to \(\mathbb {C}^{Y_D}\), the placement \(K\otimes 1\) is the matrix from \(\mathcal H_X\) to \(\mathcal H_Y\) whose element at \((y,x)\) is \(K_{y|_D,x|_D}\) if \(y\) and \(x\) agree outside \(D\), and \(0\) otherwise. In the coordinates of the cuts, \((K\otimes 1)_{(a,z),(b,z)}=K_{ab}\) for every configuration \(z\) outside \(D\).
For a finite Kraus family \((K^v_\omega )_{\omega \in \Omega _v}\) from \(\mathbb {C}^{X_v}\) to \(\mathbb {C}^{Y_v}\) at every site \(v\), the product family \(\bigotimes _vK^v\) from \(\mathcal H_X\) to \(\mathcal H_Y\) has the outcomes \(j\in \prod _v\Omega _v\) and the operators \(\bigotimes _vK^v_{j_v}\).
On the ring \(\mathbb {Z}_N\) of \(N\ge 1\) sites, the ball of radius \(r\) about a set \(X\) of sites is its neighbourhood of radius \(r\) in the cycle graph, and two sets are separated by \(s\) when they are separated by \(s\) in the cycle graph. The ball of radius \(r\) about \(X\) is the set of sites \(x+m\) with \(x\in X\) and \(\lvert m\rvert \le r\), indices modulo \(N\).
An operator \(A\) on \(\mathcal H_X\) is supported on a region \(D\) when its matrix element \(A_{\sigma \tau }\) vanishes whenever \(\sigma _v\neq \tau _v\) for some \(v\notin D\), and otherwise depends only on \(\sigma |_D\) and \(\tau |_D\). Let \(\mathcal A_D\) be the set of operators supported on \(D\). Then \(A_{\sigma \tau }=A_{\sigma '\tau '}\) for \(A\in \mathcal A_D\) whenever \(\sigma |_D=\sigma '|_D\), \(\tau |_D=\tau '|_D\) and, at every \(v\notin D\), \(\sigma _v=\tau _v\) if and only if \(\sigma '_v=\tau '_v\).
The trace-pairing adjoint \(E^* : M_{D'}(\mathbb {C}) \to M_{D}(\mathbb {C})\) of a linear map \(E : M_{D}(\mathbb {C}) \to M_{D'}(\mathbb {C})\) between matrix algebras of possibly different dimensions is the adjoint for the bilinear pairing \((A,B)\mapsto \operatorname{tr}(AB)\).
The Kraus operators of the adjoint layer are the adjoints of those of the layer. If every Kraus operator of the \(k\)-th layer of a sequence equals \(U_k\), the Kraus operator of the adjoint sequence is \((U_m\cdots U_1)^\dagger \).
The gate count of a layer is \(\sum _bc_b\) over its cells, and the number of its gates meeting \(s\) is the number of its cells of positive cost containing \(s\).
The regions of one colour class are pairwise disjoint, and the order of the colour classes lists every index exactly once.
A bound on a set of sites passes to every larger bound on every smaller set, and to compositions; every circuit is bounded on the empty set. The bases of the input are bounded, and so are those of the output along any branch. A circuit of one layer is bounded when its input and output bases are, and a sequence of layers from a system to itself is bounded when the bases of that system are. A circuit whose gates and onsite families are trace-preserving, on nonempty finite bases, has a bound.
- QuantumCircuit.Circuit.IsDimBounded.mono
- QuantumCircuit.Circuit.IsDimBounded.comp
- QuantumCircuit.Circuit.IsDimBounded.input
- QuantumCircuit.Circuit.IsDimBounded.output
- QuantumCircuit.Circuit.exists_isDimBounded
- QuantumCircuit.Circuit.isDimBounded_empty
- QuantumCircuit.Circuit.isDimBounded_ofLayer
- QuantumCircuit.Circuit.isDimBounded_seq
The map \(\Phi \) of a circuit and its Heisenberg picture \(\Phi ^\dagger \) satisfy \(\operatorname {tr}(\Phi (\rho )A)=\operatorname {tr}(\rho \, \Phi ^\dagger (A))\). The Heisenberg picture of the empty circuit is the identity. The circuit of one layer is unbranched and has the Kraus operators of the layer.
For a layer or a circuit, the Heisenberg image of the identity is its Kraus effect: \(\Phi ^*(1)=E\).
In the notation of Definition 45.1.11, the Kraus operator of the layer of \(g\) on \(b\) at an outcome \(\omega \) of \(g\) is the placement \(M\otimes 1\) between \(X\) and \(Y\), on \(C_b\), of the matrix \(M\) of \(g\) at \(\omega \). The Kraus operator of the layer of \(A\) at \(s_0\) is the placement between \(X\) and \(Y\), on \(\{ s_0\} \), of \(A\) read on the configurations of \(\{ s_0\} \). Let \(P\) be a property of finite Kraus families that holds for every family \(\{ 1\} \). If \(P\) holds for the gate \(g\), as interpreted, it holds locally on the layer of \(g\) on \(b\); if \(P\) holds for \(\{ A\} \), it holds locally on the layer of \(A\) at \(s_0\). The layer of \(g\) on \(b\) has gate count \(c_b\), and it meets a site \(s\) once if \(s\in C_b\) and \(c_b{\gt}0\), and not at all otherwise. The layer of \(A\) at \(s_0\) has gate count \(0\) and meets no site.
The cells along a branch \(p\) of a circuit are listed layer by layer, and so are their sets of sites. For a weight \(w\) of cells, the total weight of the cells along \(p\) is at most the cost of the circuit for the layer cost \(L\mapsto \sum _{b\in L}w(b)\), with equality when the circuit is unbranched. The gate count is this cost for \(w(b)=c_b\), and the participation of a site \(s\) is this cost for the weight that is \(1\) on cells of positive cost containing \(s\) and \(0\) otherwise. Hence the costs of the cells along any branch add up to at most the gate count, and to the gate count for an unbranched circuit, whose participation of \(s\) is the number of cells of positive cost containing \(s\) along any branch.
- QuantumCircuit.Circuit.gateCells
- QuantumCircuit.Circuit.gateSites
- QuantumCircuit.Circuit.sum_gateCells_le
- QuantumCircuit.Circuit.sum_gateCells_eq_of_isUnbranched
- QuantumCircuit.Circuit.gateCount_eq_total_sum
- QuantumCircuit.Circuit.participation_eq_total_sum
- QuantumCircuit.Circuit.sum_cost_gateCells_le
- QuantumCircuit.Circuit.sum_cost_gateCells_eq_of_isUnbranched
- QuantumCircuit.Circuit.participation_eq_of_isUnbranched
The map of the layer is the tensor product of the maps of its gates and onsite families: on a matrix unit \(|x\rangle \! \langle x'|\) its entry at \((y,y')\) is
The blocks of a layer partition the sites, so a sum over the configurations of any system of a product over the blocks of functions of the restrictions is the product over the blocks of the sums over their configurations. Let \(D\) be the union of a set \(N\) of blocks of a layer. In the cut along \(D\), every Kraus operator is \(K_i=K^{\mathrm{near}}_{i_N}\otimes K^{\mathrm{far}}_{i_F}\), the products of the local entries over the blocks in \(N\) and over the remaining blocks \(F\), and for all \(M\) on \(\mathbb {C}^{Y_D}\) and \(N\) on \(\mathbb {C}^{Y_{V\setminus D}}\)
If the families on the blocks in \(F\) are trace-preserving, then \(\sum _{i_F}(K^{\mathrm{far}}_{i_F})^\dagger K^{\mathrm{far}}_{i_F}=1\), so for every \(A_1\) on \(\mathbb {C}^{Y_D}\)
- QuantumCircuit.Layer.Block
- QuantumCircuit.Layer.region
- QuantumCircuit.Layer.BlockIndex
- QuantumCircuit.Layer.indexEquiv
- QuantumCircuit.Layer.region_disjoint
- QuantumCircuit.Layer.blockOf
- QuantumCircuit.Layer.mem_region_blockOf
- QuantumCircuit.Layer.blockOf_eq_of_mem
- QuantumCircuit.Layer.isComplPartition_region
- QuantumCircuit.Layer.sum_prod_region
- QuantumCircuit.Layer.sum_prod_mul_prod
- QuantumCircuit.Layer.blockKraus
- QuantumCircuit.Layer.kraus_apply_eq_prod
- QuantumCircuit.Layer.blockEffect
- QuantumCircuit.Layer.blockEffect_eq_one
- QuantumCircuit.Layer.unionRegion
- QuantumCircuit.Layer.region_subset_unionRegion
- QuantumCircuit.Layer.disjoint_unionRegion
- QuantumCircuit.Layer.isComplPartition
- QuantumCircuit.Layer.nearKraus
- QuantumCircuit.Layer.farKraus
- QuantumCircuit.Layer.farKraus_apply
- QuantumCircuit.Layer.nearFarEquiv
- QuantumCircuit.Layer.kraus_eq_submatrix
- QuantumCircuit.Layer.sum_farKraus
- QuantumCircuit.Layer.dual
- QuantumCircuit.Layer.dual_apply'
- QuantumCircuit.Layer.dual_kronecker
- QuantumCircuit.Layer.dual_place
The layer with one gate on a cell \(b\) and the identity at every other site has, at an outcome of the gate with matrix \(V\), the Kraus operator \(V\otimes 1\), the placement of \(V\) on \(C_b\).
A property holding locally implies locally every property it implies. A property holding locally on a circuit and on every continuation attached to it holds locally on the composite. A composite of unbranched circuits is unbranched. The backward light cone is monotone in the region, and the backward light cone of \(R\) through \(c\) followed by \(c'\) lies in the backward light cone through \(c\) of the backward light cone of \(R\) through \(c'\).
The family of one unitary matrix is unitary, so the gate of a unitary matrix on a local basis is unitary. A matrix \(M\) on \(\mathbb {C}^{X_a}\) placed on the site \(a\) maps a vector \(\psi \) to the vector whose value at \(\sigma \) is \(\sum _bM_{\sigma _a,b}\, \psi (\sigma [a\mapsto b])\), where \(\sigma [a\mapsto b]\) agrees with \(\sigma \) except at \(a\), where it is \(b\).
For a geometry with finitely many cells, if \(R\subseteq R'\) then \(\mathcal N(R)\subseteq \mathcal N(R')\), and if moreover \(m\leq n\) then \(\mathcal N^m(R)\subseteq \mathcal N^n(R')\).
The preparation of a basis vector \(b\) is the Kraus family of the one operator \(\lvert b\rangle \) from the one-point basis, and the discard of a basis \(B\) is the family of the operators \(\langle b\rvert \), \(b\in B\), onto the one-point basis. Both are trace-preserving; the first maps \(\lambda \) to \(\lambda \lvert b\rangle \langle b\rvert \) and the second maps \(\rho \) to \(\operatorname {tr}\rho \).
On a pure input \(\rho =\psi \psi ^\dagger \) the probability of a branch \(p\) is \(\lVert K_p\psi \rVert ^2\). If a readout \(r\) is a bijection and the probability of every branch \(p\) is \(f(r(p))\), the value \(\omega \) has probability \(f(\omega )\).
Let \(h_k\) be arbitrary matrices on the regions \(T_k\) and let \(h^L_k=h_k\) if \(T_k\subseteq L\), and \(h^L_k=0\) otherwise. Then
For \(N\ge 1\), the neighbourhood of a region \(R\) of the ring is the ball of radius \(1\) about \(R\), and the \(r\)-fold neighbourhood is the ball of radius \(r\).
Let \(L_1,\dots ,L_m\) be layers on one system, and suppose every Kraus operator of \(L_k\) equals \(U_k\). Then the Kraus operator of the sequence along every branch is \(U_m\cdots U_1\). The sequence is unbranched, and a property holding locally on every layer holds locally on the sequence. If every layer has at least one outcome, the cost of the sequence is the sum of the costs of its layers; in particular a sequence of such layers of gate count \(1\) has the gate count \(m\). More generally the cost of an unbranched circuit with a branch, followed by any circuit, is the sum of the two costs.
A trace-preserving Kraus family on a nonempty basis has an operator, and its target basis is nonempty. A layer whose gates and onsite families are trace-preserving, on nonempty bases, has an outcome, and its output bases are nonempty.
If every gate and every onsite family of a circuit has exactly one Kraus operator, for instance if they are unitary, the circuit has exactly one branch \(p\). The Heisenberg picture of a circuit with one branch \(p\) is \(A\mapsto K_p^\dagger AK_p\).
The map of a trace-preserving finite Kraus family is completely positive and trace-preserving. A trace-preserving family is trace-nonincreasing, and a unitary family is trace-preserving. On a matrix unit the map has the entries \(K(|a\rangle \! \langle a'|)_{cc'}=\sum _\omega (K_\omega )_{ca}\overline{(K_\omega )_{c'a'}}\), and a trace-preserving family between one-element bases is the identity.
The map of the tensor product \(K\otimes L\) sends \(\rho \otimes \sigma \) to \(K(\rho )\otimes L(\sigma )\), and its effect is the tensor product of the effects. A linear map on the matrices of \(\mathbb {C}^I\otimes \mathbb {C}^{I'}\) is determined by its values on tensor products. Tensor products of trace-preserving families are trace-preserving, and tensor products of unitary families are unitary; in particular so is a family tensored with the identity. The effect of a relabelled family is the relabelled effect, so relabelling preserves trace preservation and unitarity. The map of the partial-trace family is the partial trace over the right factor, and the family is trace-preserving.
- KrausFamily.map_prod
- KrausFamily.effect_prod
- Matrix.linearMap_ext_kronecker
- KrausFamily.IsTP.prod
- KrausFamily.IsUnitary.prod
- KrausFamily.IsTP.tensorRight
- KrausFamily.IsUnitary.tensorRight
- KrausFamily.effect_reindex
- KrausFamily.IsTP.reindex
- KrausFamily.IsUnitary.reindex
- KrausFamily.map_traceRight
- KrausFamily.isTP_traceRight
For a finite Kraus family \(\{ K_i\} \) from \(\mathbb {C}^\alpha \) to \(\mathbb {C}^\beta \), a matrix \(\rho \) on \(\mathbb {C}^\alpha \) and a matrix \(A\) on \(\mathbb {C}^\beta \),
For disjoint regions \(B,C\), their union has configuration space \(X_B\times X_C\). Placing \(A\otimes K\) on the union equals the product of the placements of \(A\) and \(K\). The partial trace over \(C\) of the regional state on \(B\cup C\) equals \(\rho _B\).
Let \(D\) be a region and let \((R_b)_{b\in B}\) be a finite family of pairwise disjoint regions, disjoint from \(D\), that cover \(V\setminus D\). Restriction to the blocks is a bijection \(X_{V\setminus D}\to \prod _bX_{R_b}\). Consequently, for functions \(f_b\) on \(X_{R_b}\),
and two configurations of \(V\setminus D\) are equal exactly when they agree on every block. For \(D\) empty, the configurations of \(V\setminus D\) are those of \(V\).
A matrix \(p\) on \(\mathbb {C}^{X_v}\) read as a matrix on the configurations of the region \(\{ v\} \) and placed on \(\{ v\} \) is the matrix \(p\) at the site \(v\). It is the product operator with \(p\) at \(v\) and the identity at the other sites, it is unitary when \(p\) is, and it maps a vector \(\psi \) to the vector whose value at \(\sigma \) is \(\sum _bp_{\sigma _v,b}\, \psi (\sigma [v\mapsto b])\), where \(\sigma [v\mapsto b]\) agrees with \(\sigma \) except at \(v\), where it is \(b\).
For every matrix \(K\) on \(\mathbb {C}^{X_D}\), \(e^{K}\otimes 1=e^{K\otimes 1}\), and in particular \(e^{itK}\otimes 1=e^{it(K\otimes 1)}\) for \(t\in \mathbb {R}\). Hence \(\mathcal A_D\) is closed under the exponential and under \(A\mapsto e^{itA}\).
The map \(K\mapsto K\otimes 1\) is linear, unital, multiplicative and compatible with adjoints; in particular it maps unitaries to unitaries. If \(K\) is invertible, then \(K^{-1}\otimes 1\) is the inverse of \(K\otimes 1\), and \(\operatorname{Tr}(K\otimes 1)=|X_{V\setminus D}|\operatorname{Tr}K\).
- ManyBody.placeHom
- ManyBody.placeHom_apply
- ManyBody.place_zero
- ManyBody.place_add
- ManyBody.place_smul
- ManyBody.place_neg
- ManyBody.place_sub
- ManyBody.place_sum
- ManyBody.place_conjTranspose
- ManyBody.isHermitian_place
- ManyBody.place_one
- ManyBody.place_mul
- ManyBody.place_pow
- ManyBody.place_mul_place_inv
- ManyBody.place_inv_mul_place
- ManyBody.trace_place
- ManyBody.place_mem_unitaryGroup
Let \(\sigma _v\) be matrices on \(\mathbb {C}^{X_v}\) with \(\operatorname {tr}\sigma _v=1\), and let \(A\in \mathcal A_D\) and \(B\in \mathcal A_{D'}\) with \(D\cap D'=\emptyset \). Then
Without the normalization of the \(\sigma _v\), the left side multiplied by \(\operatorname {tr}\bigotimes _v\sigma _v\) equals the right side.
The ball of radius \(0\) about \(X\) is \(X\), the ball of radius \(r+1\) is the ball of radius \(1\) about the ball of radius \(r\), and the rotation \(k\mapsto k+1\) of the ring carries the ball of radius \(r\) about \(X\) to the ball of radius \(r\) about the rotated set.
Let \(D\cap D'=\emptyset \), \(A\in \mathcal A_D\) and \(B\in \mathcal A_{D'}\). Then \((AB)_{\sigma \tau }=A_{\sigma \rho }B_{\rho \tau }\), where \(\rho \) equals \(\tau \) on \(D\) and \(\sigma \) elsewhere, and \(AB=BA\).
Let \(f:V\to V'\) group the sites of a geometry \(\Gamma \) into the sites of a geometry \(\Gamma '\), and let a layer \(L\) of plain gates from \(X\) to \(Y\) on \(\Gamma \) have every cell \(b\) in a cell \(\bar b\) of \(\Gamma '\) after \(f\), with \(\bar b_1\) and \(\bar b_2\) disjoint whenever they are distinct. Then there is a layer \(L'\) of plain gates on \(\Gamma '\) from the blocked system of \(X\) to that of \(Y\) whose cells are the cells \(\bar b\), which is trace-preserving when \(L\) is, and whose map, read on the sites, is the map of \(L\).
Let \(c\) be a circuit of plain gates from \(X\) to \(Z\), coarsenable along \(f\) and \(b\mapsto \bar b\). The Kraus operator of a branch of the coarsened circuit is the Kraus operator of the corresponding branch \(p\) of \(c\), read on the blocks: \(K'_{p}(z,w)=K_p(z,w)\) in the identification of the configurations of the blocked systems with those of \(Z\) and \(X\). A circuit of plain gates with at most one cell per layer is coarsenable onto the geometry of all finite sets of sites of \(V'\), along \(f\), with every cell \(b\) covered by \(f(C_b)\).
Attaching a circuit \(k_p\) to every branch \(p\) of a circuit \(c\) gives a circuit whose branches are the pairs \((p,q)\) of a branch of \(c\) and a branch of \(k_p\), with Kraus operators \(K^{k_p}_qK^c_p\), and its map sends \(\rho \) to \(\sum _p\Phi _{k_p}(K^c_p\rho K^{c\dagger }_p)\); for a circuit starting with a layer this is the map layer by layer, and the map of the circuit of one layer is the map of the layer’s Kraus family. For a continuation independent of \(p\) the map of the composite is the composite of the maps, and the empty circuit is the identity map. A circuit starting with a layer whose continuations all agree is the circuit of the layer followed by one of them, and its Heisenberg picture is that of the layer applied to that of the continuation. The empty circuit is a two-sided identity of composition, and composition is associative.
- QuantumCircuit.Circuit.append
- QuantumCircuit.Circuit.comp
- QuantumCircuit.Circuit.appendIndexEquiv
- QuantumCircuit.Circuit.kraus_append
- QuantumCircuit.Circuit.compIndexEquiv
- QuantumCircuit.Circuit.kraus_comp
- QuantumCircuit.Circuit.map_comp
- QuantumCircuit.Circuit.map_done
- QuantumCircuit.Circuit.done_comp
- QuantumCircuit.Circuit.comp_done
- QuantumCircuit.Circuit.comp_assoc
- QuantumCircuit.Circuit.map_append
- QuantumCircuit.Circuit.map_step
- QuantumCircuit.Circuit.map_ofLayer
- QuantumCircuit.Circuit.step_eq_ofLayer_comp
- QuantumCircuit.Circuit.dual_step_of_forall_eq
The depth of a circuit starting with a layer \(L\) is the depth of \(L\) plus the largest depth of a continuation; in particular the circuit of one layer has the depth of the layer. The cost of a circuit with continuations \(k_p\) attached is at most the cost of the circuit plus the largest cost of a continuation. In particular depth, gate count and the number of gates meeting a site are subadditive under composition. A layer has depth at most \(1\), and the depth of a circuit is at most its gate count. The cost of a sequence of layers is at most the sum of the costs of its layers.
- QuantumCircuit.Circuit.total_append
- QuantumCircuit.Circuit.total_comp
- QuantumCircuit.Circuit.depth_comp
- QuantumCircuit.Circuit.gateCount_comp
- QuantumCircuit.Circuit.participation_comp
- QuantumCircuit.Circuit.total_mono
- QuantumCircuit.Layer.depth_le_gateCount
- QuantumCircuit.Circuit.depth_le_gateCount
- QuantumCircuit.Circuit.total_seq_le
- QuantumCircuit.Circuit.depth_seq_le
- QuantumCircuit.Circuit.gateCount_seq_le
- QuantumCircuit.Layer.depth_le_one
- QuantumCircuit.Circuit.depth_step
- QuantumCircuit.Circuit.depth_ofLayer
The image of an unbranched circuit is unbranched. A local property holding on the image of every layer on which it holds holds on the image of every circuit on which it holds. A cost of layers that does not grow from a layer to its image does not grow from a circuit to its image, and one that does not change from a layer to its image does not change from a circuit to its image. If a map \(\Phi \) of matrices between the configurations of \(X\) and of \(X'\) sends \(1\) to \(1\) and products to products, and every Kraus operator of the image of a layer is \(\Phi \) of the corresponding Kraus operator of the layer, the same holds for circuits. The image of a composition is the composition of the images.
A layer whose gates and onsite families are trace-preserving is trace-preserving.
Let a circuit be unbranched with trace-preserving gates and onsite families, and let \(A\) be supported on \(R\). Then the Heisenberg picture of \(A\) is supported on the backward light cone of \(R\) [ 11 ] . If the geometry has finitely many cells and every cell has positive cost, the backward light cone lies in the \(T\)-fold neighbourhood of \(R\), where \(T\) is the depth.
Let a circuit be unbranched with trace-preserving gates and onsite families, and let \(A\), \(B\) be supported on regions with disjoint backward light cones. Then the Heisenberg picture of \(AB\) is the product of those of \(A\) and \(B\), and on a product input \(\rho =\bigotimes _s\sigma _s\) with \(\operatorname {tr}\sigma _s=1\),
Along a morphism of geometries over the identity of \(V\) and a morphism of gate families, every layer and every circuit has an image on the same systems. With a compatible morphism of gate families the Kraus operators along corresponding branches agree, and a property of Kraus families invariant under relabelling of outcomes holds locally on the image if it holds locally on the circuit. A weight of gates that does not depend on the cell takes on the image of a layer the value of the weight of the images of its gates on the layer.
- QuantumCircuit.Layer.mapGate
- QuantumCircuit.Layer.mapGateIndexEquiv
- QuantumCircuit.Layer.kraus_mapGate
- QuantumCircuit.Layer.forall_mapGate
- QuantumCircuit.LayerMap.ofGate
- QuantumCircuit.Circuit.mapGate
- QuantumCircuit.Layer.cellCost_mapGate
- QuantumCircuit.Circuit.kraus_mapGate
- QuantumCircuit.Circuit.forall_mapGate
Let a map of layers on a domain be given, and consider circuits all of whose layers lie in the domain.
Let \(\Phi \) map the matrices between the configurations of any two systems \(X\) and \(Z\) to matrices between the configurations of \(X'\) and \(Z'\), with \(\Phi (1)=1\) and \(\Phi (AB)=\Phi (A)\Phi (B)\). If every Kraus operator of the image of a layer in the domain is \(\Phi \) of the corresponding Kraus operator of the layer, then along corresponding branches \(K'_p=\Phi (K_p)\).
The image of a composition is the composition of the images, and the image of an unbranched circuit is unbranched.
If the image of every layer in the domain whose gates have one outcome each and whose onsite families have one member each has the same property, the image of a single circuit is single.
A local property, or a condition on gates, holding on the image of every layer in the domain on which it holds, holds on the image of every circuit on which it holds; the condition on the gates of the image may differ from the condition on the gates of the circuit.
If costs \(f\) and \(f'\) of layers satisfy \(f'(L')=f(L)\) for every layer \(L\) in the domain, the cost \(f'\) of the image of a circuit is its cost \(f\).
On the domain of all layers, the image along a map of layers is the image of Definition 45.8.1.
- QuantumCircuit.Circuit.kraus_mapLayersOn
- QuantumCircuit.Circuit.mapLayersOn_comp
- QuantumCircuit.Circuit.isUnbranched_mapLayersOn
- QuantumCircuit.Circuit.isSingle_mapLayersOn
- QuantumCircuit.Circuit.forall_mapLayersOn
- QuantumCircuit.Circuit.forallGate'_mapLayersOn
- QuantumCircuit.Circuit.total_mapLayersOn
- QuantumCircuit.Circuit.mapLayersOn_toLayerMapOn
Along a morphism of geometries over \(\iota \) and a transport of gates, every circuit from \(X\) to \(Z\) on \(V\) has an image from the extended \(X\) to the extended \(Z\) on \(V'\), carrying the identity at the idle sites. With a compatible transport, along corresponding branches
in the identification of the configurations of \(V'\) with pairs, so the map of the image sends \(\rho \otimes \omega \) to \(\Phi (\rho )\otimes \omega \). A property of Kraus families invariant under relabelling of bases and outcomes, and holding for the identity, holds locally on the image if it holds locally on the circuit. A weight of gates that does not depend on the cell takes on the image of a layer the value of the weight of the transported gates on the layer.
- QuantumCircuit.Layer.mapSites
- QuantumCircuit.Layer.mapSitesIndexEquiv
- QuantumCircuit.Layer.kraus_mapSites
- QuantumCircuit.Layer.forall_mapSites
- QuantumCircuit.LayerMap.ofSites
- QuantumCircuit.Circuit.mapSites
- QuantumCircuit.Layer.cellCost_mapSites
- QuantumCircuit.Circuit.kraus_mapSites
- QuantumCircuit.Circuit.map_mapSites
- QuantumCircuit.Circuit.forall_mapSites
Let \(b_1,\dots ,b_m\) be an enumeration without repetition of a set of pairwise disjoint cells carrying gates \(g_{b_k}\), under any interpretation. The Kraus operator of the layer at an outcome \(i\) is
the product of the placements of the matrices of the gates at \(i\), and the map of the layer is the composite of the maps of the families of placements of the \(g_{b_k}\), in this order. A property of Kraus families holding for every gate and for the identity holds locally on the layer; in particular a layer of trace-preserving gates is a quantum channel by Theorem 45.2.2. The layer of one gate \(g\) on a cell \(b\) has the weight \(w(b,g)\) for every weight of gates, in particular gate count \(c_b\), and depth \(1\) if \(c_b{\gt}0\). The Kraus operator of a layer with no cells and families \((K^s_\omega )_\omega \) at the sites \(s\), at an outcome \(i\), is the product operator \(\bigotimes _sK^s_{i_s}\), and such a layer has depth \(0\); its map is the map of the product family \(\bigotimes _sK^s\). If every family consists of one operator \(V_s\), the map of the layer is \(\rho \mapsto (\bigotimes _sV_s)\rho (\bigotimes _sV_s)^\dagger \).
- QuantumCircuit.Layer.kraus_ofCells
- QuantumCircuit.Layer.map_ofCells
- QuantumCircuit.Layer.forall_ofCells
- QuantumCircuit.Layer.nonempty_index_ofCells
- QuantumCircuit.Layer.forall_single
- QuantumCircuit.Layer.nonempty_index_single
- QuantumCircuit.Layer.cellCost_single
- QuantumCircuit.Layer.gateCount_single
- QuantumCircuit.Layer.depth_single
- QuantumCircuit.Layer.kraus_ofOnsite
- QuantumCircuit.Layer.depth_ofOnsite
- QuantumCircuit.Circuit.map_ofLayer_ofOnsite_single
- QuantumCircuit.Layer.map_krausFamily_ofOnsite
The product-formula circuit with \(n\) sweeps is unbranched and has depth at most \(nm\). If every gate has an outcome, it has \(n|K|\) gates and meets each site \(s\) in \(n\, |\{ k: s\in T_k\} |\) gates. If every gate is trace-preserving, its Heisenberg picture maps an operator supported on a region \(R\) to an operator supported on the \(nm\)-fold neighbourhood of \(R\).
- QuantumCircuit.length_colourSweeps
- QuantumCircuit.sum_map_colourSweeps
- QuantumCircuit.reverse_prod_map_colourSweeps
- QuantumCircuit.isUnbranched_productCircuit
- QuantumCircuit.depth_productCircuit_le
- QuantumCircuit.gateCount_productCircuit
- QuantumCircuit.participation_productCircuit
- QuantumCircuit.dual_productCircuit_mem_supportedOperators
For gates of one operator \(V_k\) each, the product-formula circuit has a single branch, with the Kraus operator
where \(o\) is the order of the colour classes, and its Heisenberg picture is \(A\mapsto W^*AW\).
The operator \(K_c\) of a single circuit \(c\) is the Kraus operator of its branch; it is the Kraus operator at any branch. The empty circuit has the operator \(1\). A circuit starting with a layer \(L\) has the operator \(K_{c_i}K_{L,i}\) for any outcome \(i\) of \(L\), where \(c_i\) is the continuation; the circuit of one layer has the operator \(K_{L,i}\). For single circuits \(c\) from \(X\) to \(Y\) and \(c'\) from \(Y\) to \(Z\), the composition has the operator \(K_{c'}K_c\). A finite Kraus family with exactly one member \(V\) is trace-nonincreasing if and only if \(\lVert V\rVert \le 1\). Consequently, if every gate and onsite family of a single circuit is trace-nonincreasing, then \(\lVert K_c\rVert \le 1\).
- QuantumCircuit.Circuit.singleOp
- QuantumCircuit.Circuit.singleOp_eq_kraus
- QuantumCircuit.Circuit.singleOp_done
- QuantumCircuit.Circuit.singleOp_step
- QuantumCircuit.Circuit.singleOp_ofLayer
- QuantumCircuit.Circuit.singleOp_comp
- QuantumCircuit.Circuit.norm_singleOp_le_one
- KrausFamily.isTraceNonincreasing_iff_norm_le_one
- KrausFamily.isTraceNonincreasing_single_iff
Let a map of systems from \(V\) to \(V'\) come with linear encodings \(\iota _X\) of the matrices of each system \(X\), and let \(K\in \mathbb {N}\). Suppose that every layer \(L\) on nonempty bases with trace-preserving gates and onsite families is realised by an unbranched circuit on \(V'\) with trace-preserving local families and depth at most \(K\) times that of \(L\), whose map \(\Psi \) satisfies \(\Psi \circ \iota _X=\iota _Y\circ \Phi _L\). Then every unbranched circuit with trace-preserving local families on nonempty bases is realised in the same way, with depth at most \(K\) times its depth.
Let \(W_s\) be a finite basis at every site \(s\). Every circuit of plain gates from \(X\) to \(Z\) has an image from the system \(s\mapsto X_s\times W_s\) to the system \(s\mapsto Z_s\times W_s\) on the same cells: every gate \(g\) on a cell \(D\) becomes \(g\otimes 1\) on \(\mathbb {C}^{X_D}\otimes \mathbb {C}^{W_D}\), and every onsite family \(K\) becomes \(K\otimes 1\). Along corresponding branches \(K'_p=K_p\otimes 1_W\) in the identification of the configurations of the enlarged system with pairs, so the map of the image sends \(\rho \otimes \omega \) to \(\Phi (\rho )\otimes \omega \). The image is locally trace-preserving, or locally unitary, when the circuit is, and its depth and gate count are those of the circuit. If the circuit is bounded by \(B\) on a set \(A\) of sites and \(W_s\) has one element at every \(s\in A\), the image is bounded by \(B\) on \(A\).
- QuantumCircuit.Layer.tensorRight
- QuantumCircuit.Layer.tensorRightIndexEquiv
- QuantumCircuit.Layer.tensorRightIndexEquiv_apply
- QuantumCircuit.Layer.kraus_tensorRight
- QuantumCircuit.Layer.forall_tensorRight
- QuantumCircuit.LayerMap.tensorRight
- QuantumCircuit.Circuit.tensorRight
- QuantumCircuit.Circuit.kraus_tensorRight
- QuantumCircuit.Circuit.map_tensorRight
- QuantumCircuit.Circuit.forall_isTP_tensorRight
- QuantumCircuit.Circuit.forall_isUnitary_tensorRight
- QuantumCircuit.Circuit.depth_tensorRight
- QuantumCircuit.Circuit.gateCount_tensorRight
- QuantumCircuit.Circuit.IsDimBounded.tensorRight
Suppose every gate and onsite family of a circuit has effect at most the identity. Then the circuit effect \(E_c=\sum _p(K_p^c)^\dagger K_p^c\) satisfies \(E_c\le 1\). Its completely positive map \(\Phi _c\) obeys \(\operatorname {tr}\Phi _c(\rho )\le \operatorname {tr}\rho \) for every \(\rho \ge 0\), and its Heisenberg dual obeys \(\Phi _c^*(1)\le 1\). The same statements hold for a single layer. The input and output bases may differ and may be empty, and a branch may have no Kraus outcomes.
- QuantumCircuit.Layer.blockEffect_le_one
- QuantumCircuit.Layer.configEquivBlocks
- QuantumCircuit.Layer.effect_apply_eq_prod
- QuantumCircuit.Layer.isTraceNonincreasing_krausFamily
- QuantumCircuit.Layer.dual_one_le
- QuantumCircuit.Circuit.dual_one_le_of_forall
- QuantumCircuit.Circuit.isTraceNonincreasing_krausFamily
- QuantumCircuit.Circuit.trace_map_le
- KrausFamily.trace_map_le
A circuit whose gates and onsite families are trace-preserving is trace-preserving, hence a quantum channel, whether or not it branches.
The Trotter circuit has the single Kraus operator \(U_1(t)\), the first-order Trotter propagator of the matrices \(h_k\otimes 1\) in the order \(o\) of the colour classes, and its Heisenberg picture is \(A\mapsto U_1(t)^*AU_1(t)\). Let the \(h_k\) be Hermitian and \(H=\sum _kh_k\otimes 1\). Then the gates are unitary, the Heisenberg picture maps an operator supported on \(R\) to an operator supported on the \(nm\)-fold neighbourhood of \(R\), and for \(n\geq 1\)
with \(c(o)=\sum _{i{\lt}j}\lVert [h_{o_i}\otimes 1,h_{o_j}\otimes 1]\rVert \).
Let the \(h_k\) be Hermitian, let \(A\) be supported on \(R\), and let \(L\) contain the \(nm\)-fold neighbourhood of \(R\). On \(A\) the Heisenberg picture of the Trotter circuit agrees with that of the Trotter circuit of the family restricted to \(L\). Consequently, with \(H_L=\sum _{T_k\subseteq L}h_k\otimes 1\), the Heisenberg picture of \(A\) differs from \(e^{itH}Ae^{-itH}\) by at most \(2\lVert A\rVert \frac{t^2}{2n}c_L(o)+\lVert e^{itH_L}Ae^{-itH_L}-e^{itH}Ae^{-itH}\rVert \), where \(c_L(o)\) is the commutator sum of the restricted family.
Let \(G\) be a graph on a finite set of sites with finite local bases, and let \(h_k\) be a finite family of Hermitian matrices on the regions \(T_k\). Write \(\Phi _k=h_k\otimes 1\), \(H=\sum _k\Phi _k\), and suppose \(\operatorname {diam}_G(T_k)\leq r\), \(|T_k|\leq v\), and \(\sum _{k:x\in T_k}\| \Phi _k\| \leq b\) for every site \(x\). Let \(A\) be supported on \(R\), let \(\mu \geq 0\), \(d\in \mathbb N\), and assume \(d_G(x,z)\geq d+r\) for \(x\in R\), \(z\notin L\). Set \(M_L=\sum _{k:T_k\not\subseteq L}\| \Phi _k\| \). For every \(t\in \mathbb {R}\),
For a colouring of the overlap graph with \(m\) colours, let \(o\) be the colour order and \(U_{L,n}(t)\) the Trotter propagator of the restricted family. Put \(c_L(o)=\sum _{i{\lt}j}\| [h^L_{o_i}\otimes 1,h^L_{o_j}\otimes 1]\| \). For every \(n\geq 1\),
If \(L\) also contains the \(nm\)-fold neighbourhood of \(R\) in the support geometry, then (3) holds with the full Trotter propagator \(U_n(t)\) in place of \(U_{L,n}(t)\).
In the setting of Theorem 45.11.5, let \(L\) contain the \(nm\)-fold neighbourhood of \(R\) in the support geometry, and let \(M_\partial =\sum _k\| \Phi _k\| \) over the \(k\) with \(T_k\) meeting \(L\) without lying in it. Then (3) holds for the full Trotter propagator \(U_n(t)\) with \(M_\partial \) in place of \(M_L\). Here \(M_\partial \leq b|\partial L|\), where \(\partial L\) is the set of sites of \(L\) lying in such a term, so the truncation contribution is controlled independently of the sites outside \(L\).
Let \(G\) be a finite graph and \(\Phi _j\) Hermitian interactions supported on \(T_j\). Assume \(\operatorname {diam}_G(T_j)\leq R\), \(|T_j|\leq v_R\), and \(\sum _{j:x\in T_j}\| \Phi _j\| \leq b\) at every site \(x\). Put \(K=\sum _j\Phi _j\), fix \(A\in \mathcal A_S\), \(\mu \geq 0\), and \(d\in \mathbb N\). For a set \(D\) of deleted terms and any Hermitian \(H\) with \(K-H=\sum _{j\in D}\Phi _j\), suppose \(d_G(x,y)\geq d\) for \(x\in S\), \(y\in T_j\), \(j\in D\). Then, with \(M_D=\sum _{j\in D}\| \Phi _j\| \),
In particular take \(H=\sum _{j:T_j\subseteq L}\Phi _j\) and \(D=\{ j:T_j\not\subseteq L\} \). Estimate (6) holds if \(d_G(x,z)\geq d+R\) for every \(x\in S\), \(z\notin L\).
In the setting of Theorem 36.7.3, let \(S\subseteq L\), let \(d_G(x,z)\geq d+R\) for every \(x\in S\), \(z\notin L\), and put \(H_L=\sum _{j:T_j\subseteq L}\Phi _j\). Call a term crossing if \(T_j\) meets \(L\) without lying in it, and let \(\partial L\) be the set of sites of \(L\) lying in a crossing term. With \(M_\partial =\sum _{j\text{ crossing}}\| \Phi _j\| \),
Let the \(h_k\) be Hermitian, let \(H=h_{o_1}+\cdots +h_{o_N}\) and let \(n\geq 1\). Then \(U_1(t)\) and \(U_2(t)\) are unitary,
with \(c(o)=\sum _{i{\lt}j}\lVert [h_{o_i},h_{o_j}]\rVert \) and \(a(o)=\sum _i\lVert h_{o_i}\rVert \), and for every operator \(A\), \(\lVert U_1(t)^*AU_1(t)-e^{itH}Ae^{-itH}\rVert \leq 2\lVert A\rVert \frac{t^2}{2n}c(o)\), and likewise for \(U_2\). For the terms of an interaction and an order listing every index exactly once, \(H=H_\Phi \) and \(e^{itH}Ae^{-itH}=\tau _t(A)\).
- ProductFormula.isHermitian_gen
- ProductFormula.step_smul_I_mem_unitary
- ProductFormula.lieEvolution_mem_unitary
- ProductFormula.strangEvolution_mem_unitary
- ProductFormula.expBound_smul_I_one
- ProductFormula.norm_lieEvolution_sub_le
- ProductFormula.norm_strangEvolution_sub_le
- ProductFormula.norm_lieEvolution_conj_sub_le
- ProductFormula.norm_strangEvolution_conj_sub_le
- ManyBody.Interaction.norm_lieEvolution_sub_hamiltonian_le
- ManyBody.Interaction.norm_strangEvolution_sub_hamiltonian_le
- ManyBody.Interaction.norm_lieEvolution_heisenberg_sub_le
- ManyBody.Interaction.norm_strangEvolution_heisenberg_sub_le
The effect of \(\bigotimes _vK^v\) is \(\bigotimes _vE_v\), where \(E_v\) is the effect of \(K^v\). In particular a product of trace-preserving families is trace-preserving.
For every linear map \(E : M_{D}(\mathbb {C}) \to M_{D'}(\mathbb {C})\), every \(\rho \in M_{D'}(\mathbb {C})\), and every \(X \in M_{D}(\mathbb {C})\), one has