QuantumComputinglib learn · inspect · formalize
Checked on this commit 2,822 public declarations commit a2f08bcecda7 Build record

Lean source module

QuantumBlockEncoding/Robin/PaperSevenLogicalUnitary.lean

27 explicit public declarations in source order.

Back to Library Explorer

def · line 20

QuantumBlockEncoding.Robin.warmRobinPaperSevenSystemPerm

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven system perm”.

def warmRobinPaperSevenSystemPerm (slot column : Fin 8) : Fin 8 :=
  warmRobinSourceDTRow slot column

commit-pinned source · Verso Blueprint panel

theorem · line 23

QuantumBlockEncoding.Robin.warmRobinPaperSevenSystemPerm_bijective

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven system perm bijective”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenSystemPerm_bijective (slot : Fin 8) :
    Function.Bijective (warmRobinPaperSevenSystemPerm slot) :=
  warmRobinSourceDTRow_bijective_in_column slot

commit-pinned source · Verso Blueprint panel

def · line 27

QuantumBlockEncoding.Robin.warmRobinPaperSevenSystemEquiv

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven system equiv”.

noncomputable def warmRobinPaperSevenSystemEquiv (slot : Fin 8) :
    Fin 8 ≃ Fin 8 :=
  Equiv.ofBijective (warmRobinPaperSevenSystemPerm slot)
    (warmRobinPaperSevenSystemPerm_bijective slot)

commit-pinned source · Verso Blueprint panel

theorem · line 32

QuantumBlockEncoding.Robin.warmRobinPaperSevenSystemEquiv_apply

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven system equiv apply”; the hypotheses and conclusion in the code panel fix its exact scope.

@[simp] theorem warmRobinPaperSevenSystemEquiv_apply
    (slot column : Fin 8) :
    warmRobinPaperSevenSystemEquiv slot column =
      warmRobinSourceDTRow slot column := rfl

commit-pinned source · Verso Blueprint panel

def · line 37

QuantumBlockEncoding.Robin.warmRobinPaperSevenCoefficientRat

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven coefficient rat”.

def warmRobinPaperSevenCoefficientRat (slot column : Fin 8) : Rat :=
  warmRobinSourceSevenPaddedCoefficient slot column

commit-pinned source · Verso Blueprint panel

theorem · line 40

QuantumBlockEncoding.Robin.warmRobinPaperSevenCoefficientRat_abs_le_one

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven coefficient rat abs le one”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenCoefficientRat_abs_le_one
    (slot column : Fin 8) :
    |warmRobinPaperSevenCoefficientRat slot column| ≤ 1 := by

commit-pinned source · Verso Blueprint panel

def · line 45

QuantumBlockEncoding.Robin.warmRobinPaperSevenCoefficient

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven coefficient”.

def warmRobinPaperSevenCoefficient (slot column : Fin 8) : Real :=
  ((warmRobinPaperSevenCoefficientRat slot column : Rat) : Real)

commit-pinned source · Verso Blueprint panel

theorem · line 48

QuantumBlockEncoding.Robin.warmRobinPaperSevenCoefficient_abs_le_one

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven coefficient abs le one”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenCoefficient_abs_le_one
    (slot column : Fin 8) :
    |warmRobinPaperSevenCoefficient slot column| ≤ 1 := by

commit-pinned source · Verso Blueprint panel

def · line 57

QuantumBlockEncoding.Robin.warmRobinPaperSevenRotation

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven rotation”.

noncomputable def warmRobinPaperSevenRotation (slot column : Fin 8) :
    _root_.Matrix (Fin 2) (Fin 2) ℂ :=
  amplitudeRotation (warmRobinPaperSevenCoefficient slot column)

commit-pinned source · Verso Blueprint panel

theorem · line 61

QuantumBlockEncoding.Robin.warmRobinPaperSevenRotation_unitary

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven rotation unitary”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenRotation_unitary (slot column : Fin 8) :
    warmRobinPaperSevenRotation slot column ∈
      _root_.Matrix.unitaryGroup (Fin 2) ℂ :=
  amplitudeRotation_unitary _

