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

Lean source module

QuantumBlockEncoding/Robin/PaperSevenPreparePrimitive.lean

19 explicit public declarations in source order.

Back to Library Explorer

def · line 13

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorHighMatrix

Compiled Compiled

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

noncomputable def warmRobinPaperSevenSelectorHighMatrix :
    _root_.Matrix (Fin 8) (Fin 8) ℂ :=
  _root_.Matrix.reindexAlgEquiv ℂ ℂ (primitiveBasisLEEquiv 3)
    (evalPrimitiveGate (.ry (2 : Fin 3) warmRobinUniformSevenHighAngle))

commit-pinned source · Verso Blueprint panel

def · line 18

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorMiddleMatrix

Compiled Compiled

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

noncomputable def warmRobinPaperSevenSelectorMiddleMatrix :
    _root_.Matrix (Fin 8) (Fin 8) ℂ :=
  _root_.Matrix.reindexAlgEquiv ℂ ℂ (primitiveBasisLEEquiv 3)
    (controlledRyBlockMatrix warmRobinUniformSevenMiddleWires 1
      warmRobinUniformSevenMiddleWires_ne_target
      warmRobinUniformSevenMiddleAngles)

commit-pinned source · Verso Blueprint panel

def · line 25

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorLowMatrix

Compiled Compiled

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

noncomputable def warmRobinPaperSevenSelectorLowMatrix :
    _root_.Matrix (Fin 8) (Fin 8) ℂ :=
  _root_.Matrix.reindexAlgEquiv ℂ ℂ (primitiveBasisLEEquiv 3)
    (controlledRyBlockMatrix warmRobinUniformSevenLowWires 0
      warmRobinUniformSevenLowWires_ne_target warmRobinUniformSevenLowAngles)

commit-pinned source · Verso Blueprint panel

theorem · line 31

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorStages_eq_prepare

Compiled Compiled

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

theorem warmRobinPaperSevenSelectorStages_eq_prepare :
    warmRobinPaperSevenSelectorLowMatrix *
        (warmRobinPaperSevenSelectorMiddleMatrix *
          warmRobinPaperSevenSelectorHighMatrix) =
      warmRobinPaperSevenSelectorPrepare := by

commit-pinned source · Verso Blueprint panel

def · line 43

QuantumBlockEncoding.Robin.warmRobinPaperSevenMiddlePhysicalWires

Compiled Compiled

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

def warmRobinPaperSevenMiddlePhysicalWires : Fin 1 → Fin 8 := fun _ => 5

commit-pinned source · Verso Blueprint panel

theorem · line 45

QuantumBlockEncoding.Robin.warmRobinPaperSevenMiddlePhysicalWires_ne_target

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven middle physical wires ne target”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenMiddlePhysicalWires_ne_target
    (wire : Fin 1) :
    warmRobinPaperSevenMiddlePhysicalWires wire ≠ (4 : Fin 8) := by

commit-pinned source · Verso Blueprint panel

def · line 51

QuantumBlockEncoding.Robin.warmRobinPaperSevenLowPhysicalWires

Compiled Compiled

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

def warmRobinPaperSevenLowPhysicalWires : Fin 2 → Fin 8
  | 0 => 4
  | _ => 5

commit-pinned source · Verso Blueprint panel

theorem · line 55

QuantumBlockEncoding.Robin.warmRobinPaperSevenLowPhysicalWires_ne_target

Compiled Compiled

Lean checks the proposition indexed as “warm robin paper seven low physical wires ne target”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinPaperSevenLowPhysicalWires_ne_target
    (wire : Fin 2) :
    warmRobinPaperSevenLowPhysicalWires wire ≠ (3 : Fin 8) := by

commit-pinned source · Verso Blueprint panel

theorem · line 60

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorBits_decode

Compiled Compiled

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

@[simp] theorem warmRobinPaperSevenSelectorBits_decode
    (bits : PrimitiveBasis 8) (wire : Fin 3) :
    primitiveBits3LE (warmRobinPaperSevenSelectorBits bits) wire =
      bits ⟨wire.val + 3, by omega⟩ := by

commit-pinned source · Verso Blueprint panel

theorem · line 66

QuantumBlockEncoding.Robin.warmRobinPaperSevenHighContext_iff

Compiled Compiled

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

theorem warmRobinPaperSevenHighContext_iff
    (row column : PrimitiveBasis 8) :
    (splitPrimitiveWire (5 : Fin 8) row).2 =
        (splitPrimitiveWire (5 : Fin 8) column).2 ↔
      row 6 = column 6 ∧
        (splitPrimitiveWire (2 : Fin 3)
            (primitiveBits3LE (warmRobinPaperSevenSelectorBits row))).2 =
          (splitPrimitiveWire (2 : Fin 3)
            (primitiveBits3LE (warmRobinPaperSevenSelectorBits column))).2 ∧
        (warmRobinPaperSevenSystemBits row, row 7) =
          (warmRobinPaperSevenSystemBits column, column 7) := by

commit-pinned source · Verso Blueprint panel

theorem · line 79

QuantumBlockEncoding.Robin.warmRobinPaperSevenHighPhysical_eval

Compiled Compiled

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

theorem warmRobinPaperSevenHighPhysical_eval :
    evalPrimitiveGate (.ry (5 : Fin 8) warmRobinUniformSevenHighAngle) =
      _root_.Matrix.reindexAlgEquiv ℂ ℂ
        warmRobinPaperSevenBitsEquiv.symm
        (ComplexLCU.selectorLift (coefficient := Fin 2)
          (system := WarmRobinPaperSevenFullSystem)
          warmRobinPaperSevenSelectorHighMatrix) := by

commit-pinned source · Verso Blueprint panel

theorem · line 113

