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

Lean source module

QuantumBlockEncoding/Robin/SourceSevenSparseData.lean

18 explicit public declarations in source order.

Back to Library Explorer

def · line 16

QuantumBlockEncoding.Robin.warmRobinSourceDTOffset

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin source dt offset”. The source 'D^T' offset ordering, expressed in the physical selector.

def warmRobinSourceDTOffset (slot : Fin 8) : Fin 8 :=
  ⟨(slot.val ^^^ 3) % 8, Nat.mod_lt _ (by decide)⟩

commit-pinned source · Verso Blueprint panel

theorem · line 19

QuantumBlockEncoding.Robin.warmRobinSourceDTOffset_table

Compiled Compiled

Lean checks the proposition indexed as “warm robin source dt offset table”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinSourceDTOffset_table :
    List.ofFn warmRobinSourceDTOffset = [3, 2, 1, 0, 7, 6, 5, 4] := by

commit-pinned source · Verso Blueprint panel

def · line 24

QuantumBlockEncoding.Robin.warmRobinSourceDTRow

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin source dt row”. Sparse row addressed by one physical slot at a fixed source column.

def warmRobinSourceDTRow (slot column : Fin 8) : Fin 8 :=
  ⟨(column.val + (warmRobinSourceDTOffset slot).val) % 8,
    Nat.mod_lt _ (by decide)⟩

/-- Exact integer value returned by the source sparse-value oracle. -/

commit-pinned source · Verso Blueprint panel

def · line 29

QuantumBlockEncoding.Robin.warmRobinSourceSevenWeight

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin source seven weight”. Exact integer value returned by the source sparse-value oracle.

def warmRobinSourceSevenWeight (slot column : Fin 8) : Int :=
  warmRobinIntegerTarget (warmRobinSourceDTRow slot column) column

/-- Slot seven is the zero diagonal used only for physical padding. -/

commit-pinned source · Verso Blueprint panel

theorem · line 33

QuantumBlockEncoding.Robin.warmRobinSourceSevenWeight_slot7_zero

Compiled Compiled

Lean checks the proposition indexed as “warm robin source seven weight slot 7 zero”; the hypotheses and conclusion in the code panel fix its exact scope. Slot seven is the zero diagonal used only for physical padding.

theorem warmRobinSourceSevenWeight_slot7_zero (column : Fin 8) :
    warmRobinSourceSevenWeight 7 column = 0 := by

commit-pinned source · Verso Blueprint panel

theorem · line 38

QuantumBlockEncoding.Robin.warmRobinSourceDTRow_bijective_in_slot

Compiled Compiled

Lean checks the proposition indexed as “warm robin source dt row bijective in slot”; the hypotheses and conclusion in the code panel fix its exact scope. At a fixed column, the eight physical slots enumerate eight distinct rows.

theorem warmRobinSourceDTRow_bijective_in_slot (column : Fin 8) :
    Function.Bijective (fun slot : Fin 8 => warmRobinSourceDTRow slot column) := by

commit-pinned source · Verso Blueprint panel

theorem · line 43

QuantumBlockEncoding.Robin.warmRobinSourceDTRow_bijective_in_column

Compiled Compiled

Lean checks the proposition indexed as “warm robin source dt row bijective in column”; the hypotheses and conclusion in the code panel fix its exact scope. At a fixed slot, cyclic sparse access is a permutation of the columns.

theorem warmRobinSourceDTRow_bijective_in_column (slot : Fin 8) :
    Function.Bijective (fun column : Fin 8 => warmRobinSourceDTRow slot column) := by

commit-pinned source · Verso Blueprint panel

theorem · line 48

QuantumBlockEncoding.Robin.warmRobinSourceSevenSparseDecomposition

Compiled Compiled

Lean checks the proposition indexed as “warm robin source seven sparse decomposition”; the hypotheses and conclusion in the code panel fix its exact scope. Exact sparse-access decomposition with seven active physical states.

theorem warmRobinSourceSevenSparseDecomposition (row column : Fin 8) :
    warmRobinIntegerTarget row column =
      ∑ slot : Fin 8,
        if slot.val < 7 ∧ warmRobinSourceDTRow slot column = row then
          warmRobinSourceSevenWeight slot column
        else 0 := by

