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

Lean source module

QuantumBlockEncoding/Robin/SymmetryFourSlotPrimitive.lean

10 explicit public declarations in source order.

Back to Library Explorer

def · line 17

QuantumBlockEncoding.Robin.warmRobinPairCoordinateCircuit

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin pair coordinate circuit”. System-wire order is '(p0, p1, sector)'.

def warmRobinPairCoordinateCircuit : PrimitiveCircuit 3 :=
  [ .cx 2 1 (by decide), .cx 2 0 (by decide) ]

commit-pinned source · Verso Blueprint panel

def · line 20

QuantumBlockEncoding.Robin.warmRobinPairCoordinateBasisEquiv

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin pair coordinate basis equiv”.

def warmRobinPairCoordinateBasisEquiv :
    PrimitiveBasis 3 ≃ PrimitiveBasis 3 :=
  (cxBasisEquiv (2 : Fin 3) (1 : Fin 3) (by decide)).trans
    (cxBasisEquiv (2 : Fin 3) (0 : Fin 3) (by decide))

commit-pinned source · Verso Blueprint panel

theorem · line 25

QuantumBlockEncoding.Robin.warmRobinPairCoordinateCircuit_eval_eq

Compiled Compiled

Lean checks the proposition indexed as “warm robin pair coordinate circuit eval eq”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPairCoordinateCircuit_eval_eq :
    evalPrimitiveCircuit warmRobinPairCoordinateCircuit =
      ComplexLCU.equivPermutationMatrix warmRobinPairCoordinateBasisEquiv := by

commit-pinned source · Verso Blueprint panel

def · line 51

QuantumBlockEncoding.Robin.warmRobinPairBits

Compiled Compiled

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

def warmRobinPairBits (index : WarmRobinSymmetrySystem) : PrimitiveBasis 3 :=
  fun wire =>
    match wire.val with
    | 0 => ⟨index.2.val % 2, Nat.mod_lt _ (by decide)⟩
    | 1 => ⟨index.2.val / 2, by omega⟩
    | _ => index.1

commit-pinned source · Verso Blueprint panel

def · line 58

QuantumBlockEncoding.Robin.warmRobinOriginalBitsValue

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin original bits value”.

def warmRobinOriginalBitsValue (state : PrimitiveBasis 3) : Nat :=
  state 0 + 2 * state 1 + 4 * state 2

/-- The two CX gates implement the non-free pair-coordinate reindex exactly. -/

commit-pinned source · Verso Blueprint panel

theorem · line 62

QuantumBlockEncoding.Robin.warmRobinPairCoordinateCircuit_image

Compiled Compiled

Lean checks the proposition indexed as “warm robin pair coordinate circuit image”; the hypotheses and conclusion in the code panel fix its exact scope. The two CX gates implement the non-free pair-coordinate reindex exactly.

theorem warmRobinPairCoordinateCircuit_image
    (index : WarmRobinSymmetrySystem) :
    warmRobinOriginalBitsValue
        (warmRobinPairCoordinateBasisEquiv (warmRobinPairBits index)) =
      (warmRobinPairSystemEquiv index).val := by

commit-pinned source · Verso Blueprint panel

theorem · line 70

QuantumBlockEncoding.Robin.warmRobinPairCoordinateCircuit_bijective

Compiled Compiled

Lean checks the proposition indexed as “warm robin pair coordinate circuit bijective”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPairCoordinateCircuit_bijective :
    Function.Bijective warmRobinPairCoordinateBasisEquiv :=
  warmRobinPairCoordinateBasisEquiv.bijective

/-- Lean-owned exact standard-RY angle for one loader branch. -/

commit-pinned source · Verso Blueprint panel

def · line 75

QuantumBlockEncoding.Robin.warmRobinFourSlotExactAngle

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin four slot exact angle”. Lean-owned exact standard-RY angle for one loader branch.

noncomputable def warmRobinFourSlotExactAngle
    (slot : Fin 4) (column : WarmRobinSymmetrySystem) : ExactAngle :=
  .twiceArccosRational
    (warmRobinSymmetryFourShiftAmplitude column.1 slot column.2)
    (by
      simpa [warmRobinFourSlotCoefficient] using
        warmRobinFourSlotCoefficient_abs_le_one slot column)

commit-pinned source · Verso Blueprint panel

theorem · line 83

QuantumBlockEncoding.Robin.warmRobinFourSlotExactAngle_eval

Compiled Compiled

Lean checks the proposition indexed as “warm robin four slot exact angle eval”; the hypotheses and conclusion in the code panel fix its exact scope.

@[simp] theorem warmRobinFourSlotExactAngle_eval
    (slot : Fin 4) (column : WarmRobinSymmetrySystem) :
    (warmRobinFourSlotExactAngle slot column).eval =
      2 * Real.arccos (warmRobinFourSlotCoefficient slot column) := by

commit-pinned source · Verso Blueprint panel

theorem · line 89

QuantumBlockEncoding.Robin.warmRobinFourSlotExactRy_eq_rotation

Compiled Compiled

Lean checks the proposition indexed as “warm robin four slot exact ry eq rotation”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinFourSlotExactRy_eq_rotation
    (slot : Fin 4) (column : WarmRobinSymmetrySystem) :
    standardRyMatrix (warmRobinFourSlotExactAngle slot column).eval =
      warmRobinFourSlotRotation slot column := by

commit-pinned source · Verso Blueprint panel