ASPBE Lean Blueprint

6.29. QuantumBlockEncoding/SequentialPrimitiveAssembly.lean🔗

37 explicit public declarations, in source order.

Definition6.29.1
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “pad”.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:14. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.11 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.pad {m : }
      (c : QuantumBlockEncoding.PrimitiveCircuit m) (extra : ) :
      QuantumBlockEncoding.PrimitiveCircuit (m + extra)
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.pad
      {m : }
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          m)
      (extra : ) :
      QuantumBlockEncoding.PrimitiveCircuit
        (m + extra)
Definition6.29.2
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “pad matrix”.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:18. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.21 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.padMatrix {m : }
      (M :
        Matrix (QuantumBlockEncoding.PrimitiveBasis m)
          (QuantumBlockEncoding.PrimitiveBasis m) )
      (extra : ) :
      Matrix (QuantumBlockEncoding.PrimitiveBasis (m + extra))
        (QuantumBlockEncoding.PrimitiveBasis (m + extra)) 
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.padMatrix
      {m : }
      (M :
        Matrix
          (QuantumBlockEncoding.PrimitiveBasis
            m)
          (QuantumBlockEncoding.PrimitiveBasis
            m)
          )
      (extra : ) :
      Matrix
        (QuantumBlockEncoding.PrimitiveBasis
          (m + extra))
        (QuantumBlockEncoding.PrimitiveBasis
          (m + extra))
        
Theorem6.29.3
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “eval pad”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:24. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.31 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.eval_pad {m : }
      (c : QuantumBlockEncoding.PrimitiveCircuit m) (extra : ) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.pad c extra) =
        QuantumBlockEncoding.SequentialPrimitiveAssembly.padMatrix
          (QuantumBlockEncoding.evalPrimitiveCircuit c) extra
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.eval_pad
      {m : }
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          m)
      (extra : ) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.pad
            c extra) =
        QuantumBlockEncoding.SequentialPrimitiveAssembly.padMatrix
          (QuantumBlockEncoding.evalPrimitiveCircuit
            c)
          extra
Theorem6.29.4
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “pad matrix 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:30. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.41 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.padMatrix_append
      {m : }
      (M :
        Matrix (QuantumBlockEncoding.PrimitiveBasis m)
          (QuantumBlockEncoding.PrimitiveBasis m) )
      (t : ) (a b : QuantumBlockEncoding.PrimitiveBasis m)
      (x y : QuantumBlockEncoding.PrimitiveBasis t) :
      QuantumBlockEncoding.SequentialPrimitiveAssembly.padMatrix M t
          (Fin.append a x) (Fin.append b y) =
        if x = y then M a b else 0
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.padMatrix_append
      {m : }
      (M :
        Matrix
          (QuantumBlockEncoding.PrimitiveBasis
            m)
          (QuantumBlockEncoding.PrimitiveBasis
            m)
          )
      (t : )
      (a b :
        QuantumBlockEncoding.PrimitiveBasis m)
      (x y :
        QuantumBlockEncoding.PrimitiveBasis
          t) :
      QuantumBlockEncoding.SequentialPrimitiveAssembly.padMatrix
          M t (Fin.append a x)
          (Fin.append b y) =
        if x = y then M a b else 0
Theorem6.29.5
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “pad ry count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:51. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.51 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.pad_ryCount {m : }
      (c : QuantumBlockEncoding.PrimitiveCircuit m) (extra : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.pad c
            extra).ryCount =
        c.ryCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.pad_ryCount
      {m : }
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          m)
      (extra : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.pad
            c extra).ryCount =
        c.ryCount
Theorem6.29.6
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “pad cx count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:57. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.61 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.pad_cxCount {m : }
      (c : QuantumBlockEncoding.PrimitiveCircuit m) (extra : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.pad c
            extra).cxCount =
        c.cxCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.pad_cxCount
      {m : }
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          m)
      (extra : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.pad
            c extra).cxCount =
        c.cxCount