commit-pinned source · Verso Blueprint panel

def · line 56

QuantumBlockEncoding.Robin.warmRobinSourceND

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin source nd”.

def warmRobinSourceND : Rat := 8 / 3

commit-pinned source · Verso Blueprint panel

def · line 57

QuantumBlockEncoding.Robin.warmRobinSourceNf

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin source nf”.

def warmRobinSourceNf : Rat := 1

commit-pinned source · Verso Blueprint panel

def · line 58

QuantumBlockEncoding.Robin.warmRobinSourceKappa

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin source kappa”.

def warmRobinSourceKappa : Rat := 7

commit-pinned source · Verso Blueprint panel

theorem · line 60

QuantumBlockEncoding.Robin.warmRobinSourceAmplitude_eq_integer_div_32

Compiled Compiled

Lean checks the proposition indexed as “warm robin source amplitude eq integer div 32”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinSourceAmplitude_eq_integer_div_32 (row column : Fin 8) :
    ((warmRobinIntegerTarget row column : Rat) / 12) /
        warmRobinSourceND =
      (warmRobinIntegerTarget row column : Rat) / 32 := by

commit-pinned source · Verso Blueprint panel

theorem · line 67

QuantumBlockEncoding.Robin.warmRobinSourceAlpha_eq

Compiled Compiled

Lean checks the proposition indexed as “warm robin source alpha eq”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinSourceAlpha_eq :
    warmRobinSourceND * warmRobinSourceNf * warmRobinSourceKappa = 56 / 3 := by

commit-pinned source · Verso Blueprint panel

def · line 72

QuantumBlockEncoding.Robin.warmRobinSourceSevenSelectorProbability

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin source seven selector probability”. Selector probability in the clean column of padded-seven PREPARE.

def warmRobinSourceSevenSelectorProbability (slot : Fin 8) : Rat :=
  if slot.val < 7 then 1 / 7 else 0

/-- Coefficient loaded by an active sparse slot. The padded slot is assigned
the identity coefficient because its clean PREPARE probability is zero. -/

commit-pinned source · Verso Blueprint panel

def · line 77

QuantumBlockEncoding.Robin.warmRobinSourceSevenPaddedCoefficient

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin source seven padded coefficient”. Coefficient loaded by an active sparse slot.

def warmRobinSourceSevenPaddedCoefficient (slot column : Fin 8) : Rat :=
  if slot.val < 7 then warmRobinSourceSevenWeight slot column / 32 else 1

commit-pinned source · Verso Blueprint panel

def · line 80

QuantumBlockEncoding.Robin.warmRobinSourceSevenCleanFormula

Compiled Compiled

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

def warmRobinSourceSevenCleanFormula : Matrix 8 8 Rat := fun row column =>
  ∑ slot : Fin 8,
    if warmRobinSourceDTRow slot column = row then
      warmRobinSourceSevenSelectorProbability slot *
        warmRobinSourceSevenPaddedCoefficient slot column
    else 0

commit-pinned source · Verso Blueprint panel

theorem · line 87

QuantumBlockEncoding.Robin.warmRobinSourceSevenCleanFormula_eq_integer_div_224

Compiled Compiled

Lean checks the proposition indexed as “warm robin source seven clean formula eq integer div 224”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinSourceSevenCleanFormula_eq_integer_div_224
    (row column : Fin 8) :
    warmRobinSourceSevenCleanFormula row column =
      warmRobinIntegerTargetRat row column / 224 := by

commit-pinned source · Verso Blueprint panel

theorem · line 93

QuantumBlockEncoding.Robin.warmRobinSourceSevenCleanFormula_eq_target

Compiled Compiled

Lean checks the proposition indexed as “warm robin source seven clean formula eq target”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinSourceSevenCleanFormula_eq_target (row column : Fin 8) :
    warmRobinSourceSevenCleanFormula row column =
      RobinEvolution.warmRobinTarget row column /
        RobinEvolution.warmRobinNormalizer := by

commit-pinned source · Verso Blueprint panel