QuantumComputinglib learn · inspect · formalize
Checked on this commit 4,524 public declarations commit ab8f277c5704 Build record

Lean source module

QuantumBlockEncoding/StatePreparationBellRoute.lean

17 explicit public declarations in source order.

Back to Library Explorer

def · line 18

QuantumBlockEncoding.StatePreparationBenchmarks.bellRyAngle

Compiled Compiled

This definition gives the library's named construction or computation for “bell ry angle”.

noncomputable def bellRyAngle : ExactAngle :=
  .piRational (1 / 2)

commit-pinned source · Verso Blueprint panel

theorem · line 21

QuantumBlockEncoding.StatePreparationBenchmarks.bellRyAngle_eval

Compiled Compiled

Lean checks the proposition indexed as “bell ry angle eval”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem bellRyAngle_eval : bellRyAngle.eval = Real.pi / 2 := by

commit-pinned source · Verso Blueprint panel

theorem · line 26

QuantumBlockEncoding.StatePreparationBenchmarks.standardRyMatrix_bellRyAngle

Compiled Compiled

Lean checks the proposition indexed as “standard ry matrix bell ry angle”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem standardRyMatrix_bellRyAngle :
    standardRyMatrix bellRyAngle.eval = Robin.warmRobinUniformBitPrepare := by

commit-pinned source · Verso Blueprint panel

def · line 31

QuantumBlockEncoding.StatePreparationBenchmarks.bellControl

Compiled Compiled

This definition gives the library's named construction or computation for “bell control”.

def bellControl : Fin 2 := 0

commit-pinned source · Verso Blueprint panel

def · line 33

QuantumBlockEncoding.StatePreparationBenchmarks.bellTargetWire

Compiled Compiled

This definition gives the library's named construction or computation for “bell target wire”.

def bellTargetWire : Fin 2 := 1

commit-pinned source · Verso Blueprint panel

theorem · line 35

QuantumBlockEncoding.StatePreparationBenchmarks.bellControl_ne_target

Compiled Compiled

Lean checks the proposition indexed as “bell control ne target”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem bellControl_ne_target : bellControl ≠ bellTargetWire := by

commit-pinned source · Verso Blueprint panel

def · line 38

QuantumBlockEncoding.StatePreparationBenchmarks.bellRyCircuit

Compiled Compiled

This definition gives the library's named construction or computation for “bell ry circuit”.

noncomputable def bellRyCircuit : PrimitiveCircuit 2 :=
  [PrimitiveGate.ry (0 : Fin 2) bellRyAngle]

commit-pinned source · Verso Blueprint panel

def · line 41

QuantumBlockEncoding.StatePreparationBenchmarks.bellCxCircuit

Compiled Compiled

This definition gives the library's named construction or computation for “bell cx circuit”.

noncomputable def bellCxCircuit : PrimitiveCircuit 2 :=
  [PrimitiveGate.cx bellControl bellTargetWire bellControl_ne_target]

commit-pinned source · Verso Blueprint panel

def · line 44

QuantumBlockEncoding.StatePreparationBenchmarks.bellPrimitiveCircuit

Compiled Compiled

This definition gives the library's named construction or computation for “bell primitive circuit”.

noncomputable def bellPrimitiveCircuit : PrimitiveCircuit 2 :=
  bellRyCircuit ++ bellCxCircuit

commit-pinned source · Verso Blueprint panel

def · line 47

QuantumBlockEncoding.StatePreparationBenchmarks.bellAfterRy

Compiled Compiled

This definition gives the library's named construction or computation for “bell after ry”.

noncomputable def bellAfterRy : StateVector (gridSize 2) ℂ :=
  bellAmplitude • basisKet (gridSize 2) (0 : Fin 4) +
    bellAmplitude • basisKet (gridSize 2) (1 : Fin 4)

commit-pinned source · Verso Blueprint panel

theorem · line 51

QuantumBlockEncoding.StatePreparationBenchmarks.evalPrimitiveCircuitLE_singleton_cx_apply

Compiled Compiled

Lean checks the proposition indexed as “eval primitive circuit le singleton cx apply”; the hypotheses and conclusion in the code panel fix its exact scope.

@[simp] theorem evalPrimitiveCircuitLE_singleton_cx_apply
    {qubits : Nat} (control target : Fin qubits) (distinct : control ≠ target)
    (row column : Fin (gridSize qubits)) :
    evalPrimitiveCircuitLE ([PrimitiveGate.cx control target distinct]) row column =
      if primitiveLEBits qubits row =
          cxBasisEquiv control target distinct (primitiveLEBits qubits column)
      then 1 else 0 := by

commit-pinned source · Verso Blueprint panel

theorem · line 116

QuantumBlockEncoding.StatePreparationBenchmarks.bellRy_col_zero

Compiled Compiled

Lean checks the proposition indexed as “bell ry col zero”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem bellRy_col_zero :
    (evalPrimitiveCircuitLE bellRyCircuit).col (0 : Fin 4) = bellAfterRy := by

commit-pinned source · Verso Blueprint panel

theorem · line 133

QuantumBlockEncoding.StatePreparationBenchmarks.bellRy_prepares

Compiled Compiled

Lean checks the proposition indexed as “bell ry prepares”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem bellRy_prepares :
    applyVec (evalPrimitiveCircuitLE bellRyCircuit) (zeroKet 2) = bellAfterRy := by

commit-pinned source · Verso Blueprint panel

theorem · line 230

QuantumBlockEncoding.StatePreparationBenchmarks.bellCx_on_afterRy

Compiled Compiled

Lean checks the proposition indexed as “bell cx on after ry”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem bellCx_on_afterRy :
    applyVec (evalPrimitiveCircuitLE bellCxCircuit) bellAfterRy = bellState := by

commit-pinned source · Verso Blueprint panel

theorem · line 241

QuantumBlockEncoding.StatePreparationBenchmarks.bellPrimitive_prepares_target

Compiled Compiled

Lean checks the proposition indexed as “bell primitive prepares target”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem bellPrimitive_prepares_target :
    applyVec (evalPrimitiveCircuitLE bellPrimitiveCircuit) (zeroKet 2) =
      bellTarget.amplitudes := by

commit-pinned source · Verso Blueprint panel

def · line 254

QuantumBlockEncoding.StatePreparationBenchmarks.bellPrimitiveRoute

Compiled Compiled

This definition gives the library's named construction or computation for “bell primitive route”.

noncomputable def bellPrimitiveRoute : ExactPrimitiveStatePreparationRoute 2 where
  target := bellTarget
  circuit := bellPrimitiveCircuit
  normalizationProof := bellTarget_normalized
  preparationProof := bellPrimitive_prepares_target

commit-pinned source · Verso Blueprint panel

theorem · line 260

QuantumBlockEncoding.StatePreparationBenchmarks.bellVerified_cost

Compiled Compiled

Lean checks the proposition indexed as “bell verified cost”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem bellVerified_cost :
    bellPrimitiveRoute.cost =
      { auxiliaryQubits := 0, gateCount := 2, depth := 2, oracleCalls := 0 } := by

commit-pinned source · Verso Blueprint panel