Theorem6.29.7
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “pad gate count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.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.29.71 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.pad_gateCount {m : }
      (c : QuantumBlockEncoding.PrimitiveCircuit m) (extra : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.pad c
            extra).gateCount =
        c.gateCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.pad_gateCount
      {m : }
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          m)
      (extra : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.pad
            c extra).gateCount =
        c.gateCount
Definition6.29.8
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “stage wires”. Preserve bond indices and send the local fresh bit to the new highest wire.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

Technical source note. Preserve bond indices and send the local fresh bit to the new highest wire.

Declaration kind. def.

Source: QuantumBlockEncoding/SequentialPrimitiveAssembly.lean:70. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.81 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires (q t : ) :
      Fin (q + 1 + t)  Fin (q + t + 1)
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires
      (q t : ) :
      Fin (q + 1 + t)  Fin (q + t + 1)
    Preserve bond indices and send the local fresh bit to the new highest wire. 
Theorem6.29.9
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “stage wires fresh”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:89. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.91 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires_fresh
      (q t : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires q t)
          (Fin.castAdd t (Fin.last q)) =
        Fin.last (q + t)
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires_fresh
      (q t : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires
            q t)
          (Fin.castAdd t (Fin.last q)) =
        Fin.last (q + t)
Theorem6.29.10
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “stage wires bond”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:93. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.101 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires_bond
      (q t : ) (i : Fin q) :
      ((QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires q t)
            (Fin.castAdd t i.castSucc)) =
        i
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires_bond
      (q t : ) (i : Fin q) :
      ((QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires
              q t)
            (Fin.castAdd t i.castSucc)) =
        i
Theorem6.29.11
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “stage wires basis”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:97. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.111 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires_basis
      (q t : ) (b : QuantumBlockEncoding.PrimitiveBasis q)
      (x : QuantumBlockEncoding.PrimitiveBasis t) (bit : Fin 2) :
      (fun w =>
          Fin.snoc (Fin.append b x) bit
            ((QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires q
                t)
              w)) =
        Fin.append (Fin.snoc b bit) x
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires_basis
      (q t : )
      (b :
        QuantumBlockEncoding.PrimitiveBasis q)
      (x :
        QuantumBlockEncoding.PrimitiveBasis t)
      (bit : Fin 2) :
      (fun w =>
          Fin.snoc (Fin.append b x) bit
            ((QuantumBlockEncoding.SequentialPrimitiveAssembly.stageWires
                q t)
              w)) =
        Fin.append (Fin.snoc b bit) x
Definition6.29.12
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “place stage”.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.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.29.121 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage {q : }
      (t : ) (c : QuantumBlockEncoding.PrimitiveCircuit (q + 1)) :
      QuantumBlockEncoding.PrimitiveCircuit (q + t + 1)
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage
      {q : } (t : )
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          (q + 1)) :
      QuantumBlockEncoding.PrimitiveCircuit
        (q + t + 1)
Definition6.29.13
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “placed matrix”.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:112. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.131 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.placedMatrix {q : }
      (t : )
      (M :
        Matrix (QuantumBlockEncoding.PrimitiveBasis (q + 1))
          (QuantumBlockEncoding.PrimitiveBasis (q + 1)) ) :
      Matrix (QuantumBlockEncoding.PrimitiveBasis (q + t + 1))
        (QuantumBlockEncoding.PrimitiveBasis (q + t + 1)) 
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.placedMatrix
      {q : } (t : )
      (M :
        Matrix
          (QuantumBlockEncoding.PrimitiveBasis
            (q + 1))
          (QuantumBlockEncoding.PrimitiveBasis
            (q + 1))
          ) :
      Matrix
        (QuantumBlockEncoding.PrimitiveBasis
          (q + t + 1))
        (QuantumBlockEncoding.PrimitiveBasis
          (q + t + 1))
        