commit-pinned source · Verso Blueprint panel

theorem · line 66

QuantumBlockEncoding.Robin.warmRobinPaperSevenRotation_cleanEntry

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven rotation clean entry”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenRotation_cleanEntry (slot column : Fin 8) :
    warmRobinPaperSevenRotation slot column 0 0 =
      (warmRobinPaperSevenCoefficient slot column : ℂ) := by

commit-pinned source · Verso Blueprint panel

def · line 73

QuantumBlockEncoding.Robin.warmRobinPaperSevenLogicalUnitary

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven logical unitary”.

noncomputable def warmRobinPaperSevenLogicalUnitary :
    _root_.Matrix
      (LCUIndex (Fin 2) (Fin 8) (Fin 8))
      (LCUIndex (Fin 2) (Fin 8) (Fin 8)) ℂ :=
  prepareAmplitudeSelectUnprepare
    warmRobinPaperSevenSelectorPrepare
    warmRobinPaperSevenRotation
    warmRobinPaperSevenSystemEquiv

commit-pinned source · Verso Blueprint panel

theorem · line 82

QuantumBlockEncoding.Robin.warmRobinPaperSevenLogicalUnitary_unitary

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven logical unitary unitary”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenLogicalUnitary_unitary :
    warmRobinPaperSevenLogicalUnitary ∈
      _root_.Matrix.unitaryGroup
        (LCUIndex (Fin 2) (Fin 8) (Fin 8)) ℂ := by

commit-pinned source · Verso Blueprint panel

theorem · line 90

QuantumBlockEncoding.Robin.warmRobinPaperSevenLogicalUnitary_cleanEntry

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven logical unitary clean entry”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenLogicalUnitary_cleanEntry
    (row column : Fin 8) :
    warmRobinPaperSevenLogicalUnitary
        (0, (0, row)) (0, (0, column)) =
      (warmRobinSourceSevenCleanFormula row column : ℂ) := by

commit-pinned source · Verso Blueprint panel

theorem · line 135

QuantumBlockEncoding.Robin.warmRobinPaperSevenLogicalUnitary_cleanBlock

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven logical unitary clean block”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenLogicalUnitary_cleanBlock :
    cleanSystemBlock warmRobinPaperSevenLogicalUnitary 0 0 =
      fun row column =>
        ((RobinEvolution.warmRobinTarget row column /
          RobinEvolution.warmRobinNormalizer : Rat) : ℂ) := by

commit-pinned source · Verso Blueprint panel

def · line 147

QuantumBlockEncoding.Robin.warmRobinPaperSevenIndexEquiv

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven index equiv”. Flatten coefficient, selector, and system registers to seven qubits.

def warmRobinPaperSevenIndexEquiv :
    LCUIndex (Fin 2) (Fin 8) (Fin 8) ≃ Fin (gridSize 7) :=
  (Equiv.prodCongr (Equiv.refl (Fin 2)) finProdFinEquiv).trans
    finProdFinEquiv

commit-pinned source · Verso Blueprint panel

def · line 152

QuantumBlockEncoding.Robin.warmRobinPaperSevenCleanIndex

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven clean index”.

noncomputable def warmRobinPaperSevenCleanIndex
    (system : Fin 8) : Fin (gridSize 7) :=
  warmRobinPaperSevenIndexEquiv (0, (0, system))

commit-pinned source · Verso Blueprint panel

def · line 156

QuantumBlockEncoding.Robin.warmRobinPaperSevenFlatUnitary

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven flat unitary”.

noncomputable def warmRobinPaperSevenFlatUnitary :
    _root_.Matrix (Fin (gridSize 7)) (Fin (gridSize 7)) ℂ :=
  _root_.Matrix.reindexAlgEquiv ℂ ℂ warmRobinPaperSevenIndexEquiv
    warmRobinPaperSevenLogicalUnitary

commit-pinned source · Verso Blueprint panel

theorem · line 161

