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

Lean source module

QuantumBlockEncoding/Robin/FixedN3Data.lean

6 explicit public declarations in source order.

Back to Library Explorer

def · line 17

QuantumBlockEncoding.Robin.warmRobinIntegerTarget

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin integer target”. The integer matrix 'M = 12 A', kept integral for finite decomposition proofs.

def warmRobinIntegerTarget : Matrix 8 8 Int := fun i j =>
  match i.val, j.val with
  | 0, 0 => -30 | 0, 1 => 32 | 0, 2 => -2
  | 1, 0 => 16 | 1, 1 => -31 | 1, 2 => 16 | 1, 3 => -1
  | 2, 0 => -1 | 2, 1 => 16 | 2, 2 => -30 | 2, 3 => 16 | 2, 4 => -1
  | 3, 1 => -1 | 3, 2 => 16 | 3, 3 => -30 | 3, 4 => 16 | 3, 5 => -1
  | 4, 2 => -1 | 4, 3 => 16 | 4, 4 => -30 | 4, 5 => 16 | 4, 6 => -1
  | 5, 3 => -1 | 5, 4 => 16 | 5, 5 => -30 | 5, 6 => 16 | 5, 7 => -1
  | 6, 4 => -1 | 6, 5 => 16 | 6, 6 => -31 | 6, 7 => 16
  | 7, 5 => -2 | 7, 6 => 32 | 7, 7 => -30
  | _, _ => 0

commit-pinned source · Verso Blueprint panel

def · line 30

QuantumBlockEncoding.Robin.warmRobinIntegerTargetRat

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin integer target rat”. Rational view of the frozen integer target.

def warmRobinIntegerTargetRat : Matrix 8 8 Rat := fun i j =>
  warmRobinIntegerTarget i j

/-- Exact fixed-instance identity `M = 12 A`. -/

commit-pinned source · Verso Blueprint panel

theorem · line 34

QuantumBlockEncoding.Robin.warmRobinIntegerTarget_eq_twelve_mul_target

Compiled Compiled

Lean checks the proposition indexed as “warm robin integer target eq twelve mul target”; the hypotheses and conclusion in the code panel fix its exact scope. Exact fixed-instance identity 'M = 12 A'.

theorem warmRobinIntegerTarget_eq_twelve_mul_target :
    warmRobinIntegerTargetRat = fun i j => 12 * warmRobinTarget i j := by

commit-pinned source · Verso Blueprint panel

theorem · line 40

QuantumBlockEncoding.Robin.warmRobin_normalized_eq_integer_div_224

Compiled Compiled

Lean checks the proposition indexed as “warm robin normalized eq integer div 224”; the hypotheses and conclusion in the code panel fix its exact scope. Exact normalized target identity 'A / (56/3) = M / 224'.

theorem warmRobin_normalized_eq_integer_div_224 :
    (fun i j => warmRobinTarget i j / warmRobinNormalizer) =
      fun i j => warmRobinIntegerTargetRat i j / 224 := by

commit-pinned source · Verso Blueprint panel

def · line 47

QuantumBlockEncoding.Robin.warmRobinCleanEmbed

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin clean embed”. Signal-first clean embedding for the fixed 'signal x system' convention.

def warmRobinCleanEmbed (system : Fin 8) : Fin (8 * 8) :=
  BlockEncodingClassics.productIndex (0 : Fin 8) system

commit-pinned source · Verso Blueprint panel

theorem · line 50

QuantumBlockEncoding.Robin.warmRobinCleanEmbed_value

Compiled Compiled

Lean checks the proposition indexed as “warm robin clean embed value”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinCleanEmbed_value (system : Fin 8) :
    (warmRobinCleanEmbed system).val = system.val := by

commit-pinned source · Verso Blueprint panel