Theorem6.29.14
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “eval place stage”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:117. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.141 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.eval_placeStage {q : }
      (t : ) (c : QuantumBlockEncoding.PrimitiveCircuit (q + 1)) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage t
            c) =
        QuantumBlockEncoding.SequentialPrimitiveAssembly.placedMatrix t
          (QuantumBlockEncoding.evalPrimitiveCircuit c)
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.eval_placeStage
      {q : } (t : )
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          (q + 1)) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage
            t c) =
        QuantumBlockEncoding.SequentialPrimitiveAssembly.placedMatrix
          t
          (QuantumBlockEncoding.evalPrimitiveCircuit
            c)
Theorem6.29.15
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “placed matrix apply”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:122. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.151 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.placedMatrix_apply
      {q : } (t : )
      (M :
        Matrix (QuantumBlockEncoding.PrimitiveBasis (q + 1))
          (QuantumBlockEncoding.PrimitiveBasis (q + 1)) )
      (a b : QuantumBlockEncoding.PrimitiveBasis q)
      (x y : QuantumBlockEncoding.PrimitiveBasis t) (u v : Fin 2) :
      QuantumBlockEncoding.SequentialPrimitiveAssembly.placedMatrix t M
          (Fin.snoc (Fin.append a x) u) (Fin.snoc (Fin.append b y) v) =
        if x = y then M (Fin.snoc a u) (Fin.snoc b v) else 0
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.placedMatrix_apply
      {q : } (t : )
      (M :
        Matrix
          (QuantumBlockEncoding.PrimitiveBasis
            (q + 1))
          (QuantumBlockEncoding.PrimitiveBasis
            (q + 1))
          )
      (a b :
        QuantumBlockEncoding.PrimitiveBasis q)
      (x y :
        QuantumBlockEncoding.PrimitiveBasis t)
      (u v : Fin 2) :
      QuantumBlockEncoding.SequentialPrimitiveAssembly.placedMatrix
          t M (Fin.snoc (Fin.append a x) u)
          (Fin.snoc (Fin.append b y) v) =
        if x = y then
          M (Fin.snoc a u) (Fin.snoc b v)
        else 0
Theorem6.29.16
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “place stage ry count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:130. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.161 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage_ryCount
      {q : } (t : ) (c : QuantumBlockEncoding.PrimitiveCircuit (q + 1)) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage t
            c).ryCount =
        c.ryCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage_ryCount
      {q : } (t : )
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          (q + 1)) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage
            t c).ryCount =
        c.ryCount
Theorem6.29.17
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “place stage cx count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:133. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.171 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage_cxCount
      {q : } (t : ) (c : QuantumBlockEncoding.PrimitiveCircuit (q + 1)) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage t
            c).cxCount =
        c.cxCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage_cxCount
      {q : } (t : )
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          (q + 1)) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage
            t c).cxCount =
        c.cxCount
Theorem6.29.18
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “place stage gate count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:136. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.181 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage_gateCount
      {q : } (t : ) (c : QuantumBlockEncoding.PrimitiveCircuit (q + 1)) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage t
            c).gateCount =
        c.gateCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage_gateCount
      {q : } (t : )
      (c :
        QuantumBlockEncoding.PrimitiveCircuit
          (q + 1)) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.placeStage
            t c).gateCount =
        c.gateCount
Definition6.29.19
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “assemble”. Assemble one actual primitive list, with each bond stage on its final wires.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

Technical source note. Assemble one actual primitive list, with each bond stage on its final wires.

Declaration kind. def.

Source: QuantumBlockEncoding/SequentialPrimitiveAssembly.lean:141. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.191 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble (q : )
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : ) :
      QuantumBlockEncoding.PrimitiveCircuit (q + n)
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble
      (q : )
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      QuantumBlockEncoding.PrimitiveCircuit
        (q + n)
    Assemble one actual primitive list, with each bond stage on its final wires. 
Definition6.29.20
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “assembled matrix”.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:146. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.201 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.assembledMatrix (q : )
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : ) :
      Matrix (QuantumBlockEncoding.PrimitiveBasis (q + n))
        (QuantumBlockEncoding.PrimitiveBasis (q + n)) 
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.assembledMatrix
      (q : )
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      Matrix
        (QuantumBlockEncoding.PrimitiveBasis
          (q + n))
        (QuantumBlockEncoding.PrimitiveBasis
          (q + n))
        
