Definitions for Learning Quantum Processes and Hamiltonians via the Pauli Transfer Matrix
DefinitionQAlgorithms_Papers_Independent_Extend50_P46The objects the formalized statements of Learning Quantum Processes and Hamiltonians via the Pauli Transfer Matrix (arXiv:2212.04471) are stated in. Each was checked against the paper by a blind read-back and a moderator.
normalizedChoiMatrix: PDF p.11, Eq.(2.1): normalized reference-first Choi operator of an arbitrary complex-linear superoperator, in the fixed computational bases. The input maximally entangled density has entries delta_(i,j) delta_(k,l) / din.ptm: PDF p.12, Eq.(2.5): the accepted real PTM coordinates.HermitianBasis: PDF p.12, Definition 2.4: a complete Hermitian Hilbert-Schmidt ONB. There are exactly 4^n basis elements; completeness comes fromModule.Basis.coeff: PDF p.15: real expansion coefficients of a Hermitian operator.tm: PDF p.12, Eq.(2.2): transfer coordinates, output index first.basisNorm: PDF p.16, Eq.(3.10): the maximum operator norm; a nonempty finite range.supportCount: PDF pp.16-19: number of nonzero coefficients, including the identity coefficient.predict: PDF p.16, Eq.(3.3): the estimator computed from the supplied table.predictOn: PDF p.19, Eq.(3.16): estimator using only the supplied known support.predictPauli: PDF p.22: prediction in the source's unnormalized Pauli coefficient lists.ChoiLearner: PDF pp.10,15, Definition 2.10: an actual finite-outcome joint POVM on exactlycopiesfresh normalized Choi states, with a classical report decoder. The unknown channel is absent from every field.choiReportEventProbability: PDF pp.10-11,14-15: the finite Born sum for the preimage of a report event on the actual tensor-power input, without renormalization. Every preimage is a subset of the finite physical outcome space, so no measurability default occurs.tableGood: PDF p.21: the simultaneous absolute-error event on a table of estimates.sparseListGood: PDF pp.23-24: all four guarantees for the finite list computed by thresholding.softFactor: PDF pp.39-41: soft-O suppresses fixed powers of logarithms of the listed parameters. The exponent is quantified uniformly before every instance.generalCost: PDF pp.39-41: the common general-basis sample bound before task-specific factors.eigenspaceState: PDF p.18: (I plus or minus sigma_A)/2^n;minuschooses the minus sign.hamiltonianCoeff: PDF p.28: the unnormalized Hamiltonian expansion coefficient.singleSite: PDF p.29: the single-site witness B_j=b and B_k=I for k different from j.pauliCoefficientProbe: PDF p.29, Lemma 6.1: the constructed input state, with +i[Pauli_A,Pauli_B]/2.hamiltonianDensityFlow: PDF p.28, Eq.(6.1): exp(-itH) rho exp(+itH), defined on all real times.fullEnsemble: PDF p.44: all distinct positive Paulis whose output half is nonidentity.sparseEnsemble: PDF p.45: all distinct positive Paulis nonidentity on both halves.signedPauli: PDF pp.44-45: positive and negative halves, paired by the same label.shadowValues: PDF p.43, Eq.(D.2): values averaged over the whole positive half, without repetition, on normalized pure states only.shadowParameter: PDF p.43: the real supremum; its nonempty bounded domain is a conclusion of each theorem that uses it, rather than an implicit default-value assumption.choiInputContraction: PDF pp.46-49: the response tr_input[(rho^T_input tensor I)(I tensor O)], written entrywise with ancilla first. This formula contracts matrix units of rho against the reference/input indices of O.likelihoodValues: PDF pp.46-49: the operational likelihood-ratio values. Only positive baseline-probability branches are included, so no 0/0 convention enters.likelihoodParameter: PDF p.49, Eq.(D.50): Delta, with positive-denominator operational semantics. Nonemptiness and boundedness are explicitly asserted where its bounds are stated.choiEnsembleValid: PDF pp.43-45: the signed enumeration satisfies (i)-(iii). Tensor-product form is already part ofsignedPauli, and its negative half is paired canonically.sparseEnsembleValid: PDF p.45: additional zero input marginal, giving conditions (i)-(v) for this explicitly Pauli-product, hence one-sparse, enumeration.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_MitigationPauliCoordinates
import Definitions.Def_QAlgorithms_Defs_TomographyOutcomes
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
/-!
Statements from Caro, arXiv:2212.04471v2. All pages are PDF pages.
Local definitions implement source-specific operator coordinates and experiments.
No runtime, storage, adaptive-query, or Hamiltonian-oracle claim is hidden in a field.
The omitted nodes and their precise outstanding interfaces are in the unit's HARD.md.
-/
noncomputable section
open MeasureTheory
open scoped Matrix ComplexConjugate ComplexOrder
namespace QAlgorithms.Papers.Independent.Extend50.P46
attribute [local instance] Classical.propDecidable Classical.decEq
/-- PDF p.11, Eq.(2.1): normalized reference-first Choi operator of an arbitrary
complex-linear superoperator, in the fixed computational bases. The input
maximally entangled density has entries delta_(i,j) delta_(k,l) / din. -/
def normalizedChoiMatrix {din dout : ℕ}
(N : Matrix (Fin din) (Fin din) ℂ →ₗ[ℂ] Matrix (Fin dout) (Fin dout) ℂ) :
Matrix (Fin din × Fin dout) (Fin din × Fin dout) ℂ :=
idTensorSuperop (R := Fin din) N
(Matrix.of fun p q : Fin din × Fin din =>
if p.1 = p.2 ∧ q.1 = q.2 then (din : ℂ)⁻¹ else 0)
/-- Sanity check for Eq.(2.1): the zero superoperator has zero Choi operator. -/
example (din dout : ℕ) :
normalizedChoiMatrix (0 : Matrix (Fin din) (Fin din) ℂ →ₗ[ℂ]
Matrix (Fin dout) (Fin dout) ℂ) = 0 := by
ext p q
simp [normalizedChoiMatrix, idTensorSuperop]
/-- PDF p.12, Eq.(2.5): the accepted real PTM coordinates. -/
def ptm {n : ℕ} (N : {F : (Matrix (Qubits n) (Qubits n) ℂ) →ₗ[ℂ] (Matrix (Qubits n) (Qubits n) ℂ) // IsChannel F}) : Matrix (ErrorMitigation.PauliIndex n) (ErrorMitigation.PauliIndex n) ℝ :=
ErrorMitigation.pauliTransferMatrix N.val
/-- PDF p.12, Definition 2.4: a complete Hermitian Hilbert-Schmidt ONB.
There are exactly 4^n basis elements; completeness comes from `Module.Basis`. -/
structure HermitianBasis (n : ℕ) where
basis : Module.Basis (Fin (4 ^ n)) ℂ (Matrix (Qubits n) (Qubits n) ℂ)
hermitian : ∀ i, (basis i).IsHermitian
orthogonal : ∀ i j, ((basis i) * (basis j)).trace = if i = j then 1 else 0
/-- PDF p.15: real expansion coefficients of a Hermitian operator. -/
def coeff {n : ℕ} (Q : HermitianBasis n) (X : (Matrix (Qubits n) (Qubits n) ℂ)) (i : Fin (4 ^ n)) : ℝ :=
((Q.basis i) * X).trace.re
/-- PDF p.12, Eq.(2.2): transfer coordinates, output index first. -/
def tm {n : ℕ} (Q : HermitianBasis n) (N : {F : (Matrix (Qubits n) (Qubits n) ℂ) →ₗ[ℂ] (Matrix (Qubits n) (Qubits n) ℂ) // IsChannel F}) :
Matrix (Fin (4 ^ n)) (Fin (4 ^ n)) ℝ :=
fun i j => ((Q.basis i) * N.val (Q.basis j)).trace.re
/-- PDF p.16, Eq.(3.10): the maximum operator norm; a nonempty finite range. -/
def basisNorm {n : ℕ} (Q : HermitianBasis n) : ℝ :=
sSup (Set.range fun i : Fin (4 ^ n) => specNorm (Q.basis i))
/-- PDF pp.16-19: number of nonzero coefficients, including the identity coefficient. -/
def supportCount {I : Type*} [Fintype I] (f : I → ℝ) : ℕ :=
(Finset.univ.filter fun i => f i ≠ 0).card
/-- PDF p.16, Eq.(3.3): the estimator computed from the supplied table. -/
def predict {n : ℕ} (Q : HermitianBasis n)
(r : Matrix (Fin (4 ^ n)) (Fin (4 ^ n)) ℝ) (rho O : (Matrix (Qubits n) (Qubits n) ℂ)) : ℝ :=
∑ i, ∑ j, coeff Q O i * r i j * coeff Q rho j
/-- PDF p.19, Eq.(3.16): estimator using only the supplied known support. -/
def predictOn {n : ℕ} (Q : HermitianBasis n)
(S : Finset (Fin (4 ^ n) × Fin (4 ^ n)))
(r : Matrix (Fin (4 ^ n)) (Fin (4 ^ n)) ℝ) (rho O : (Matrix (Qubits n) (Qubits n) ℂ)) : ℝ :=
∑ p ∈ S, coeff Q O p.1 * r p.1 p.2 * coeff Q rho p.2
/-- PDF p.22: prediction in the source's unnormalized Pauli coefficient lists. -/
def predictPauli {n : ℕ} (r : Matrix (ErrorMitigation.PauliIndex n) (ErrorMitigation.PauliIndex n) ℝ) (rho O : (Matrix (Qubits n) (Qubits n) ℂ)) : ℝ :=
∑ A, ∑ B, ErrorMitigation.pauliObservableRow O A * r A B *
ErrorMitigation.pauliStateVector rho B
/-- PDF pp.10,15, Definition 2.10: an actual finite-outcome joint POVM on
exactly `copies` fresh normalized Choi states, with a classical report decoder.
The unknown channel is absent from every field. -/
structure ChoiLearner (n : ℕ) (Out : Type*) where
copies : ℕ
outcomes : ℕ
measurement : Fin outcomes →
Matrix (Fin copies → (Qubits n × Qubits n))
(Fin copies → (Qubits n × Qubits n)) ℂ
valid : IsPOVM measurement
decode : Fin outcomes → Out
/-- PDF pp.10-11,14-15: the finite Born sum for the preimage of a report
event on the actual tensor-power input, without renormalization. Every preimage
is a subset of the finite physical outcome space, so no measurability default occurs. -/
def choiReportEventProbability {n : ℕ} {Out : Type*}
(P : ChoiLearner n Out) (N : {F : (Matrix (Qubits n) (Qubits n) ℂ) →ₗ[ℂ] (Matrix (Qubits n) (Qubits n) ℂ) // IsChannel F}) (E : Set Out) : ℝ :=
povmEventProb P.measurement (piKron P.copies (idTensorSuperop (R := Qubits n) N.val (pureDensity (maxEntangled n)))) (fun o => P.decode o ∈ E)
/-- PDF p.21: the simultaneous absolute-error event on a table of estimates. -/
def tableGood {I : Type*} (r t : Matrix I I ℝ) (eps : ℝ) : Prop :=
∀ i j, |r i j - t i j| ≤ eps
/-- PDF pp.23-24: all four guarantees for the finite list computed by thresholding. -/
def sparseListGood {I : Type*} [Fintype I] (r t : Matrix I I ℝ)
(eps : ℝ) (s : ℕ) : Prop :=
(∀ i j, (i,j) ∉ (Finset.univ.filter fun p : I × I => eps / 2 < |r p.1 p.2|) → |t i j| ≤ eps) ∧
(∀ i j, (i,j) ∈ (Finset.univ.filter fun p : I × I => eps / 2 < |r p.1 p.2|) → eps / 6 < |t i j|) ∧
(Finset.univ.filter fun p : I × I => eps / 2 < |r p.1 p.2|).card ≤ s ∧
(∀ i j, (i,j) ∈ (Finset.univ.filter fun p : I × I => eps / 2 < |r p.1 p.2|) → |r i j - t i j| ≤ eps)
/-- PDF pp.39-41: soft-O suppresses fixed powers of logarithms of the
listed parameters. The exponent is quantified uniformly before every instance. -/
def softFactor (p n : ℕ) (eps delta scale : ℝ) : ℝ :=
(1 + Real.log (n + 2) + |Real.log eps| + |Real.log delta| + Real.log (max 1 scale)) ^ p
/-- PDF pp.39-41: the common general-basis sample bound before task-specific factors. -/
def generalCost {n : ℕ} (Q : HermitianBasis n) (eps delta : ℝ) : ℝ :=
((n : ℝ)^3 + n * Real.log delta⁻¹) / eps^4 *
((2 : ℝ)^n * basisNorm Q ^ 2)^4
/-- PDF p.18: (I plus or minus sigma_A)/2^n; `minus` chooses the minus sign. -/
def eigenspaceState {n : ℕ} (A : ErrorMitigation.PauliIndex n) (minus : Bool) : (Matrix (Qubits n) (Qubits n) ℂ) :=
(((2 : ℝ)^n)⁻¹ : ℂ) •
(1 + (if minus then (-1 : ℂ) else 1) • pauliOps A)
/-- PDF p.28: the unnormalized Hamiltonian expansion coefficient. -/
def hamiltonianCoeff {n : ℕ} (H : (Matrix (Qubits n) (Qubits n) ℂ)) (A : ErrorMitigation.PauliIndex n) : ℝ :=
((2 : ℝ)^n)⁻¹ * (H * pauliOps A).trace.re
/-- PDF p.29: the single-site witness B_j=b and B_k=I for k different from j. -/
def singleSite {n : ℕ} (j : Fin n) (b : Stabilizer.Pauli) : ErrorMitigation.PauliIndex n :=
fun k => if k = j then b else .I
/-- PDF p.29, Lemma 6.1: the constructed input state, with +i[Pauli_A,Pauli_B]/2. -/
def pauliCoefficientProbe {n : ℕ} (A B : ErrorMitigation.PauliIndex n) : (Matrix (Qubits n) (Qubits n) ℂ) :=
(((2 : ℝ)^n)⁻¹ : ℂ) •
(1 + (Complex.I / 2) • (pauliOps A * pauliOps B - pauliOps B * pauliOps A))
/-- PDF p.28, Eq.(6.1): exp(-itH) rho exp(+itH), defined on all real times. -/
def hamiltonianDensityFlow {n : ℕ} (H : (Matrix (Qubits n) (Qubits n) ℂ)) (t : ℝ) (rho : (Matrix (Qubits n) (Qubits n) ℂ)) : (Matrix (Qubits n) (Qubits n) ℂ) :=
NormedSpace.exp ((((-t : ℝ) : ℂ) * Complex.I) • H) * rho *
NormedSpace.exp (((t : ℂ) * Complex.I) • H)
/-- PDF p.44: all distinct positive Paulis whose output half is nonidentity. -/
def fullEnsemble (n : ℕ) : Finset (ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n) :=
Finset.univ.filter fun p => p.2 ≠ (fun _ => .I)
/-- PDF p.45: all distinct positive Paulis nonidentity on both halves. -/
def sparseEnsemble (n : ℕ) : Finset (ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n) :=
Finset.univ.filter fun p => p.1 ≠ (fun _ => .I) ∧ p.2 ≠ (fun _ => .I)
/-- PDF pp.44-45: positive and negative halves, paired by the same label. -/
def signedPauli {n : ℕ} (minus : Bool) (p : ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n) :
Matrix (Qubits n × Qubits n) (Qubits n × Qubits n) ℂ :=
(if minus then (-1 : ℂ) else 1) • Matrix.kronecker (pauliOps p.1) (pauliOps p.2)
/-- PDF p.43, Eq.(D.2): values averaged over the whole positive half,
without repetition, on normalized pure states only. -/
def shadowValues {n : ℕ} (S : Finset (ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n)) : Set ℝ :=
{v | ∃ psi : EuclideanSpace ℂ (Qubits n × Qubits n), IsState psi ∧
v = (S.card : ℝ)⁻¹ * ∑ p ∈ S,
(inner ℂ psi (act (signedPauli false p) psi)).re ^ 2}
/-- PDF p.43: the real supremum; its nonempty bounded domain is a conclusion
of each theorem that uses it, rather than an implicit default-value assumption. -/
def shadowParameter {n : ℕ} (S : Finset (ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n)) : ℝ :=
sSup (shadowValues S)
/-- PDF pp.46-49: the response tr_input[(rho^T_input tensor I)(I tensor O)],
written entrywise with ancilla first. This formula contracts matrix units of rho
against the reference/input indices of O. -/
def choiInputContraction {n a : ℕ}
(rho : Matrix (Qubits a × Qubits n) (Qubits a × Qubits n) ℂ)
(O : Matrix (Qubits n × Qubits n) (Qubits n × Qubits n) ℂ) :
Matrix (Qubits a × Qubits n) (Qubits a × Qubits n) ℂ :=
fun x y => ∑ i, ∑ j, rho (x.1,i) (y.1,j) * O (i,x.2) (j,y.2)
/-- PDF pp.46-49: the operational likelihood-ratio values. Only positive
baseline-probability branches are included, so no 0/0 convention enters. -/
def likelihoodValues {n : ℕ} (S : Finset (ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n)) : Set ℝ :=
{v | ∃ a : ℕ,
∃ rho : Matrix (Qubits a × Qubits n) (Qubits a × Qubits n) ℂ,
∃ psi : EuclideanSpace ℂ (Qubits a × Qubits n),
IsDensityMatrix rho ∧ IsState psi ∧
0 < (inner ℂ psi (act (Matrix.kronecker (traceRight rho)
(1 : (Matrix (Qubits n) (Qubits n) ℂ))) psi)).re ∧
v = (S.card : ℝ)⁻¹ * ∑ p ∈ S,
((inner ℂ psi (act (choiInputContraction rho (signedPauli false p)) psi)).re /
(inner ℂ psi (act (Matrix.kronecker (traceRight rho)
(1 : (Matrix (Qubits n) (Qubits n) ℂ))) psi)).re)^2}
/-- PDF p.49, Eq.(D.50): Delta, with positive-denominator operational semantics.
Nonemptiness and boundedness are explicitly asserted where its bounds are stated. -/
def likelihoodParameter {n : ℕ} (S : Finset (ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n)) : ℝ :=
sSup (likelihoodValues S)
/-- PDF pp.43-45: the signed enumeration satisfies (i)-(iii). Tensor-product
form is already part of `signedPauli`, and its negative half is paired canonically. -/
def choiEnsembleValid {n : ℕ} (S : Finset (ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n)) : Prop :=
∀ p ∈ S, ∀ minus : Bool,
(signedPauli minus p).IsHermitian ∧
signedPauli minus p * signedPauli minus p = 1 ∧
(signedPauli minus p).trace = 0 ∧ traceRight (signedPauli minus p) = 0 ∧
signedPauli (!minus) p = - signedPauli minus p
/-- PDF p.45: additional zero input marginal, giving conditions (i)-(v) for
this explicitly Pauli-product, hence one-sparse, enumeration. -/
def sparseEnsembleValid {n : ℕ} (S : Finset (ErrorMitigation.PauliIndex n × ErrorMitigation.PauliIndex n)) : Prop :=
choiEnsembleValid S ∧ ∀ p ∈ S, ∀ minus : Bool,
(Matrix.of fun y z => ∑ x : Qubits n, signedPauli minus p (x,y) (x,z)) =
(0 : (Matrix (Qubits n) (Qubits n) ℂ))
/-- Sanity check (PDF p.16): zero supplied table gives the zero estimator. -/
example {n : ℕ} (Q : HermitianBasis n) (rho O : (Matrix (Qubits n) (Qubits n) ℂ)) :
predict Q 0 rho O = 0 := by simp [predict]
/-- Sanity check (PDF p.23): no estimated zero entry passes a positive cutoff. -/
example {I : Type*} [Fintype I] {eps : ℝ} (h : 0 < eps) :
(Finset.univ.filter fun p : I × I => eps / 2 < |(0 : Matrix I I ℝ) p.1 p.2|) = ∅ := by
ext p
simp [show ¬ eps / 2 < 0 by linarith]
/-- Sanity check (PDF p.15): zero-copy inputs are independent of the channel. -/
example {n : ℕ} (N M : {F : (Matrix (Qubits n) (Qubits n) ℂ) →ₗ[ℂ] (Matrix (Qubits n) (Qubits n) ℂ) // IsChannel F}) : piKron 0 (idTensorSuperop (R := Qubits n) N.val (pureDensity (maxEntangled n))) = piKron 0 (idTensorSuperop (R := Qubits n) M.val (pureDensity (maxEntangled n))) := by
ext x y
simp [piKron]
/-- Sanity check (PDF pp.46-49): the entrywise response is linear in a zero observable. -/
example {n a : ℕ}
(rho : Matrix (Qubits a × Qubits n) (Qubits a × Qubits n) ℂ) :
choiInputContraction rho 0 = 0 := by ext x y; simp [choiInputContraction]
/-- Sanity check (PDF p.18): the plus-state normalization is explicit. -/
example {n : ℕ} (A : ErrorMitigation.PauliIndex n) :
eigenspaceState A false = (((2 : ℝ)^n)⁻¹ : ℂ) • (1 + pauliOps A) := by
simp [eigenspaceState]
/-- Sanity check (PDF p.28): zero evolution time is the identity channel. -/
example {n : ℕ} (H rho : (Matrix (Qubits n) (Qubits n) ℂ)) : hamiltonianDensityFlow H 0 rho = rho := by
simp [hamiltonianDensityFlow]
/-- Sanity check (PDF pp.16-19): a zero coefficient vector has empty support. -/
example {I : Type*} [Fintype I] : supportCount (fun _ : I => (0 : ℝ)) = 0 := by
simp [supportCount]
end QAlgorithms.Papers.Independent.Extend50.P46
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P46.ChoiLearner
For each natural number and arbitrary type , this structure consists of natural numbers and , called its numbers of copies and outcomes; complex matrices , one for each , whose rows and columns are indexed by functions from to pairs of -bit strings; proofs that every is positive semidefinite and ; and a decoding function . The value is allowed, in which case the matrix indexing set consists of the unique empty function and the matrices are . The value is also allowed. Although is specified as an arbitrary natural number, cannot satisfy the required sum-to-identity condition on this nonempty matrix indexing set.
QAlgorithms.Papers.Independent.Extend50.P46.HermitianBasis
For each natural number , this structure consists of a complex vector-space basis of all complex matrices indexed by the -bit strings, together with proofs that every is Hermitian and that, as an equality of complex numbers,
The value is included: the matrices are then , and the basis has one element.
QAlgorithms.Papers.Independent.Extend50.P46.basisNorm
For every natural number and every complex vector-space basis of the complex matrices indexed by -bit strings, equipped with Hermiticity of every and the identities , this definition returns
where is the operator norm induced by the Euclidean norm on complex vectors. The indexing set is finite and nonempty, so this is its maximum, including when , when there is one basis element.
QAlgorithms.Papers.Independent.Extend50.P46.choiEnsembleValid
For every natural number , including , and finite set of pairs of Pauli assignments on sites, this defines a proposition. Write for an assignment , and, for each Boolean , put , interpreting false as and true as . The proposition requires, for every and both values of ,
Thus the fourth condition sets the partial trace over the second register equal to the zero matrix. These requirements are vacuous when is empty. When , empty tensor products are scalar identities, so the trace-zero condition prevents any element from belonging to a valid .
QAlgorithms.Papers.Independent.Extend50.P46.choiInputContraction
For all natural numbers , including , every complex matrix indexed by pairs in , and every complex matrix indexed by pairs in , this defines a complex matrix on by
No positivity, trace, Hermiticity, or normalization assumptions are imposed on either input matrix, and the displayed products contain no complex conjugation. A register of zero bits has one possible bit string, so the corresponding sums still have one index value.
QAlgorithms.Papers.Independent.Extend50.P46.choiReportEventProbability
For every natural number , arbitrary type , learner consisting of natural numbers , positive semidefinite matrices indexed by -tuples of pairs of -bit strings with , and a decoding function , let be a complex linear map on matrices indexed by , equipped with matrices for some natural number satisfying and for every , and let be any set. Define when and otherwise, define , and define by
Writing for -tuples of pairs in , the definition returns
No measurability condition on or finiteness condition on is imposed. If , the product defining is , so is the identity; is allowed as well.
QAlgorithms.Papers.Independent.Extend50.P46.coeff
For every natural number , every complex vector-space basis of the complex matrices indexed by -bit strings satisfying and , every complex matrix on those strings, and every index , this definition returns the real number
There is no Hermiticity or positivity hypothesis on , and is allowed.
QAlgorithms.Papers.Independent.Extend50.P46.eigenspaceState
For every natural number , every assignment , and every Boolean , let , using the matrices , , , and in the order . The function returns the complex matrix on -bit strings
All assignments are allowed, including the all-identity assignment, for which the result is zero when is true and when is false. For , the empty tensor product is the scalar .
QAlgorithms.Papers.Independent.Extend50.P46.fullEnsemble
For every natural number , the function returns the finite set of all ordered pairs of assignments from to the four symbols such that is not the all-identity assignment. Equivalently, for at least one index , while is unrestricted. For , the set is empty.
QAlgorithms.Papers.Independent.Extend50.P46.generalCost
For every natural number , let , and let be a complex vector-space basis of all complex matrices indexed by , with every Hermitian and when and otherwise. Set , where is the operator norm for Euclidean vector norms. For arbitrary real , the function returns
Real inversion sends to , and the real logarithm satisfies and for nonzero . In particular, the value is when , and also when .
QAlgorithms.Papers.Independent.Extend50.P46.hamiltonianCoeff
For every natural number , arbitrary complex matrix indexed by -bit strings, and assignment , the function returns
Here is the tensor product of the assigned single-qubit matrices , , , and . There is no Hermiticity assumption on . When , is the scalar identity, and the result is the real part of the sole entry of .
QAlgorithms.Papers.Independent.Extend50.P46.hamiltonianDensityFlow
For every natural number , arbitrary complex matrices indexed by -bit strings, and real number , the function returns
with denoting the matrix exponential. No Hermiticity, positivity, or trace condition is imposed on either matrix, and may be zero or negative. At the result is ; when , the matrices are scalars and the result is also .
QAlgorithms.Papers.Independent.Extend50.P46.likelihoodParameter
For every natural number , including , and every finite set of pairs of Pauli assignments on sites, this defines the real supremum of all values
Here and , where each belongs to ; the values range over every natural number , every positive semidefinite trace-one matrix on , and every unit vector in that space for which the denominator is strictly positive. The matrices in the formula are defined by and
All bit-string sums range over strings of the indicated lengths, including the unique empty string for a zero-bit register. The real supremum operation returns for an empty or unbounded-above set, and the reciprocal of is defined as ; in particular, an empty gives parameter .
QAlgorithms.Papers.Independent.Extend50.P46.likelihoodValues
For every natural number , including , and every finite set of pairs of Pauli assignments , this defines the set of real numbers for which there exist a natural number , a positive semidefinite complex matrix of trace on , and a vector in the same space with , satisfying the following formula. Write , , define , and define
Then the witnesses must satisfy
The integer has no upper bound and may be ; zero-bit registers have one basis element and empty Pauli tensor products are identities. The strict condition excludes zero denominators in these ratios. When is empty, the sum and the defined reciprocal of are both , and the resulting set is .
QAlgorithms.Papers.Independent.Extend50.P46.normalizedChoiMatrix
For any natural numbers , including zero, and any complex-linear map , define a matrix whose rows and columns are indexed by pairs in as follows: start with the matrix indexed by pairs of input indices whose -entry is if both coordinates of coincide and both coordinates of coincide, and is zero otherwise; apply to each block obtained by fixing the first row and column coordinates. Equivalently, writing for the input matrix with a single in position ,
No channel or positivity assumption is imposed on . If either dimension is zero, has an empty index set; the inverse of zero used in the definition is zero.
QAlgorithms.Papers.Independent.Extend50.P46.pauliCoefficientProbe
For every natural number and assignments , the function returns the complex matrix on -bit strings
where and are the respective tensor products of , , , and . The assignments may coincide or contain only identity symbols. If their matrices commute, the result is ; for , it is the scalar .
QAlgorithms.Papers.Independent.Extend50.P46.predict
For every natural number , every complex vector-space basis of the complex matrices indexed by -bit strings satisfying and , every real matrix , and every pair of complex matrices indexed by those strings, this definition returns
There are no additional conditions on ; in particular, need not be a density matrix. The value is included, with one summand.
QAlgorithms.Papers.Independent.Extend50.P46.predictOn
For every natural number , every complex vector-space basis of the complex matrices indexed by -bit strings satisfying and , every finite set , every real matrix , and every pair of complex matrices indexed by those strings, this definition returns
No further conditions are imposed on . The sum is when is empty, and is allowed.
QAlgorithms.Papers.Independent.Extend50.P46.predictPauli
For every natural number , every real matrix indexed by pairs of Pauli strings , and every pair of complex matrices indexed by -bit strings, this definition returns
where and , using the usual single-qubit Pauli matrices without additional phases. No Hermiticity, positivity, normalization, or channel condition is required of the inputs. When , each Pauli indexing set is a singleton and its tensor product is the identity.
QAlgorithms.Papers.Independent.Extend50.P46.ptm
For every natural number , let , including the singleton consisting of the empty bit string when , and let be a complex linear map on the complex matrices indexed by , equipped with the following channel property: there exist a natural number and matrices such that and for every matrix . The definition returns the real matrix indexed by strings whose entries are
where , using the usual single-qubit Pauli matrices and no additional phase. For , the tensor product is the identity and there is one Pauli index.
QAlgorithms.Papers.Independent.Extend50.P46.shadowParameter
For every natural number , including , and every finite set of pairs of functions from to the Pauli matrices , this defines a real number as follows. For such a function , write , with no additional phase, and put . The defined number is
Here the supremum is the real-valued supremum operation, whose value is for an empty or unbounded-above set; division by zero is also defined to give . In particular, when is empty, the defined number is . When , each bit-string register has one basis element and each empty tensor product is the scalar identity.
QAlgorithms.Papers.Independent.Extend50.P46.shadowValues
For every natural number and finite set of ordered pairs of assignments from to , the function returns the set of real numbers
The inner product is conjugate-linear in its first argument, and matrix action is ordinary matrix-vector multiplication. Each is the tensor product of the assigned matrices , , , and . No restriction excludes all-identity assignments from . The reciprocal of zero is defined as zero, so gives the set . The case is included, with empty tensor products equal to .
QAlgorithms.Papers.Independent.Extend50.P46.signedPauli
For every natural number , Boolean , and ordered pair of assignments from to , the function returns the matrix on pairs of -bit strings
Here and are tensor products of the assigned matrices , , , and . Either assignment may be all identity. For , both empty tensor products are , so the result is the scalar .
QAlgorithms.Papers.Independent.Extend50.P46.singleSite
For every natural number , index , and symbol , the function returns the assignment given by and for every . The choice produces the all-identity assignment. When , there is no admissible index .
QAlgorithms.Papers.Independent.Extend50.P46.softFactor
For natural numbers and arbitrary real numbers , the function returns
Here is the argument called scale. The real logarithm is defined at every real argument: , and for . Thus no positivity assumption is imposed on , or ; the scale contribution is zero whenever . The definition includes and returns whenever .
QAlgorithms.Papers.Independent.Extend50.P46.sparseEnsemble
For every natural number , the function returns the finite set of all ordered pairs of assignments from to such that neither assignment is the all-identity assignment. Thus some index has , and some index, possibly different, has . For , the set is empty.
QAlgorithms.Papers.Independent.Extend50.P46.sparseEnsembleValid
For every natural number , including , and finite set of pairs of Pauli assignments on sites, write with and for Boolean . This defines the proposition that, for every and both values of , is Hermitian, , , , and both partial traces vanish:
The first sum traces out the second register and the second sum traces out the first register. The proposition holds vacuously for empty . For , each register has one basis element and the trace-zero condition forces to be empty.
QAlgorithms.Papers.Independent.Extend50.P46.sparseListGood
For any finite index type , real matrices , real number , and natural number , define . The predicate holds exactly when all four conditions hold: for every ; for every ; ; and for every . The threshold defining is strict, so equality places the entry outside . If is empty, the predicate always holds; if is nonempty and , it cannot hold.
QAlgorithms.Papers.Independent.Extend50.P46.supportCount
For every finite type , equipped with a finite enumeration, and every function , this definition returns the natural number
It counts indices with an exactly nonzero value; if is empty, the result is .
QAlgorithms.Papers.Independent.Extend50.P46.tableGood
For every type , every pair of real matrices indexed by , and every real number , this predicate means
No finiteness assumption on or nonnegativity assumption on is included. If is empty, the predicate holds vacuously for all inputs; if is nonempty and , it cannot hold.
QAlgorithms.Papers.Independent.Extend50.P46.tm
For every natural number , let be a complex vector-space basis of the complex matrices indexed by -bit strings, with every Hermitian and , and let be a complex linear map on these matrices equipped with a finite Kraus representation: for some natural number and matrices , and for every . This definition returns the real matrix
The definition includes , when the returned matrix has one row and one column.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.