QuantumBlockEncoding.Robin.warmRobinPaperSevenFlatUnitary_unitary

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven flat unitary unitary”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenFlatUnitary_unitary :
    warmRobinPaperSevenFlatUnitary ∈
      _root_.Matrix.unitaryGroup (Fin (gridSize 7)) ℂ := by

commit-pinned source · Verso Blueprint panel

theorem · line 167

QuantumBlockEncoding.Robin.warmRobinPaperSevenFlatUnitary_cleanBlock

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven flat unitary clean block”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenFlatUnitary_cleanBlock
    (row column : Fin 8) :
    warmRobinPaperSevenFlatUnitary
        (warmRobinPaperSevenCleanIndex row)
        (warmRobinPaperSevenCleanIndex column) =
      ((RobinEvolution.warmRobinTarget row column /
        RobinEvolution.warmRobinNormalizer : Rat) : ℂ) := by

commit-pinned source · Verso Blueprint panel

def · line 183

QuantumBlockEncoding.Robin.warmRobinPaperSevenBlockContainsTarget

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven block contains target”.

def warmRobinPaperSevenBlockContainsTarget : Prop :=
  ∀ row column : Fin 8,
    warmRobinPaperSevenFlatUnitary
        (warmRobinPaperSevenCleanIndex row)
        (warmRobinPaperSevenCleanIndex column) =
      warmRobinQueryTarget.operator row column /
        warmRobinQueryTarget.normalizer

commit-pinned source · Verso Blueprint panel

theorem · line 191

QuantumBlockEncoding.Robin.warmRobinPaperSevenBlockContainsTarget_proof

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven block contains target proof”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenBlockContainsTarget_proof :
    warmRobinPaperSevenBlockContainsTarget := by

commit-pinned source · Verso Blueprint panel

def · line 197

QuantumBlockEncoding.Robin.warmRobinPaperSevenT2Schedule

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven t 2 schedule”.

def warmRobinPaperSevenT2Schedule : LayeredCircuit :=
  [ [ Gate.oracleCall "paper-seven PREPARE" ]
  , [ Gate.oracleCall "paper-seven amplitude loader" ]
  , [ Gate.oracleCall "paper-seven SELECT" ]
  , [ Gate.oracleCall "paper-seven PREPARE dagger" ] ]

commit-pinned source · Verso Blueprint panel

def · line 203

QuantumBlockEncoding.Robin.warmRobinPaperSevenT2Circuit

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven t 2 circuit”.

def warmRobinPaperSevenT2Circuit : Circuit :=
  warmRobinPaperSevenT2Schedule.flatten

commit-pinned source · Verso Blueprint panel

def · line 206

QuantumBlockEncoding.Robin.warmRobinPaperSevenT2Resource

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven t 2 resource”.

def warmRobinPaperSevenT2Resource : Resource :=
  warmRobinPaperSevenT2Schedule.resource

commit-pinned source · Verso Blueprint panel

def · line 209

QuantumBlockEncoding.Robin.warmRobinPaperSevenOperatorCandidate

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven operator candidate”.

noncomputable def warmRobinPaperSevenOperatorCandidate :
    OperatorBlockEncodingCandidate ℂ 3 where
  auxiliaryQubits := 4
  target := warmRobinQueryTarget
  unitary := warmRobinPaperSevenFlatUnitary
  layout := {
    systemQubits := 3
    signalQubits := 4
    pureAncillas := 0
  }
  circuit := warmRobinPaperSevenT2Circuit

commit-pinned source · Verso Blueprint panel

def · line 227

QuantumBlockEncoding.Robin.warmRobinPaperSevenVerifiedBlockEncoding

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper seven verified block encoding”.

noncomputable def warmRobinPaperSevenVerifiedBlockEncoding :
    VerifiedOperatorBlockEncoding ℂ 3 where
  candidate := warmRobinPaperSevenOperatorCandidate
  unitaryProof := warmRobinPaperSevenFlatUnitary_unitary
  blockProof := warmRobinPaperSevenBlockContainsTarget_proof

commit-pinned source · Verso Blueprint panel