Definitions for Random quantum circuits are approximate unitary -designs in depth
DefinitionQAlgorithms_Papers_Independent_Extend50_P45The objects the formalized statements of Random quantum circuits are approximate unitary -designs in depth (arXiv:2203.16571) are stated in. Each was checked against the paper by a blind read-back and a moderator.
QMat: PDF pp.2–4: matrices in the frozen most-significant-wire-first qubit basis.haarLaw: PDF p.3: normalized Haar law in the frozen bit-string coordinates.convolve: PDF p.3, Eq.(4): independent composition, the right factor acts first.steps: PDF p.3, Eq.(4): k independent steps; zero steps is the identity.nextWire: PDF p.4, Definition 2: successor on the periodic ring.edgeLift: PDF p.4: lift a two-qubit matrix to the ordered edge (i,i+1). The outside coordinates are left unchanged. Only n >= 2 is used in results.edgeLaw: PDF p.4: independent Haar U(4) on the chosen edge.localHaarRingLaw: PDF p.4, Definition 2(1): each of the n oriented adjacent pairs has weight 1/n. For n=2 the two oriented copies are retained. The unused n=0 extension is zero.matchingLaw: PDF p.4, Definition 2(2): a parity matching with independent gates. For even n, parity zero gives (1,2),(3,4),... and parity one ends in (n,1).brickworkLaw: PDF p.4: one brickwork step consists of the even matching followed by the odd matching, hence TWO parallel gate layers. All gates are independent.qubitTensorPower: PDF p.3, Eq.(3): tensor-power matrix, including the empty tensor product.balancedUnitaryMoment: PDF p.3, Eqs.(2)–(3): U^tensor(t) tensor conjugate(U)^tensor(t), entrywise expectation; vec(|i><j|)=|i> tensor |j>. Circuit integrands are continuous and bounded on their compact unitary supports.momentDistance: PDF p.3, Eq.(2): Schatten infinity norm relative to the Haar moment.unitaryMomentTwirl: PDF p.2, Eq.(1): twirl reconstructed from its vectorized moment matrix.twirlDiamondDistance: PDF p.3: stabilized induced trace norm (no factor 1/2), using a reference of input dimension. For these finite-dimensional linear maps the unit-ball image is bounded and nonempty.IsApproximateDesign: PDF p.3, Definition 1(1), Eq.(5): the additive diamond error is epsilon/2^(nt).momentHamiltonian: PDF p.4, Eq.(9): sum of complementary two-site Haar moment projections. The formula n(I-M(local,t)) equals that sum; ground-space multiplicity is unrestricted.reductionLength: PDF p.7, Observation 1: the ceiling, including the square-root correction.designFactor: PDF pp.7–8: the exact noninteger exponent; used only at integer t >= 2.cliffordLaw: PDF pp.4,9: uniform GLOBAL Clifford law modulo phase, using the frozen full normalizer quotient. The finite enumeration is a representation of the whole group, never a caller-selected subset or a hypothesis about spectral mixing.firstWireLift: PDF p.9: Haar U(2) on the first wire and identity on every other wire.auxiliaryLaw: PDF p.9, Eq.(26): two independent global Cliffords sandwich first-wire Haar. Scalar choices of Clifford representatives are absorbed by the Haar U(2) factor.cliffordBrickworkLaw: PDF p.13: Clifford brickwork, with independent uniform TWO-qubit Clifford gates.couplingCosts: PDF p.10, Eq.(28): probability couplings with the two prescribed marginals. Finite second moment is explicit; on the unitary supports it is automatic.frobeniusWasserstein: PDF p.10, Eq.(28): Wasserstein-2 for the Frobenius CHORD distance. For the laws used here product coupling makes the set nonempty; costs lie in [0,2 sqrt(2^n)], so the real infimum never uses an empty/unbounded default.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Basic
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_SchurUnitaryEnsembles
import Definitions.Def_QAlgorithms_Defs_ProjectiveCliffords
noncomputable section
open MeasureTheory
open scoped ComplexConjugate ENNReal
namespace QAlgorithms.Papers.Independent.Extend50.P45
/-- PDF pp.2–4: matrices in the frozen most-significant-wire-first qubit basis. -/
abbrev QMat (n : ℕ) := Matrix (Qubits n) (Qubits n) ℂ
/-- PDF pp.2–3: the Borel sigma-algebra of the finite-dimensional matrix space.
All circuit measures below are supported on unitaries on their stated domains. -/
local instance qubitMatrixMeasurable (n : ℕ) : MeasurableSpace (QMat n) := borel _
/-- PDF pp.2–3: measurability uses exactly the matrix topology's Borel sets. -/
local instance qubitMatrixBorel (n : ℕ) : BorelSpace (QMat n) := ⟨rfl⟩
/-- PDF p.3: normalized Haar law in the frozen bit-string coordinates. -/
def haarLaw (n : ℕ) : Measure (QMat n) :=
Measure.map (fun U : Matrix.unitaryGroup (Fin (2 ^ n)) ℂ =>
(fun x y => U.val (bitsEquivFin n x) (bitsEquivFin n y) : QMat n))
(Schur.unitaryHaar (2 ^ n))
/-- PDF p.3, Eq.(4): independent composition, the right factor acts first. -/
def convolve {n : ℕ} (mu nu : Measure (QMat n)) : Measure (QMat n) :=
Measure.map (fun p : QMat n × QMat n => p.1 * p.2) (mu.prod nu)
/-- PDF p.3, Eq.(4): k independent steps; zero steps is the identity. -/
def steps {n : ℕ} (mu : Measure (QMat n)) : ℕ → Measure (QMat n)
| 0 => Measure.dirac (1 : QMat n)
| k + 1 => convolve mu (steps mu k)
/-- PDF p.4, Definition 2: successor on the periodic ring. -/
def nextWire {n : ℕ} (i : Fin n) : Fin n :=
if h : i.val + 1 < n then ⟨i.val + 1, h⟩
else ⟨0, lt_of_le_of_lt (Nat.zero_le i.val) i.isLt⟩
/-- PDF p.4: lift a two-qubit matrix to the ordered edge (i,i+1).
The outside coordinates are left unchanged. Only n >= 2 is used in results. -/
def edgeLift {n : ℕ} (i : Fin n) (U : QMat 2) : QMat n :=
fun x y => if ∀ q, q ≠ i → q ≠ nextWire i → x q = y q then
U (fun j => if j.val = 0 then x i else x (nextWire i))
(fun j => if j.val = 0 then y i else y (nextWire i)) else 0
/-- PDF p.4: independent Haar U(4) on the chosen edge. -/
def edgeLaw {n : ℕ} (i : Fin n) : Measure (QMat n) :=
Measure.map (edgeLift i) (haarLaw 2)
/-- PDF p.4, Definition 2(1): each of the n oriented adjacent pairs has weight 1/n.
For n=2 the two oriented copies are retained. The unused n=0 extension is zero. -/
def localHaarRingLaw (n : ℕ) : Measure (QMat n) :=
(n : ℝ≥0∞)⁻¹ • ∑ i : Fin n, edgeLaw i
/-- PDF p.4, Definition 2(2): a parity matching with independent gates.
For even n, parity zero gives (1,2),(3,4),... and parity one ends in (n,1). -/
def matchingLaw (n parity : ℕ) (gateLaw : Measure (QMat 2)) : Measure (QMat n) :=
((List.finRange n).filter (fun i => i.val % 2 == parity)).foldl
(fun mu i => convolve (Measure.map (edgeLift i) gateLaw) mu) (Measure.dirac (1 : QMat n))
/-- PDF p.4: one brickwork step consists of the even matching followed by the odd
matching, hence TWO parallel gate layers. All gates are independent. -/
def brickworkLaw (n : ℕ) : Measure (QMat n) :=
convolve (matchingLaw n 1 (haarLaw 2)) (matchingLaw n 0 (haarLaw 2))
/-- PDF p.3, Eq.(3): tensor-power matrix, including the empty tensor product. -/
def qubitTensorPower {n : ℕ} (t : ℕ) (U : QMat n) :
Matrix (Fin t → Qubits n) (Fin t → Qubits n) ℂ :=
fun x y => ∏ j, U (x j) (y j)
/-- PDF p.3, Eqs.(2)–(3): U^tensor(t) tensor conjugate(U)^tensor(t),
entrywise expectation; vec(|i><j|)=|i> tensor |j>. Circuit integrands are
continuous and bounded on their compact unitary supports. -/
def balancedUnitaryMoment {n : ℕ} (mu : Measure (QMat n)) (t : ℕ) :
Matrix ((Fin t → Qubits n) × (Fin t → Qubits n))
((Fin t → Qubits n) × (Fin t → Qubits n)) ℂ :=
fun x y => ∫ U, qubitTensorPower t U x.1 y.1 *
conj (qubitTensorPower t U x.2 y.2) ∂mu
/-- PDF p.3, Eq.(2): Schatten infinity norm relative to the Haar moment. -/
def momentDistance {n : ℕ} (mu : Measure (QMat n)) (t : ℕ) : ℝ :=
specNorm (balancedUnitaryMoment mu t - balancedUnitaryMoment (haarLaw n) t)
/-- PDF p.2, Eq.(1): twirl reconstructed from its vectorized moment matrix. -/
def unitaryMomentTwirl {n : ℕ} (mu : Measure (QMat n)) (t : ℕ)
(A : Matrix (Fin t → Qubits n) (Fin t → Qubits n) ℂ) :
Matrix (Fin t → Qubits n) (Fin t → Qubits n) ℂ :=
fun x y => ∑ a, ∑ b, balancedUnitaryMoment mu t (x,y) (a,b) * A a b
/-- PDF p.3: stabilized induced trace norm (no factor 1/2), using a reference of
input dimension. For these finite-dimensional linear maps the unit-ball image is
bounded and nonempty. -/
def twirlDiamondDistance {n : ℕ} (mu nu : Measure (QMat n)) (t : ℕ) : ℝ :=
sSup {v : ℝ | ∃ X : Matrix
((Fin t → Qubits n) × (Fin t → Qubits n))
((Fin t → Qubits n) × (Fin t → Qubits n)) ℂ,
traceNorm X ≤ 1 ∧ v = traceNorm
(idTensorSuperop (R := Fin t → Qubits n)
(fun A => unitaryMomentTwirl mu t A - unitaryMomentTwirl nu t A) X)}
/-- PDF p.3, Definition 1(1), Eq.(5): the additive diamond error is epsilon/2^(nt). -/
def IsApproximateDesign {n : ℕ} (mu : Measure (QMat n)) (t : ℕ) (epsilon : ℝ) : Prop :=
twirlDiamondDistance mu (haarLaw n) t ≤ epsilon / (2 : ℝ) ^ (n * t)
/-- PDF p.4, Eq.(9): sum of complementary two-site Haar moment projections.
The formula n(I-M(local,t)) equals that sum; ground-space multiplicity is unrestricted. -/
def momentHamiltonian (n t : ℕ) :
Matrix ((Fin t → Qubits n) × (Fin t → Qubits n))
((Fin t → Qubits n) × (Fin t → Qubits n)) ℂ :=
(n : ℂ) • (1 - balancedUnitaryMoment (localHaarRingLaw n) t)
/-- PDF p.7, Observation 1: the ceiling, including the square-root correction. -/
def reductionLength (t : ℕ) : ℕ :=
⌈2 * Real.logb 2 (4 * (t : ℝ)) +
(3 / 2 : ℝ) * Real.sqrt (Real.logb 2 (4 * (t : ℝ)))⌉₊
/-- PDF pp.7–8: the exact noninteger exponent; used only at integer t >= 2. -/
def designFactor (t : ℕ) : ℝ :=
Real.log (t : ℝ) ^ 5 *
(t : ℝ) ^ (4 + 3 / Real.sqrt (Real.logb 2 (t : ℝ)))
/-- PDF pp.4,9: uniform GLOBAL Clifford law modulo phase, using the frozen full
normalizer quotient. The finite enumeration is a representation of the whole group,
never a caller-selected subset or a hypothesis about spectral mixing. -/
def cliffordLaw (n : ℕ) [Fintype (Clifford.ProjectiveGroup n)] : Measure (QMat n) :=
∑ C : Clifford.ProjectiveGroup n,
(Clifford.uniformGlobalEnsemble n C) •
Measure.dirac ((Clifford.representative C).val.val)
/-- PDF p.9: Haar U(2) on the first wire and identity on every other wire. -/
def firstWireLift (n : ℕ) (U : QMat 1) : QMat n :=
fun x y => if h : 0 < n then
if ∀ q : Fin n, q.val ≠ 0 → x q = y q then
U (fun _ => x ⟨0,h⟩) (fun _ => y ⟨0,h⟩) else 0
else (1 : QMat n) x y
/-- PDF p.9, Eq.(26): two independent global Cliffords sandwich first-wire Haar.
Scalar choices of Clifford representatives are absorbed by the Haar U(2) factor. -/
def auxiliaryLaw (n : ℕ) [Fintype (Clifford.ProjectiveGroup n)] : Measure (QMat n) :=
convolve (cliffordLaw n)
(convolve (Measure.map (firstWireLift n) (haarLaw 1)) (cliffordLaw n))
/-- PDF p.13: Clifford brickwork, with independent uniform TWO-qubit Clifford gates. -/
def cliffordBrickworkLaw (n : ℕ) [Fintype (Clifford.ProjectiveGroup 2)] : Measure (QMat n) :=
convolve (matchingLaw n 1 (cliffordLaw 2)) (matchingLaw n 0 (cliffordLaw 2))
/-- PDF p.10, Eq.(28): probability couplings with the two prescribed marginals.
Finite second moment is explicit; on the unitary supports it is automatic. -/
def couplingCosts {n : ℕ} (mu nu : Measure (QMat n)) : Set ℝ :=
{v | ∃ gamma : Measure (QMat n × QMat n), IsProbabilityMeasure gamma ∧
Measure.map Prod.fst gamma = mu ∧ Measure.map Prod.snd gamma = nu ∧
Integrable (fun p => frobNorm (p.1 - p.2) ^ 2) gamma ∧
v = Real.sqrt (∫ p, frobNorm (p.1 - p.2) ^ 2 ∂gamma)}
/-- PDF p.10, Eq.(28): Wasserstein-2 for the Frobenius CHORD distance.
For the laws used here product coupling makes the set nonempty; costs lie in
[0,2 sqrt(2^n)], so the real infimum never uses an empty/unbounded default. -/
def frobeniusWasserstein {n : ℕ} (mu nu : Measure (QMat n)) : ℝ :=
sInf (couplingCosts mu nu)
/-! The short names flagged by the prior checker belong to unrelated accepted
objects (finite classical laws/marginals, a fixed rational sign-count tensor,
coherence moments, and task-specific twirls). They are not replacements for these
paper-specific constructions. See ASSESSMENT.json and MODERATION_NOTES.md. -/
/-! Definitional sanity examples. No theorem proofs are attempted. -/
example {n : ℕ} (mu : Measure (QMat n)) : steps mu 0 = Measure.dirac (1 : QMat n) := rfl
example {n : ℕ} (mu : Measure (QMat n)) (k : ℕ) :
steps mu (k + 1) = convolve mu (steps mu k) := rfl
example {n : ℕ} (U : QMat n) (x y : Fin 0 → Qubits n) :
qubitTensorPower 0 U x y = 1 := by simp [qubitTensorPower]
example : nextWire (n := 2) (0 : Fin 2) = 1 := rfl
example : nextWire (n := 2) (1 : Fin 2) = 0 := rfl
example (U : QMat 1) (x y : Qubits 1) :
firstWireLift 1 U x y = U (fun _ => x 0) (fun _ => y 0) := by
have hout : ∀ q : Fin 1, q.val ≠ 0 → x q = y q := by
intro q hq
have hz : q.val = 0 := by omega
exact (hq hz).elim
simp [firstWireLift, hout]
example (n : ℕ) : brickworkLaw n =
convolve (matchingLaw n 1 (haarLaw 2)) (matchingLaw n 0 (haarLaw 2)) := rfl
end QAlgorithms.Papers.Independent.Extend50.P45
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P45.IsApproximateDesign
For every natural number , every measure on complex matrices indexed by , every natural number , and every real number , let and let be normalized Haar measure on , reindexed by binary strings through . For , define
For each complex matrix indexed by , form by applying to every block . The defined predicate is precisely
with the square root given by continuous functional calculus. It imposes no separate probability or unitary-support condition on , and no restriction on the sign of . Nonintegrable integrands have integral zero. The values and are included; empty products equal , and the denominator is always positive.
QAlgorithms.Papers.Independent.Extend50.P45.QMat
For every natural number , is the type of complex matrices whose rows and columns are indexed by all Boolean strings of length , where such a string is a function . Thus these matrices have size , with no unitarity or other restriction. When , there is one empty string, so these are matrices.
QAlgorithms.Papers.Independent.Extend50.P45.auxiliaryLaw
For every natural number , let , and form the subgroup generated by the unitary matrices , with and . Take its normalizer and quotient it by equality of conjugation maps . Assuming a finite enumeration of this quotient, let assign equal mass to one chosen unitary representative of each quotient class. Let be normalized Haar measure on , indexed by one-bit strings, and let apply the entries of to wire , with entries zero unless all other bits agree; for , set . For measures on matrices, define as the pushforward of under . The defined measure is
equivalently the distribution of for independent draws from the equal-weight representative measure and from . Zero qubits are included, using empty Pauli tensor products and the identity-valued lift.
QAlgorithms.Papers.Independent.Extend50.P45.balancedUnitaryMoment
For every natural number , every measure on complex matrices indexed by length- Boolean strings, and every natural number , this defines a complex matrix whose row and column indices are pairs of ordered -tuples of such strings. Its entry at row and column is
The measure is not assumed to be finite, a probability measure, or supported on unitaries, and no integrability hypothesis is imposed; the integral is the total Bochner integral, which is defined to be when the integrand is not integrable. When , the matrix has a single entry, equal to . The definition also permits , when the matrices integrated over are .
QAlgorithms.Papers.Independent.Extend50.P45.brickworkLaw
For every natural number , this defines a measure on complex matrices indexed by length- Boolean strings by taking two independently formed products of lifted Haar matrices, one over the even indices and one over the odd indices, and multiplying the odd-index product on the left of the even-index product. Within each parity, indices are processed in increasing order, with each new factor multiplying on the left. For each index , the matrix is drawn from normalized Haar measure on , indexed by two-bit strings in binary order, and lifted to the matrix whose -entry is if agree outside , and otherwise, where is the successor wrapping to . An empty product is the identity. The definition imposes no disjointness condition on the pairs within a parity. For , the result is the Dirac measure at the identity; for , the sole even-index lift repeats the only wire.
QAlgorithms.Papers.Independent.Extend50.P45.cliffordBrickworkLaw
For every natural number , consider the subgroup of generated by all two-qubit Pauli matrices with phases , take its normalizer, and identify two normalizer elements exactly when they induce the same conjugation map on every complex matrix. Assuming a finite enumeration of this quotient, let be the measure assigning equal weight to one chosen unitary representative of each class, indexed by two-bit strings. For each , let modulo , and define
For parity , start with the point mass at the identity, traverse the indices in increasing order with , and at each index replace the current measure by , where convolution is the pushforward of the product measure under matrix multiplication. Calling the two resulting measures , the defined measure is . The definition includes , when both index lists are empty and the result is the identity point mass, and , when . It does not require even or disjointness of the wire pairs within either traversal.
QAlgorithms.Papers.Independent.Extend50.P45.cliffordLaw
For every natural number , write . Inside the unitary matrices indexed by , let be the subgroup generated by all matrices , where and each is one of the standard Pauli matrices . Let be its normalizer, consisting of unitary matrices whose conjugation preserves , and identify precisely when for every complex matrix indexed by . Assuming a finite enumeration of the resulting quotient set , choose for each class the representative supplied by the quotient representative operation. The defined measure on all complex matrices indexed by is
Thus its atoms are the chosen unitary representatives, with weights from the uniform probability mass function on the quotient. The quotient is nonempty because it contains the identity class. The definition includes , with the empty tensor product interpreted as .
QAlgorithms.Papers.Independent.Extend50.P45.convolve
For every natural number and every pair of measures on the complex matrices indexed by length- Boolean strings, this defines their convolution to be the pushforward of the product measure under matrix multiplication . The first measure supplies the left factor and the second supplies the right factor. Neither measure is assumed to be a probability measure, finite, or supported on unitary matrices. This also applies when , when the matrices are .
QAlgorithms.Papers.Independent.Extend50.P45.couplingCosts
For every natural number and every pair of measures on complex matrices indexed by , the defined set consists exactly of the real numbers
for which there exists a probability measure on pairs of such matrices whose first marginal is , whose second marginal is , and for which the squared Frobenius distance is integrable. Both marginal equalities and integrability are required. No initial probability or unitary-support assumptions are imposed on ; if either cannot be a marginal of such a probability measure, the set is empty. Every member is nonnegative, and is included, in which case the matrices are .
QAlgorithms.Papers.Independent.Extend50.P45.designFactor
For every natural number , the defined real number is
where is the real natural logarithm, , and the power with real exponent is the real-power operation. There is no assumption . The total-function conventions include , , and division by zero equal to zero; consequently, at both and , the exponent evaluates to and the defined factor is .
QAlgorithms.Papers.Independent.Extend50.P45.edgeLaw
For every natural number and every index , this defines a measure on complex matrices indexed by length- Boolean strings by drawing a unitary matrix from normalized Haar measure and pushing that measure forward through the following map: first index its rows and columns by two-bit strings in binary order, and then assign the entry when and agree at every other index, and otherwise, where with wraparound to . For , the entry uses the repeated bits and . For , no such index exists.
QAlgorithms.Papers.Independent.Extend50.P45.edgeLift
For every natural number , every index , and every complex matrix indexed by two-bit Boolean strings, this defines a matrix indexed by length- Boolean strings by
where if , and otherwise, and an ordered pair of bits denotes the two-bit string with those bits in positions . No unitarity assumption is made on . For , the two selected indices coincide, so the entry is . For , there is no admissible .
QAlgorithms.Papers.Independent.Extend50.P45.firstWireLift
For every natural number and every complex matrix indexed by the one-bit strings , with no unitarity assumption on , the defined matrix is indexed by . When , its entries are
where denotes the one-bit string with value . When , the defined matrix is the identity matrix on the singleton , independently of .
QAlgorithms.Papers.Independent.Extend50.P45.frobeniusWasserstein
For every natural number , including , and any two measures on the space of complex matrices indexed by -bit strings, define
where is the Frobenius norm. The infimum is taken in the real numbers, with the convention that it equals when the displayed set is empty. In particular, the definition does not assume that and are probability measures; if no integrable probability coupling with these marginals exists, its value is .
QAlgorithms.Papers.Independent.Extend50.P45.haarLaw
For every natural number , this defines a measure on complex matrices indexed by length- Boolean strings as the pushforward of normalized Haar measure on the unitary group under the map given by , where identifies Boolean strings with . The Haar measure used here is normalized to give the entire unitary group mass . For , this is a measure on matrices obtained from normalized Haar measure on .
QAlgorithms.Papers.Independent.Extend50.P45.localHaarRingLaw
For every natural number , this defines a measure on complex matrices indexed by length- Boolean strings as , with the reciprocal and scalar multiplication taken in the extended nonnegative reals. Here is the pushforward of normalized Haar measure on , indexed by two-bit strings in binary order, through the map whose -entry is if and agree outside , and otherwise; is the successor with wraparound to . For positive , this is the equally weighted average over the indices. For , the sum is the zero measure and its scalar multiple is again the zero measure, even though the extended nonnegative reciprocal of is . For , both selected positions are the sole wire.
QAlgorithms.Papers.Independent.Extend50.P45.matchingLaw
For every pair of natural numbers and every measure on complex matrices indexed by two-bit Boolean strings, this defines a measure on matrices indexed by length- Boolean strings as follows. List the indices satisfying in increasing order; start with the Dirac measure at the identity; and, for each listed , replace the current measure by , where and has entry when agree outside , and otherwise, with the successor wrapping to . Later listed factors therefore multiply on the left. The measure is unrestricted, and disjointness of the selected pairs is not a condition. If , or if , the list is empty and the result is the Dirac measure at the identity. For , the selected pair repeats the sole index.
QAlgorithms.Papers.Independent.Extend50.P45.momentDistance
For every natural number , every measure on the complex matrices indexed by , and every natural number , put and define the matrix
Let be the measure obtained from normalized Haar measure on by indexing its rows and columns by , using the binary index . The defined distance is
where the norm is the operator norm induced by the Euclidean norm on . No probability, finiteness, or unitary-support assumption is imposed on . The integrals use the convention that a nonintegrable integrand has integral zero. Both and are included; is a singleton, and when , each product in the integrand is the empty product .
QAlgorithms.Papers.Independent.Extend50.P45.momentHamiltonian
For every pair of natural numbers , let and . For , define to be modulo , and for a complex matrix indexed by , define
Let be the pushforward of normalized Haar measure on , indexed by two-bit strings in binary order, under , and set . At , this measure is defined instead by the literal extended-nonnegative-real expression , which is the zero measure. Define
The defined matrix is , indexed by . No lower bound on or is required: at the resulting matrix is zero; at , the two selected wire indices coincide, so the formula uses ; and at , the products are empty products equal to . Nonintegrable integrands have integral zero.
QAlgorithms.Papers.Independent.Extend50.P45.nextWire
For every natural number and every index , this defines the next index to be if , and otherwise. In particular, it sends to ; for , it sends the sole index to itself. For , there is no index to which the definition can be applied.
QAlgorithms.Papers.Independent.Extend50.P45.qubitTensorPower
For every natural number , every natural number , and every complex matrix indexed by length- Boolean strings, this defines a matrix indexed by ordered -tuples of those strings by
There is no unitarity assumption on . When , the indexing set consists of the single empty tuple and the empty product is , so the resulting matrix is the identity. The definition also includes , when itself is .
QAlgorithms.Papers.Independent.Extend50.P45.reductionLength
For every natural number , the defined natural number is
where , is the real natural logarithm, and is the least natural number at least , taking the value when . These are total real functions: , and the real square root of a nonpositive number is . In particular, is included and gives reduction length .
QAlgorithms.Papers.Independent.Extend50.P45.steps
For every natural number and every measure on complex matrices indexed by length- Boolean strings, this defines a sequence of measures , indexed by natural numbers , by , the Dirac measure at the identity matrix, and , where and denotes pushforward. Thus each recursive step puts a new factor governed by on the left. There is no assumption that is finite, a probability measure, or supported on unitaries. The definition includes and , the latter giving matrices.
QAlgorithms.Papers.Independent.Extend50.P45.twirlDiamondDistance
For every natural number , every pair of measures on complex matrices indexed by , and every natural number , set and, for or , define
For a complex matrix indexed by , write , and define by
The defined distance is the real supremum
where the square root is defined by continuous functional calculus. The auxiliary index set is exactly , and need not be Hermitian or positive. Neither measure is required to be a probability measure or supported on unitaries; nonintegrable integrands have integral zero. The definition includes and , with empty products equal to .
QAlgorithms.Papers.Independent.Extend50.P45.unitaryMomentTwirl
For every natural number , every measure on complex matrices indexed by , every natural number , and every complex matrix indexed by , the defined matrix has entries
Thus the integral coefficients are formed first and then contracted with . There are no assumptions that is Hermitian or positive, or that is a probability measure or supported on unitaries. Nonintegrable integrands have integral zero. Zero values of and are allowed; for , is a singleton and the displayed products equal .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.