Theorem6.29.21
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “eval assemble”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:153. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.211 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.eval_assemble (q : )
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : ) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble q
            stages n) =
        QuantumBlockEncoding.SequentialPrimitiveAssembly.assembledMatrix q
          stages n
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.eval_assemble
      (q : )
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble
            q stages n) =
        QuantumBlockEncoding.SequentialPrimitiveAssembly.assembledMatrix
          q stages n
Theorem6.29.22
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “assembled matrix clean column”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:161. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.221 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assembledMatrix_clean_column
      (q : ) (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1))
      (n : ) (a b : QuantumBlockEncoding.PrimitiveBasis q)
      (x : QuantumBlockEncoding.PrimitiveBasis n) :
      QuantumBlockEncoding.SequentialPrimitiveAssembly.assembledMatrix q
          stages n (Fin.append b x) (Fin.append a fun x => 0) =
        QuantumBlockEncoding.SequentialBondPreparation.run
          (fun t =>
            QuantumBlockEncoding.SequentialBondPreparation.circuitStage
              (stages t))
          (QuantumBlockEncoding.SequentialBondPreparation.basisBoundary a) n
          (x, b)
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assembledMatrix_clean_column
      (q : )
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : )
      (a b :
        QuantumBlockEncoding.PrimitiveBasis q)
      (x :
        QuantumBlockEncoding.PrimitiveBasis
          n) :
      QuantumBlockEncoding.SequentialPrimitiveAssembly.assembledMatrix
          q stages n (Fin.append b x)
          (Fin.append a fun x => 0) =
        QuantumBlockEncoding.SequentialBondPreparation.run
          (fun t =>
            QuantumBlockEncoding.SequentialBondPreparation.circuitStage
              (stages t))
          (QuantumBlockEncoding.SequentialBondPreparation.basisBoundary
            a)
          n (x, b)
Theorem6.29.23
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “assemble clean column”; the hypotheses and conclusion in the code panel fix its exact scope. A flattened primitive circuit has exactly the sequential state action; the fresh data inputs are all zero and every output amplitude is covered.

Formal status. Compiled theorem in the default ASPBE import surface; the displayed Lean signature is the authoritative claim.

Why it is in this chapter. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

Technical source note. A flattened primitive circuit has exactly the sequential state action; the fresh data inputs are all zero and every output amplitude is covered.

Declaration kind. theorem.

Source: QuantumBlockEncoding/SequentialPrimitiveAssembly.lean:199. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.231 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble_clean_column
      (q : ) (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1))
      (n : ) (a b : QuantumBlockEncoding.PrimitiveBasis q)
      (x : QuantumBlockEncoding.PrimitiveBasis n) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble q
            stages n)
          (Fin.append b x) (Fin.append a fun x => 0) =
        QuantumBlockEncoding.SequentialBondPreparation.run
          (fun t =>
            QuantumBlockEncoding.SequentialBondPreparation.circuitStage
              (stages t))
          (QuantumBlockEncoding.SequentialBondPreparation.basisBoundary a) n
          (x, b)
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble_clean_column
      (q : )
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : )
      (a b :
        QuantumBlockEncoding.PrimitiveBasis q)
      (x :
        QuantumBlockEncoding.PrimitiveBasis
          n) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble
            q stages n)
          (Fin.append b x)
          (Fin.append a fun x => 0) =
        QuantumBlockEncoding.SequentialBondPreparation.run
          (fun t =>
            QuantumBlockEncoding.SequentialBondPreparation.circuitStage
              (stages t))
          (QuantumBlockEncoding.SequentialBondPreparation.basisBoundary
            a)
          n (x, b)
    A flattened primitive circuit has exactly the sequential state action;
    the fresh data inputs are all zero and every output amplitude is covered. 
