6.5. QuantumBlockEncoding/PrimitiveCircuit.lean
39 explicit public declarations, in source order.
Plain-English reading. This type lists the allowed alternatives for “exact angle”; its constructors are the cases that downstream code must handle.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. inductive.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:17. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.1●1 definition
Associated Lean declarations
-
QuantumBlockEncoding.ExactAngle[complete]
-
QuantumBlockEncoding.ExactAngle[complete]
-
inductivedefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
inductive QuantumBlockEncoding.ExactAngle : Type
inductive QuantumBlockEncoding.ExactAngle : Type
Constructors
rational (value : ℚ) : QuantumBlockEncoding.ExactAngle
piRational (value : ℚ) : QuantumBlockEncoding.ExactAngle
twiceArccosRational (value : ℚ) (bounded : |↑value| ≤ 1) : QuantumBlockEncoding.ExactAngle
twiceArccosSqrtRational (value : ℚ) (bounded : 0 ≤ ↑value ∧ ↑value ≤ 1) : QuantumBlockEncoding.ExactAngle
add (left right : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
neg (value : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
scale (factor : ℚ) (value : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
Plain-English reading. This definition gives the library's named construction or computation for “eval”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:31. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.2●1 definition
Associated Lean declarations
-
QuantumBlockEncoding.ExactAngle.eval[complete]
-
QuantumBlockEncoding.ExactAngle.eval[complete]
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.ExactAngle.eval : QuantumBlockEncoding.ExactAngle → ℝ
def QuantumBlockEncoding.ExactAngle.eval : QuantumBlockEncoding.ExactAngle → ℝ
-
QuantumBlockEncoding.ExactAngle.eval_add[complete]
Plain-English reading. Lean checks the proposition indexed as “eval add”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:41. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.3●1 theorem
Associated Lean declarations
-
QuantumBlockEncoding.ExactAngle.eval_add[complete]
-
QuantumBlockEncoding.ExactAngle.eval_add[complete]
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.ExactAngle.eval_add (left right : QuantumBlockEncoding.ExactAngle) : (left.add right).eval = left.eval + right.eval
theorem QuantumBlockEncoding.ExactAngle.eval_add (left right : QuantumBlockEncoding.ExactAngle) : (left.add right).eval = left.eval + right.eval
-
QuantumBlockEncoding.ExactAngle.eval_neg[complete]
Plain-English reading. Lean checks the proposition indexed as “eval neg”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:44. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.4●1 theorem
Associated Lean declarations
-
QuantumBlockEncoding.ExactAngle.eval_neg[complete]
-
QuantumBlockEncoding.ExactAngle.eval_neg[complete]
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.ExactAngle.eval_neg (value : QuantumBlockEncoding.ExactAngle) : value.neg.eval = -value.eval
theorem QuantumBlockEncoding.ExactAngle.eval_neg (value : QuantumBlockEncoding.ExactAngle) : value.neg.eval = -value.eval
Plain-English reading. Lean checks the proposition indexed as “eval scale”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:47. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.5●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.ExactAngle.eval_scale (factor : ℚ) (value : QuantumBlockEncoding.ExactAngle) : (QuantumBlockEncoding.ExactAngle.scale factor value).eval = ↑factor * value.eval
theorem QuantumBlockEncoding.ExactAngle.eval_scale (factor : ℚ) (value : QuantumBlockEncoding.ExactAngle) : (QuantumBlockEncoding.ExactAngle.scale factor value).eval = ↑factor * value.eval
Plain-English reading. This definition gives the library's named construction or computation for “sub”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:50. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.6●1 definition
Associated Lean declarations
-
QuantumBlockEncoding.ExactAngle.sub[complete]
-
QuantumBlockEncoding.ExactAngle.sub[complete]
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.ExactAngle.sub (left right : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
def QuantumBlockEncoding.ExactAngle.sub (left right : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
Plain-English reading. This definition gives the library's named construction or computation for “half add”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:53. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.7●1 definition
Associated Lean declarations
-
QuantumBlockEncoding.ExactAngle.halfAdd[complete]
-
QuantumBlockEncoding.ExactAngle.halfAdd[complete]
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.ExactAngle.halfAdd (left right : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
def QuantumBlockEncoding.ExactAngle.halfAdd (left right : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
Plain-English reading. This definition gives the library's named construction or computation for “half sub”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:56. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.8●1 definition
Associated Lean declarations
-
QuantumBlockEncoding.ExactAngle.halfSub[complete]
-
QuantumBlockEncoding.ExactAngle.halfSub[complete]
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.ExactAngle.halfSub (left right : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
def QuantumBlockEncoding.ExactAngle.halfSub (left right : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.ExactAngle
-
QuantumBlockEncoding.ExactAngle.eval_sub[complete]
Plain-English reading. Lean checks the proposition indexed as “eval sub”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:59. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.9●1 theorem
Associated Lean declarations
-
QuantumBlockEncoding.ExactAngle.eval_sub[complete]
-
QuantumBlockEncoding.ExactAngle.eval_sub[complete]
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.ExactAngle.eval_sub (left right : QuantumBlockEncoding.ExactAngle) : (left.sub right).eval = left.eval - right.eval
theorem QuantumBlockEncoding.ExactAngle.eval_sub (left right : QuantumBlockEncoding.ExactAngle) : (left.sub right).eval = left.eval - right.eval
Plain-English reading. Lean checks the proposition indexed as “eval half add”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:63. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.10●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.ExactAngle.eval_half_add (left right : QuantumBlockEncoding.ExactAngle) : (left.halfAdd right).eval = (left.eval + right.eval) / 2
theorem QuantumBlockEncoding.ExactAngle.eval_half_add (left right : QuantumBlockEncoding.ExactAngle) : (left.halfAdd right).eval = (left.eval + right.eval) / 2
Plain-English reading. Lean checks the proposition indexed as “eval half sub”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:70. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.11●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.ExactAngle.eval_half_sub (left right : QuantumBlockEncoding.ExactAngle) : (left.halfSub right).eval = (left.eval - right.eval) / 2
theorem QuantumBlockEncoding.ExactAngle.eval_half_sub (left right : QuantumBlockEncoding.ExactAngle) : (left.halfSub right).eval = (left.eval - right.eval) / 2
Plain-English reading. This type lists the allowed alternatives for “primitive gate”; its constructors are the cases that downstream code must handle.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. inductive.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:79. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.12●1 definition
Associated Lean declarations
-
QuantumBlockEncoding.PrimitiveGate[complete]
-
QuantumBlockEncoding.PrimitiveGate[complete]
-
inductivedefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
inductive QuantumBlockEncoding.PrimitiveGate (qubits : ℕ) : Type
inductive QuantumBlockEncoding.PrimitiveGate (qubits : ℕ) : Type
Constructors
x {qubits : ℕ} (target : Fin qubits) : QuantumBlockEncoding.PrimitiveGate qubits
ry {qubits : ℕ} (target : Fin qubits) (angle : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.PrimitiveGate qubits
rz {qubits : ℕ} (target : Fin qubits) (angle : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.PrimitiveGate qubits
cx {qubits : ℕ} (control target : Fin qubits) (distinct : control ≠ target) : QuantumBlockEncoding.PrimitiveGate qubits
Plain-English reading. This abbreviation gives a shorter name to the type or expression used for “primitive circuit”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. abbrev.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:85. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.13●1 definition
Associated Lean declarations
-
QuantumBlockEncoding.PrimitiveCircuit[complete]
-
QuantumBlockEncoding.PrimitiveCircuit[complete]
-
abbrevdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
abbrev QuantumBlockEncoding.PrimitiveCircuit (qubits : ℕ) : Type
abbrev QuantumBlockEncoding.PrimitiveCircuit (qubits : ℕ) : Type
Plain-English reading. This record groups the data and proof fields needed for “primitive program”. A proposition-valued field is a requirement until a constructor supplies it. A primitive circuit together with an exact global phase.
Formal status. Data contract in the default import surface; proposition-valued fields are obligations, not automatically established facts.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. A primitive circuit together with an exact global phase.
Declaration kind. structure.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:88. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.14●1 definition
Associated Lean declarations
-
QuantumBlockEncoding.PrimitiveProgram[complete]
-
QuantumBlockEncoding.PrimitiveProgram[complete]
-
structuredefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
structure QuantumBlockEncoding.PrimitiveProgram (qubits : ℕ) : Type
structure QuantumBlockEncoding.PrimitiveProgram (qubits : ℕ) : Type
A primitive circuit together with an exact global phase.
Fields
circuit : QuantumBlockEncoding.PrimitiveCircuit qubits
globalPhase : QuantumBlockEncoding.ExactAngle
Plain-English reading. This definition gives the library's named construction or computation for “dagger”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:94. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.15●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveGate.dagger {qubits : ℕ} : QuantumBlockEncoding.PrimitiveGate qubits → QuantumBlockEncoding.PrimitiveGate qubits
def QuantumBlockEncoding.PrimitiveGate.dagger {qubits : ℕ} : QuantumBlockEncoding.PrimitiveGate qubits → QuantumBlockEncoding.PrimitiveGate qubits
Plain-English reading. This definition gives the library's named construction or computation for “touched”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:100. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.16●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveGate.touched {qubits : ℕ} : QuantumBlockEncoding.PrimitiveGate qubits → Finset (Fin qubits)
def QuantumBlockEncoding.PrimitiveGate.touched {qubits : ℕ} : QuantumBlockEncoding.PrimitiveGate qubits → Finset (Fin qubits)
Plain-English reading. This definition gives the library's named construction or computation for “one qubit count”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:104. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.17●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveGate.oneQubitCount {qubits : ℕ} : QuantumBlockEncoding.PrimitiveGate qubits → ℕ
def QuantumBlockEncoding.PrimitiveGate.oneQubitCount {qubits : ℕ} : QuantumBlockEncoding.PrimitiveGate qubits → ℕ
Plain-English reading. This definition gives the library's named construction or computation for “two qubit count”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:108. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.18●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveGate.twoQubitCount {qubits : ℕ} : QuantumBlockEncoding.PrimitiveGate qubits → ℕ
def QuantumBlockEncoding.PrimitiveGate.twoQubitCount {qubits : ℕ} : QuantumBlockEncoding.PrimitiveGate qubits → ℕ
Plain-English reading. This definition gives the library's named construction or computation for “gate count”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:116. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.19●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.gateCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
def QuantumBlockEncoding.PrimitiveCircuit.gateCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
Plain-English reading. This definition gives the library's named construction or computation for “one qubit count”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:119. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.20●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.oneQubitCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
def QuantumBlockEncoding.PrimitiveCircuit.oneQubitCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
Plain-English reading. This definition gives the library's named construction or computation for “two qubit count”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:122. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.21●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.twoQubitCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
def QuantumBlockEncoding.PrimitiveCircuit.twoQubitCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
Plain-English reading. This definition gives the library's named construction or computation for “ry count”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:125. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.22●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.ryCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
def QuantumBlockEncoding.PrimitiveCircuit.ryCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
Plain-English reading. This definition gives the library's named construction or computation for “cx count”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:130. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.23●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.cxCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
def QuantumBlockEncoding.PrimitiveCircuit.cxCount {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
Plain-English reading. Lean checks the proposition indexed as “ry count append”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:135. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.24●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.PrimitiveCircuit.ryCount_append {qubits : ℕ} (left right : QuantumBlockEncoding.PrimitiveCircuit qubits) : (left ++ right).ryCount = left.ryCount + right.ryCount
theorem QuantumBlockEncoding.PrimitiveCircuit.ryCount_append {qubits : ℕ} (left right : QuantumBlockEncoding.PrimitiveCircuit qubits) : (left ++ right).ryCount = left.ryCount + right.ryCount
Plain-English reading. Lean checks the proposition indexed as “cx count append”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:140. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.25●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.PrimitiveCircuit.cxCount_append {qubits : ℕ} (left right : QuantumBlockEncoding.PrimitiveCircuit qubits) : (left ++ right).cxCount = left.cxCount + right.cxCount
theorem QuantumBlockEncoding.PrimitiveCircuit.cxCount_append {qubits : ℕ} (left right : QuantumBlockEncoding.PrimitiveCircuit qubits) : (left ++ right).cxCount = left.cxCount + right.cxCount
Plain-English reading. Lean checks the proposition indexed as “ry count singleton ry”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:145. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.26●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.PrimitiveCircuit.ryCount_singleton_ry {qubits : ℕ} (target : Fin qubits) (angle : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.PrimitiveCircuit.ryCount [QuantumBlockEncoding.PrimitiveGate.ry target angle] = 1
theorem QuantumBlockEncoding.PrimitiveCircuit.ryCount_singleton_ry {qubits : ℕ} (target : Fin qubits) (angle : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.PrimitiveCircuit.ryCount [QuantumBlockEncoding.PrimitiveGate.ry target angle] = 1
Plain-English reading. Lean checks the proposition indexed as “ry count singleton cx”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:150. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.27●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.PrimitiveCircuit.ryCount_singleton_cx {qubits : ℕ} (control target : Fin qubits) (distinct : control ≠ target) : QuantumBlockEncoding.PrimitiveCircuit.ryCount [QuantumBlockEncoding.PrimitiveGate.cx control target distinct] = 0
theorem QuantumBlockEncoding.PrimitiveCircuit.ryCount_singleton_cx {qubits : ℕ} (control target : Fin qubits) (distinct : control ≠ target) : QuantumBlockEncoding.PrimitiveCircuit.ryCount [QuantumBlockEncoding.PrimitiveGate.cx control target distinct] = 0
Plain-English reading. Lean checks the proposition indexed as “cx count singleton ry”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:155. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.28●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.PrimitiveCircuit.cxCount_singleton_ry {qubits : ℕ} (target : Fin qubits) (angle : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.PrimitiveCircuit.cxCount [QuantumBlockEncoding.PrimitiveGate.ry target angle] = 0
theorem QuantumBlockEncoding.PrimitiveCircuit.cxCount_singleton_ry {qubits : ℕ} (target : Fin qubits) (angle : QuantumBlockEncoding.ExactAngle) : QuantumBlockEncoding.PrimitiveCircuit.cxCount [QuantumBlockEncoding.PrimitiveGate.ry target angle] = 0
Plain-English reading. Lean checks the proposition indexed as “cx count singleton cx”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:160. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.29●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.PrimitiveCircuit.cxCount_singleton_cx {qubits : ℕ} (control target : Fin qubits) (distinct : control ≠ target) : QuantumBlockEncoding.PrimitiveCircuit.cxCount [QuantumBlockEncoding.PrimitiveGate.cx control target distinct] = 1
theorem QuantumBlockEncoding.PrimitiveCircuit.cxCount_singleton_cx {qubits : ℕ} (control target : Fin qubits) (distinct : control ≠ target) : QuantumBlockEncoding.PrimitiveCircuit.cxCount [QuantumBlockEncoding.PrimitiveGate.cx control target distinct] = 1
Plain-English reading. This definition gives the library's named construction or computation for “next wire depth”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:165. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.30●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.nextWireDepth {qubits : ℕ} (depth : Fin qubits → ℕ) (gate : QuantumBlockEncoding.PrimitiveGate qubits) : Fin qubits → ℕ
def QuantumBlockEncoding.PrimitiveCircuit.nextWireDepth {qubits : ℕ} (depth : Fin qubits → ℕ) (gate : QuantumBlockEncoding.PrimitiveGate qubits) : Fin qubits → ℕ
Plain-English reading. This definition gives the library's named construction or computation for “wire depths”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:170. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.31●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.wireDepths {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : Fin qubits → ℕ
def QuantumBlockEncoding.PrimitiveCircuit.wireDepths {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : Fin qubits → ℕ
Plain-English reading. This definition gives the library's named construction or computation for “depth”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:174. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.32●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.depth {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
def QuantumBlockEncoding.PrimitiveCircuit.depth {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : ℕ
Plain-English reading. This definition gives the library's named construction or computation for “resource”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:177. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.33●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveCircuit.resource {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : QuantumBlockEncoding.Resource
def QuantumBlockEncoding.PrimitiveCircuit.resource {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : QuantumBlockEncoding.Resource
Plain-English reading. Lean checks the proposition indexed as “gate count eq length”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:181. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.34●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.PrimitiveCircuit.gateCount_eq_length {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : circuit.gateCount = List.length circuit
theorem QuantumBlockEncoding.PrimitiveCircuit.gateCount_eq_length {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : circuit.gateCount = List.length circuit
Plain-English reading. Lean checks the proposition indexed as “resource oracle calls eq zero”; the hypotheses and conclusion in the code panel fix its exact scope.
Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. theorem.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:185. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Theorem6.5.35●1 theorem
Associated Lean declarations
-
theoremdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
theorem QuantumBlockEncoding.PrimitiveCircuit.resource_oracleCalls_eq_zero {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : circuit.resource.oracleCalls = 0
theorem QuantumBlockEncoding.PrimitiveCircuit.resource_oracleCalls_eq_zero {qubits : ℕ} (circuit : QuantumBlockEncoding.PrimitiveCircuit qubits) : circuit.resource.oracleCalls = 0
Plain-English reading. This definition gives the library's named construction or computation for “identity”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:193. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.36●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveProgram.identity (qubits : ℕ) : QuantumBlockEncoding.PrimitiveProgram qubits
def QuantumBlockEncoding.PrimitiveProgram.identity (qubits : ℕ) : QuantumBlockEncoding.PrimitiveProgram qubits
Plain-English reading. This definition gives the library's named construction or computation for “seq”. Execute 'left', then 'right', using chronological list semantics.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. Execute 'left', then 'right', using chronological list semantics.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:198. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.37●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveProgram.seq {qubits : ℕ} (left right : QuantumBlockEncoding.PrimitiveProgram qubits) : QuantumBlockEncoding.PrimitiveProgram qubits
def QuantumBlockEncoding.PrimitiveProgram.seq {qubits : ℕ} (left right : QuantumBlockEncoding.PrimitiveProgram qubits) : QuantumBlockEncoding.PrimitiveProgram qubits
Execute `left`, then `right`, using chronological list semantics.
Plain-English reading. This definition gives the library's named construction or computation for “dagger”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:203. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.38●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveProgram.dagger {qubits : ℕ} (program : QuantumBlockEncoding.PrimitiveProgram qubits) : QuantumBlockEncoding.PrimitiveProgram qubits
def QuantumBlockEncoding.PrimitiveProgram.dagger {qubits : ℕ} (program : QuantumBlockEncoding.PrimitiveProgram qubits) : QuantumBlockEncoding.PrimitiveProgram qubits
Plain-English reading. This definition gives the library's named construction or computation for “resource”.
Formal status. Compiled declaration in the default ASPBE import surface; its kind and displayed Lean type determine how it may be used.
Why it is in this chapter. Definitions and lemmas that connect circuit syntax to evaluated matrix semantics, finite state action, and explicit product-register projection.
Technical source note. The source declaration has no docstring. The reader cue above is generated from its kind and name and does not replace the Lean signature.
Declaration kind. def.
Source: QuantumBlockEncoding/PrimitiveCircuit.lean:208. A commit-pinned external link is added by the publication build when the source exists at the published ref.
Lean code for Definition6.5.39●1 definition
Associated Lean declarations
-
defdefined in QuantumBlockEncoding/PrimitiveCircuit.leancomplete
def QuantumBlockEncoding.PrimitiveProgram.resource {qubits : ℕ} (program : QuantumBlockEncoding.PrimitiveProgram qubits) : QuantumBlockEncoding.Resource
def QuantumBlockEncoding.PrimitiveProgram.resource {qubits : ℕ} (program : QuantumBlockEncoding.PrimitiveProgram qubits) : QuantumBlockEncoding.Resource