QuantumBlockEncoding.Robin.warmRobinPaperSevenMiddleContext_iff

Compiled Compiled

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

theorem warmRobinPaperSevenMiddleContext_iff
    (row column : PrimitiveBasis 8) :
    (splitPrimitiveWire (4 : Fin 8) row).2 =
        (splitPrimitiveWire (4 : Fin 8) column).2 ↔
      row 6 = column 6 ∧
        (splitPrimitiveWire (1 : Fin 3)
            (primitiveBits3LE (warmRobinPaperSevenSelectorBits row))).2 =
          (splitPrimitiveWire (1 : Fin 3)
            (primitiveBits3LE (warmRobinPaperSevenSelectorBits column))).2 ∧
        (warmRobinPaperSevenSystemBits row, row 7) =
          (warmRobinPaperSevenSystemBits column, column 7) := by

commit-pinned source · Verso Blueprint panel

theorem · line 126

QuantumBlockEncoding.Robin.warmRobinPaperSevenMiddlePhysical_eval

Compiled Compiled

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

theorem warmRobinPaperSevenMiddlePhysical_eval :
    controlledRyBlockMatrix warmRobinPaperSevenMiddlePhysicalWires 4
        warmRobinPaperSevenMiddlePhysicalWires_ne_target
        warmRobinUniformSevenMiddleAngles =
      _root_.Matrix.reindexAlgEquiv ℂ ℂ
        warmRobinPaperSevenBitsEquiv.symm
        (ComplexLCU.selectorLift (coefficient := Fin 2)
          (system := WarmRobinPaperSevenFullSystem)
          warmRobinPaperSevenSelectorMiddleMatrix) := by

commit-pinned source · Verso Blueprint panel

theorem · line 173

QuantumBlockEncoding.Robin.warmRobinPaperSevenLowContext_iff

Compiled Compiled

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

theorem warmRobinPaperSevenLowContext_iff
    (row column : PrimitiveBasis 8) :
    (splitPrimitiveWire (3 : Fin 8) row).2 =
        (splitPrimitiveWire (3 : Fin 8) column).2 ↔
      row 6 = column 6 ∧
        (splitPrimitiveWire (0 : Fin 3)
            (primitiveBits3LE (warmRobinPaperSevenSelectorBits row))).2 =
          (splitPrimitiveWire (0 : Fin 3)
            (primitiveBits3LE (warmRobinPaperSevenSelectorBits column))).2 ∧
        (warmRobinPaperSevenSystemBits row, row 7) =
          (warmRobinPaperSevenSystemBits column, column 7) := by

commit-pinned source · Verso Blueprint panel

theorem · line 186

QuantumBlockEncoding.Robin.warmRobinPaperSevenLowPhysical_eval

Compiled Compiled

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

theorem warmRobinPaperSevenLowPhysical_eval :
    controlledRyBlockMatrix warmRobinPaperSevenLowPhysicalWires 3
        warmRobinPaperSevenLowPhysicalWires_ne_target
        warmRobinUniformSevenLowAngles =
      _root_.Matrix.reindexAlgEquiv ℂ ℂ
        warmRobinPaperSevenBitsEquiv.symm
        (ComplexLCU.selectorLift (coefficient := Fin 2)
          (system := WarmRobinPaperSevenFullSystem)
          warmRobinPaperSevenSelectorLowMatrix) := by

commit-pinned source · Verso Blueprint panel

def · line 233

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorPrepareCircuit

Compiled Compiled

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

noncomputable def warmRobinPaperSevenSelectorPrepareCircuit :
    PrimitiveCircuit 8 :=
  [.ry 5 warmRobinUniformSevenHighAngle] ++
    compileUniformlyControlledRy 1 warmRobinPaperSevenMiddlePhysicalWires 4
      warmRobinPaperSevenMiddlePhysicalWires_ne_target
      warmRobinUniformSevenMiddleAngles ++
    compileUniformlyControlledRy 2 warmRobinPaperSevenLowPhysicalWires 3
      warmRobinPaperSevenLowPhysicalWires_ne_target
      warmRobinUniformSevenLowAngles

commit-pinned source · Verso Blueprint panel

theorem · line 243

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorPrepareCircuit_eval

Compiled Compiled

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

theorem warmRobinPaperSevenSelectorPrepareCircuit_eval :
    evalPrimitiveCircuit warmRobinPaperSevenSelectorPrepareCircuit =
      _root_.Matrix.reindexAlgEquiv ℂ ℂ
        warmRobinPaperSevenBitsEquiv.symm
        (ComplexLCU.selectorLift (coefficient := Fin 2)
          (system := WarmRobinPaperSevenFullSystem)
          warmRobinPaperSevenSelectorPrepare) := by

commit-pinned source · Verso Blueprint panel

def · line 270

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorUnprepareCircuit

Compiled Compiled

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

noncomputable def warmRobinPaperSevenSelectorUnprepareCircuit : PrimitiveCircuit 8 :=
  warmRobinPaperSevenSelectorPrepareCircuit.reverse.map PrimitiveGate.dagger

commit-pinned source · Verso Blueprint panel

theorem · line 273

QuantumBlockEncoding.Robin.warmRobinPaperSevenSelectorUnprepareCircuit_eval

Compiled Compiled

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

theorem warmRobinPaperSevenSelectorUnprepareCircuit_eval :
    evalPrimitiveCircuit warmRobinPaperSevenSelectorUnprepareCircuit =
      _root_.Matrix.reindexAlgEquiv ℂ ℂ
        warmRobinPaperSevenBitsEquiv.symm
        (star (ComplexLCU.selectorLift (coefficient := Fin 2)
          (system := WarmRobinPaperSevenFullSystem)
          warmRobinPaperSevenSelectorPrepare)) := by

commit-pinned source · Verso Blueprint panel