Theorem6.29.24
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “run boundary decomposition”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:208. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.241 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.run_boundary_decomposition
      {q : }
      (U :
         
          QuantumBlockEncoding.SequentialBondPreparation.Stage
            (QuantumBlockEncoding.PrimitiveBasis q))
      (v : QuantumBlockEncoding.PrimitiveBasis q  ) (n : )
      (x : QuantumBlockEncoding.PrimitiveBasis n)
      (b : QuantumBlockEncoding.PrimitiveBasis q) :
      QuantumBlockEncoding.SequentialBondPreparation.run U v n (x, b) =
         a,
          QuantumBlockEncoding.SequentialBondPreparation.run U
              (QuantumBlockEncoding.SequentialBondPreparation.basisBoundary
                a)
              n (x, b) *
            v a
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.run_boundary_decomposition
      {q : }
      (U :
         
          QuantumBlockEncoding.SequentialBondPreparation.Stage
            (QuantumBlockEncoding.PrimitiveBasis
              q))
      (v :
        QuantumBlockEncoding.PrimitiveBasis
            q 
          )
      (n : )
      (x :
        QuantumBlockEncoding.PrimitiveBasis n)
      (b :
        QuantumBlockEncoding.PrimitiveBasis
          q) :
      QuantumBlockEncoding.SequentialBondPreparation.run
          U v n (x, b) =
         a,
          QuantumBlockEncoding.SequentialBondPreparation.run
              U
              (QuantumBlockEncoding.SequentialBondPreparation.basisBoundary
                a)
              n (x, b) *
            v a
Definition6.29.25
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “with initial”. The initial bond vector is prepared by an actual circuit, never supplied as a free state.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

Technical source note. The initial bond vector is prepared by an actual circuit, never supplied as a free state. Its gate cost is added to the sequential-stage costs.

Declaration kind. def.

Source: QuantumBlockEncoding/SequentialPrimitiveAssembly.lean:224. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.251 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial {q : }
      (initial : QuantumBlockEncoding.PrimitiveCircuit q)
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : ) :
      QuantumBlockEncoding.PrimitiveCircuit (q + n)
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial
      {q : }
      (initial :
        QuantumBlockEncoding.PrimitiveCircuit
          q)
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      QuantumBlockEncoding.PrimitiveCircuit
        (q + n)
    The initial bond vector is prepared by an actual circuit, never supplied
    as a free state. Its gate cost is added to the sequential-stage costs. 
Theorem6.29.26
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “with initial column”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:228. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.261 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial_column
      {q : } (initial : QuantumBlockEncoding.PrimitiveCircuit q)
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : )
      (a b : QuantumBlockEncoding.PrimitiveBasis q)
      (x : QuantumBlockEncoding.PrimitiveBasis n) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial
            initial stages n)
          (Fin.append b x) (Fin.append a fun x => 0) =
        QuantumBlockEncoding.SequentialBondPreparation.run
          (fun t =>
            QuantumBlockEncoding.SequentialBondPreparation.circuitStage
              (stages t))
          (fun c => QuantumBlockEncoding.evalPrimitiveCircuit initial c a) n
          (x, b)
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial_column
      {q : }
      (initial :
        QuantumBlockEncoding.PrimitiveCircuit
          q)
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : )
      (a b :
        QuantumBlockEncoding.PrimitiveBasis q)
      (x :
        QuantumBlockEncoding.PrimitiveBasis
          n) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial
            initial stages n)
          (Fin.append b x)
          (Fin.append a fun x => 0) =
        QuantumBlockEncoding.SequentialBondPreparation.run
          (fun t =>
            QuantumBlockEncoding.SequentialBondPreparation.circuitStage
              (stages t))
          (fun c =>
            QuantumBlockEncoding.evalPrimitiveCircuit
              initial c a)
          n (x, b)
Theorem6.29.27
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “assemble ry count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:243. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.271 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble_ryCount
      (q : ) (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1))
      (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble q stages
            n).ryCount =
         t  Finset.range n, (stages t).ryCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble_ryCount
      (q : )
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble
            q stages n).ryCount =
         t  Finset.range n,
          (stages t).ryCount
