Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Gray-Path Synthesis of a Two-Level Gate

Definition

Input distinct x,y∈{0,1}n, n≥1, exact V∈U(2), and for each controlled call a choice between the no-workspace and clean-bit constructions of Multicontrolled Unitaries with and without a Clean Work Bit. If any call selects the clean-bit construction, supply one clean bit initialized to 0. Output: the chronological elementary-gate list on the n data wires and, if selected, that one clean work wire.

Let g0=x,…,gd=y be the path that flips the differing bit positions once in increasing order, where d is the Hamming distance. For j=0,…,d−2, swap gj and gj+1 by an X on their differing bit controlled on the other n−1 bits matching their common pattern. Apply V to the final pair gd−1,y by a one-qubit target gate controlled on their common other bits, reversing the ordered 2×2 block if gd−1 has target bit 1. Undo the swaps in reverse order. Expand every multi-control using its selected construction; implement negative controls by conjugating that control wire with X.

Expand the calls by the following procedures. Every list below is chronological; concatenation means execute the left list first. Order control wires and available spare wires by their register positions. All parameter selections are exact mathematical operations: use exact matrix arithmetic, a finite-dimensional unitary eigendecomposition, polar arguments and the Euler parameter selection of One-Qubit Euler Decomposition. The input representation must support these selections and exact zero tests; no finite-precision bit-time claim is made. Fix each selection when its call is first expanded and retain the resulting list for an inverse call.

For one control c, target t and matrix W, choose W=eiδRz(α)Ry(θ)Rz(β) as in One-Qubit Euler Decomposition. Form the three matrices A=Rz(α)Ry(θ/2), B=Ry(−θ/2)Rz(−(α+β)/2) and C=Rz((β−α)/2). Define S(c,t;W) to be the list Ct, CNOTc→t, Bt, CNOTc→t, At, diag⁡(1,eiδ)c. Each of A,B,C is one arbitrary one-qubit gate, as in Exact Controlled One-Qubit Unitary with Two CNOTs. Define T(a,b;t) by setting J=((1+i)I+(1−i)X)/2 and concatenating S(b,t;J), CNOTa→b, S(b,t;J∗), CNOTa→b, S(a,t;J).

Define the ladder list L(c1,…,cs;t) with an ordered supply of at least max⁡{s−2,0} distinct spare wires. For s=1 emit one CNOT; for s=2 emit T(c1,c2;t). For s≥3, use the first s−2 spares a1,…,as−2. Set T1=T(c1,c2;a1), Tj=T(cj+1,aj−1;aj) for 2≤j≤s−2, and H=T(cs,as−2;t). Concatenate T1,…,Ts−2,H,Ts−2,…,T1 and then T2,…,Ts−2,H,Ts−2,…,T2; the latter list is just H when s=3. This is the borrowed ladder used in Linear Multicontrolled X with One Borrowed Wire.

Define D(C;t;z) for an ordered nonempty control set C and a distinct borrowed wire z. With one or two controls use the corresponding ladder base case and leave z unused. With r≥3 controls split C into its first p=⌈r/2⌉ controls A and the remaining q=⌊r/2⌋ controls B. Let F=L(A;z) use spares from B∪{t}, and let G=L(B∪{z};t) use spares from A. Emit F,G,F,G, using the same parameter choices for repeated lists. The stated spare supplies have at least p−2 and q−1 wires, respectively.

Define the positive-control no-workspace expansion N(C;t;W) recursively. If C is empty, emit Wt. If it has one wire c, emit S(c,t;W). Otherwise write C=A∪{b}, with b its last control. Choose an orthonormal eigendecomposition W=Rdiag⁡(λ1,λ2)R∗ by Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely, choose polar angles λj=cos⁡uj+isin⁡uj by Every nonzero complex number has a unique polar form r(cos⁡θ+isin⁡θ) with r>0 and −π<θ≤π, and set Z=Rdiag⁡(cos⁡(u1/2)+isin⁡(u1/2),cos⁡(u2/2)+isin⁡(u2/2))R∗. The addition formulas of The addition formulas for sine and cosine specify these half-angle roots. Emit S(b,t;Z), D(A;b;t), S(b,t;Z∗), D(A;b;t), N(A;t;Z). The last call has one fewer control and uses only its indicated wires.

For the positive-control clean-bit expansion with nonempty C and clean wire w, emit D(C;w;t), S(w,t;W), and the reversed adjoint of that same D list. With no controls emit Wt and leave w unused. These are the two constructions analyzed in Multicontrolled Unitaries with and without a Clean Work Bit. For a pattern control, conjugate the selected whole positive-control list by one X on each zero-valued control, ordering each set of these X gates by wire position. Reverse the ordered middle block by using XVX as its single matrix parameter, not by adding target X occurrences.

Use the selected literal elementary gate list for each call without deleting identity gates or cancelling neighboring gates. In the one-control base use the three target matrices and one control phase as four arbitrary one-qubit gates. Use the same choices and reversed adjoint gate lists for the return swaps. Reuse the supplied clean bit sequentially; each selected clean-bit construction returns it to 0.

Depends on

Used by

Dependency tree · two levels

48 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources