- 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
For an integer \(r\geq 0\) define
For a real number \(x\) put \(c_x=(\sqrt x)^{-1}\in \mathbb {C}\), and \(c=c_2=(\sqrt2)^{-1}\).
For \(z,\nu \in \mathbb {C}\) put
For \(P\in \mathbb {C}^{I\times I}\) put \(R_P=1-2P\). For \(G,H\in \mathbb {C}^{I\times M}\) and real \(\theta \) put
Let \(a,b\in I\) and \(g\in \mathbb {C}^{2\times 2}\), with rows and columns of \(g\) indexed by \(\{ 0,1\} \). For \(x\in I\) put \(\iota _a(x)=0\) if \(x=a\) and \(\iota _a(x)=1\) otherwise. The two-level operator \(G_{ab}(g)\in \mathbb {C}^{I\times I}\) has the entries
For \(a\neq b\) it acts as \(g\) on \(\operatorname{span}\{ |a\rangle ,|b\rangle \} \), in this order of the two vectors, and as the identity on the other basis vectors.
For \(V\in \mathbb {C}^{I\times M}\), \(P\in \mathbb {C}^{I\times I}\) and real \(p\) put
For real \(t\) put \(s=\sqrt{1-t^2}\), and for \(V\in \mathbb {C}^{I\times M}\) and \(P\in \mathbb {C}^{I\times I}\) define
The two row blocks of \(V_t\) and \(P_t\) are the two values of a binary flag.
For every integer \(r\geq 0\), \(\ell (r)\leq r\) and \(\theta (r){\gt}0\). For \(r\geq 1\),
If \(P\) is an orthogonal projection, \(R_P\) is unitary. If \(V^\dagger V=1\), then \(VV^\dagger \) is an orthogonal projection. If \(G^\dagger G=H^\dagger H=1\) and \(G^\dagger H=0\), then \(V_\theta ^\dagger V_\theta =1\) for every real \(\theta \); if, in addition, \(P\) is an orthogonal projection, \(Q_\theta \) is unitary.
Let \(a\in I\), \(X\in \mathbb {C}^{I\times I}\) and \(R\subseteq I\) with \(a\notin R\). There is a two-level word \(W\) of length at most \(2|R|\) that fixes the basis vectors outside \(R\cup \{ a\} \) and satisfies \((WX)_{ca}=0\) for every \(c\in R\).
Let \(p,q,p_1,p_2,x,y,v,v',w\) be elements of a ring.
\(C(p,1)=1\) and \(C(p_1,C(p_2,w))=C(p_1p_2,w)\).
If \(p^2=p\) and \(px=xp\), then \(C(p,x)C(p,y)=C(p,xy)\).
If \(pv=vp\) and \(vv'=1\), then \(vC(p,w)v'=C(p,vwv')\).
If \(p\) commutes with \(q\) and with \(x\), then \(p\) commutes with \(C(q,x)\).
Let \(p_1,p_2\) be commuting idempotents of a ring and let \(v,v',w,w'\) satisfy \(vv'=1\) and \(ww'=1\). Suppose that \(p_1\) commutes with \(v\) and \(w\), and that \(p_2\) commutes with \(v\), \(v'\) and \(w\). Then
If \(X\) fixes the basis vectors outside \(T\) and \(T\subseteq T'\), it fixes those outside \(T'\). If \(X\) and \(Y\) fix the basis vectors outside \(T\), so does \(XY\). The operator \(G_{ab}(g)\) fixes the basis vectors outside \(\{ a,b\} \), and a matrix fixing the basis vectors outside \(\emptyset \) is the identity.
Let \(X\in \mathbb {C}^{I\times I}\) be unitary with \(\det X=1\). If \(X\) fixes the basis vectors outside \(T\subseteq I\), then \(X\) is a two-level word of length at most \(3|T|^2\). In particular every unitary \(X\) with \(\det X=1\) is a two-level word of length at most \(3|I|^2\).
For \(x\geq 0\) the number \(c_x=1/\sqrt x\) satisfies \(c_x\cdot c_x=c_x^2=x^{-1}\), \(|c_x|^2=x^{-1}\), \(\overline{c_x}=c_x\) and \(c_{x^n}=c_x^n\); for \(x{\gt}0\), \(c_x\neq 0\), \(c_x\sqrt x=\sqrt x\, c_x=1\) and \(c_x^nc_x^nx^n=1\) for every integer \(n\geq 0\). In particular \(c=1/\sqrt2\) satisfies \(c\neq 0\), \(c\cdot c=c^2=|c|^2=\tfrac 12\), \(c\sqrt2=\sqrt2\, c=1\), \(\overline c=c\) and \(c^nc^n2^n=1\).
- Complex.invSqrt_ne_zero
- Complex.invSqrt_mul_self
- Complex.invSqrt_sq
- Complex.norm_invSqrt_sq
- Complex.invSqrt_pow
- Complex.invSqrt_pow_mul_self
- Complex.invSqrt_mul_sqrt
- Complex.sqrt_mul_invSqrt
- Complex.conj_invSqrt
- Complex.star_invSqrt
- Complex.invSqrtTwo_ne_zero
- Complex.invSqrtTwo_mul_self
- Complex.invSqrtTwo_sq
- Complex.norm_invSqrtTwo_sq
- Complex.invSqrtTwo_pow_mul_self
- Complex.invSqrtTwo_mul_sqrtTwo
- Complex.sqrtTwo_mul_invSqrtTwo
- Complex.conj_invSqrtTwo
- Complex.star_invSqrtTwo
Let \(x\geq 0\) be real and regard \(\sqrt x\) as a complex number. Then \((\sqrt x)^2=x\) and \((\sqrt x)^{-1}(\sqrt x)^{-1}=x^{-1}\).
If \(AA^\dagger A=A\), then \(\mathcal D_A\) is unitary. For every matrix \(V\) with rows indexed by \(I\),
If \(AA^\dagger A=A\), the Gram matrix of the left-hand side of (10) is \(V^\dagger V\). For arbitrary \(A\), the Gram matrix of its first block is \((AV)^\dagger AV\).
For all \(z,w,\nu \in \mathbb {C}\), \(R(z)R(w)=R(zw)\), \(R(1)=1\), \(R(z)^\dagger =R(\overline z)\), \(D(\nu )^\dagger =D(\overline\nu )\) and \(Q=R(-i)\). The matrices \(J\) and \(Q\) are unitary, and \(R(z)\) and \(D(\nu )\) are unitary when \(|z|=1\) and \(|\nu |=1\).
- QuantumCircuit.rotTwo_mul
- QuantumCircuit.rotTwo_one
- QuantumCircuit.rotTwo_conjTranspose
- QuantumCircuit.diagTwo_conjTranspose
- QuantumCircuit.quarterTwo_eq_rotTwo
- QuantumCircuit.rotTwo_mem_unitary
- QuantumCircuit.diagTwo_mem_unitary
- QuantumCircuit.phaseTwo_mem_unitary
- QuantumCircuit.quarterTwo_mem_unitary
If \(g\) is a rotation or phase of unit modulus, then \(g\) is unitary, \(\det g=1\), and \(g^\dagger \) is again a rotation or phase of unit modulus.
For every \(w\in \mathbb {C}\),
Suppose \(G^\dagger G=H^\dagger H=1\), \(G^\dagger H=0\), \(PG=G\) and \(PH=0\). For all real \(\theta ,\phi \) and integers \(k\geq 0\),
In particular, for every integer \(\ell \geq 0\) and \(\theta =\pi /(4\ell +2)\), \(Q_\theta ^\ell V_\theta =G\).
Let \(a\neq b\). For \(v\in \mathbb {C}^I\) the vector \(G_{ab}(g)v\) has the coordinates \(g_{00}v_a+g_{01}v_b\) at \(a\), \(g_{10}v_a+g_{11}v_b\) at \(b\), and \(v_x\) at every \(x\notin \{ a,b\} \). Consequently, for \(Y\in \mathbb {C}^{I\times I}\) the rows of \(G_{ab}(g)Y\) at \(a\) and \(b\) are \(g_{00}Y_{a\, \cdot }+g_{01}Y_{b\, \cdot }\) and \(g_{10}Y_{a\, \cdot }+g_{11}Y_{b\, \cdot }\), and the other rows are those of \(Y\).
For all \(a,b\in I\) and \(g\in \mathbb {C}^{2\times 2}\), \(G_{ab}(1)=1\) and \(G_{ab}(g)^\dagger =G_{ab}(g^\dagger )\). If \(a\neq b\), then \(G_{ab}(g)G_{ab}(h)=G_{ab}(gh)\) for all \(g,h\in \mathbb {C}^{2\times 2}\), hence \(G_{ab}(g_1\cdots g_k)=G_{ab}(g_1)\cdots G_{ab}(g_k)\) for every finite list \(g_1,\ldots ,g_k\), and \(G_{ab}(g)\) is unitary whenever \(g\) is.
If \(x\notin \{ a,b\} \) or \(y\notin \{ a,b\} \), then \(G_{ab}(g)_{xy}=\delta _{xy}\). The index map satisfies \(\iota _a(a)=0\), and \(\iota _a(b)=1\) when \(a\neq b\).
The identity is a two-level word of length at most \(K\) for every \(K\geq 0\), and a two-level word of length at most \(K\) has length at most \(K'\) for every \(K'\geq K\).
If \(X\) and \(Y\) are two-level words of lengths at most \(K\) and \(K'\), then \(XY\) is one of length at most \(K+K'\).
If \(a\neq b\) and \(g\) is a rotation or phase of unit modulus, then \(G_{ab}(g)\) is a two-level word of length at most \(1\); if \(g_1,\ldots ,g_k\) are rotations or phases of unit modulus, then \(G_{ab}(g_1\cdots g_k)\) is one of length at most \(k\).
If \(X\) is a two-level word of length at most \(K\), then so is \(X^\dagger \), and \(X\) is unitary with \(\det X=1\).
- QuantumCircuit.IsTwoLevelWord.one
- QuantumCircuit.IsTwoLevelWord.mono
- QuantumCircuit.IsTwoLevelWord.mul
- QuantumCircuit.IsTwoLevelWord.single
- QuantumCircuit.IsTwoLevelWord.conjTranspose
- QuantumCircuit.IsTwoLevelWord.mem_unitary
- QuantumCircuit.IsTwoLevelWord.det_eq_one
- QuantumCircuit.isTwoLevelWord_twoLevel_list_prod
Suppose \(V^\dagger V=1\) and \(P\) is an orthogonal projection. Then \(Q\) is unitary. If \(V^\dagger PV=\sin ^2\theta \, 1\) with \(0{\lt}\theta {\lt}\pi /2\), then the maps \(G,H\) of Definition 33.7.4 at \(p=\sin \theta \) satisfy, for every integer \(k\geq 0\),
For an integer \(\ell \geq 1\) and \(\theta =\pi /(4\ell +2)\), \(Q^\ell V=(\sin \theta )^{-1}PV\). If instead \(V^\dagger PV=1\), then \(PV=V\).
Suppose \(V^\dagger V=1\), \(P\) is an orthogonal projection, \(0{\lt}p{\lt}1\) and \(V^\dagger PV=p^2\, 1\). The maps \(G,H\) of Definition 33.7.4 satisfy
If \(t^2\leq 1\), then \(R_t\) is unitary, and \(V^\dagger V=1\) implies \(V_t^\dagger V_t=1\). If \(P\) is an orthogonal projection, so is \(P_t\). For all real \(t,p\), if \(V^\dagger PV=p^2\, 1\), then