Theorem6.29.28
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “assemble cx count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:251. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.281 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble_cxCount
      (q : ) (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1))
      (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble q stages
            n).cxCount =
         t  Finset.range n, (stages t).cxCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble_cxCount
      (q : )
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble
            q stages n).cxCount =
         t  Finset.range n,
          (stages t).cxCount
Theorem6.29.29
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “assemble no oracle”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:259. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.291 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble_noOracle
      (q : ) (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1))
      (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble q stages
              n).resource.oracleCalls =
        0
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble_noOracle
      (q : )
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.assemble
              q stages
              n).resource.oracleCalls =
        0
Theorem6.29.30
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “with initial ry count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:262. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.301 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial_ryCount
      {q : } (initial : QuantumBlockEncoding.PrimitiveCircuit q)
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial initial
            stages n).ryCount =
        initial.ryCount +  t  Finset.range n, (stages t).ryCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial_ryCount
      {q : }
      (initial :
        QuantumBlockEncoding.PrimitiveCircuit
          q)
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial
            initial stages n).ryCount =
        initial.ryCount +
           t  Finset.range n,
            (stages t).ryCount
Theorem6.29.31
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “with initial cx count”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:268. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.311 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial_cxCount
      {q : } (initial : QuantumBlockEncoding.PrimitiveCircuit q)
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial initial
            stages n).cxCount =
        initial.cxCount +  t  Finset.range n, (stages t).cxCount
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial_cxCount
      {q : }
      (initial :
        QuantumBlockEncoding.PrimitiveCircuit
          q)
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial
            initial stages n).cxCount =
        initial.cxCount +
           t  Finset.range n,
            (stages t).cxCount
Theorem6.29.32
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “with initial primitive bound”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:274. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.321 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial_primitive_bound
      {q : } (initial : QuantumBlockEncoding.PrimitiveCircuit q)
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1))
      (n bound : )
      (h :  t < n, (stages t).ryCount + (stages t).cxCount  bound) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial initial
              stages n).ryCount +
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial
              initial stages n).cxCount 
        initial.ryCount + initial.cxCount + n * bound
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial_primitive_bound
      {q : }
      (initial :
        QuantumBlockEncoding.PrimitiveCircuit
          q)
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n bound : )
      (h :
         t < n,
          (stages t).ryCount +
              (stages t).cxCount 
            bound) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial
              initial stages n).ryCount +
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.withInitial
              initial stages n).cxCount 
        initial.ryCount + initial.cxCount +
          n * bound
Definition6.29.33
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “output wires”. Place the first emitted bit at the most-significant data wire, and the bond after the data register.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

Technical source note. Place the first emitted bit at the most-significant data wire, and the bond after the data register. This relabels every instruction, not the state.

Declaration kind. def.

Source: QuantumBlockEncoding/SequentialPrimitiveAssembly.lean:289. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.331 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.outputWires (q n : ) :
      Fin (q + n)  Fin (n + q)
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.outputWires
      (q n : ) : Fin (q + n)  Fin (n + q)
    Place the first emitted bit at the most-significant data wire, and the
    bond after the data register. This relabels every instruction, not the state. 
Theorem6.29.34
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “output wires basis”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:299. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.341 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.outputWires_basis
      (q n : ) (b : QuantumBlockEncoding.PrimitiveBasis q)
      (x : QuantumBlockEncoding.PrimitiveBasis n) :
      (fun w =>
          Fin.append x b
            ((QuantumBlockEncoding.SequentialPrimitiveAssembly.outputWires q
                n)
              w)) =
        Fin.append b fun i => x i.rev
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.outputWires_basis
      (q n : )
      (b :
        QuantumBlockEncoding.PrimitiveBasis q)
      (x :
        QuantumBlockEncoding.PrimitiveBasis
          n) :
      (fun w =>
          Fin.append x b
            ((QuantumBlockEncoding.SequentialPrimitiveAssembly.outputWires
                q n)
              w)) =
        Fin.append b fun i => x i.rev
Definition6.29.35
uses 0used by 0L∃∀N

Plain-English reading. This definition gives the library's named construction or computation for “public circuit”. Physical output convention: low data wires are little-endian, clean bond wires follow them.

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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

Technical source note. Physical output convention: low data wires are little-endian, clean bond wires follow them. Both preparation and stages incur their actual gate costs.

Declaration kind. def.

Source: QuantumBlockEncoding/SequentialPrimitiveAssembly.lean:309. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Definition6.29.351 definition
  • def QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit {q : }
      (initial : QuantumBlockEncoding.PrimitiveCircuit q)
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : ) :
      QuantumBlockEncoding.PrimitiveCircuit (n + q)
    def QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit
      {q : }
      (initial :
        QuantumBlockEncoding.PrimitiveCircuit
          q)
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : ) :
      QuantumBlockEncoding.PrimitiveCircuit
        (n + q)
    Physical output convention: low data wires are little-endian, clean bond
    wires follow them. Both preparation and stages incur their actual gate costs. 
Theorem6.29.36
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “public circuit column”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:313. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.361 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit_column
      {q : } (initial : QuantumBlockEncoding.PrimitiveCircuit q)
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1)) (n : )
      (a b : QuantumBlockEncoding.PrimitiveBasis q)
      (x : QuantumBlockEncoding.PrimitiveBasis n) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit
            initial stages n)
          (Fin.append x b) (Fin.append (fun x => 0) a) =
        QuantumBlockEncoding.SequentialBondPreparation.run
          (fun t =>
            QuantumBlockEncoding.SequentialBondPreparation.circuitStage
              (stages t))
          (fun c => QuantumBlockEncoding.evalPrimitiveCircuit initial c a) n
          (fun i => x i.rev, b)
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit_column
      {q : }
      (initial :
        QuantumBlockEncoding.PrimitiveCircuit
          q)
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n : )
      (a b :
        QuantumBlockEncoding.PrimitiveBasis q)
      (x :
        QuantumBlockEncoding.PrimitiveBasis
          n) :
      QuantumBlockEncoding.evalPrimitiveCircuit
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit
            initial stages n)
          (Fin.append x b)
          (Fin.append (fun x => 0) a) =
        QuantumBlockEncoding.SequentialBondPreparation.run
          (fun t =>
            QuantumBlockEncoding.SequentialBondPreparation.circuitStage
              (stages t))
          (fun c =>
            QuantumBlockEncoding.evalPrimitiveCircuit
              initial c a)
          n (fun i => x i.rev, b)
Theorem6.29.37
uses 0used by 0L∃∀N

Plain-English reading. Lean checks the proposition indexed as “public circuit primitive bound”; 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. Circuit and register semantics, reusable tensor-train and matrix constructions, and explicit exact-real storage-cost refinements. Each declaration's hypotheses and conclusion fix its certified scope.

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/SequentialPrimitiveAssembly.lean:323. A commit-pinned external link is added by the publication build when the source exists at the published ref.

Lean code for Theorem6.29.371 theorem
  • theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit_primitive_bound
      {q : } (initial : QuantumBlockEncoding.PrimitiveCircuit q)
      (stages :   QuantumBlockEncoding.PrimitiveCircuit (q + 1))
      (n bound : )
      (h :  t < n, (stages t).ryCount + (stages t).cxCount  bound) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit
              initial stages n).ryCount +
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit
              initial stages n).cxCount 
        initial.ryCount + initial.cxCount + n * bound
    theorem QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit_primitive_bound
      {q : }
      (initial :
        QuantumBlockEncoding.PrimitiveCircuit
          q)
      (stages :
         
          QuantumBlockEncoding.PrimitiveCircuit
            (q + 1))
      (n bound : )
      (h :
         t < n,
          (stages t).ryCount +
              (stages t).cxCount 
            bound) :
      (QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit
              initial stages n).ryCount +
          (QuantumBlockEncoding.SequentialPrimitiveAssembly.publicCircuit
              initial stages n).cxCount 
        initial.ryCount + initial.cxCount +
          n * bound