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

Lean source module

QuantumBlockEncoding/PrimitiveDepthBound.lean

5 explicit public declarations in source order.

Back to Library Explorer

theorem · line 12

QuantumBlockEncoding.PrimitiveCircuit.nextWireDepth_le

Compiled Compiled

Lean checks the proposition indexed as “next wire depth le”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem nextWireDepth_le {qubits : Nat} (wireDepth : Fin qubits → Nat)
    (bound : Nat) (h : ∀ wire, wireDepth wire ≤ bound)
    (gate : PrimitiveGate qubits) (wire : Fin qubits) :
    nextWireDepth wireDepth gate wire ≤ bound + 1 := by

commit-pinned source · Verso Blueprint panel

theorem · line 23

QuantumBlockEncoding.PrimitiveCircuit.foldl_nextWireDepth_le

Compiled Compiled

Lean checks the proposition indexed as “foldl next wire depth le”; the hypotheses and conclusion in the code panel fix its exact scope. Each scheduled instruction raises the global upper bound by at most one, from any supplied initial wire-depth profile.

theorem foldl_nextWireDepth_le {qubits : Nat} (circuit : PrimitiveCircuit qubits)
    (wireDepth : Fin qubits → Nat) (bound : Nat)
    (h : ∀ wire, wireDepth wire ≤ bound) :
    ∀ wire, circuit.foldl nextWireDepth wireDepth wire ≤ bound + circuit.length := by

commit-pinned source · Verso Blueprint panel

theorem · line 35

QuantumBlockEncoding.PrimitiveCircuit.wireDepths_le_gateCount

Compiled Compiled

Lean checks the proposition indexed as “wire depths le gate count”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem wireDepths_le_gateCount {qubits : Nat} (circuit : PrimitiveCircuit qubits)
    (wire : Fin qubits) : circuit.wireDepths wire ≤ circuit.gateCount := by

commit-pinned source · Verso Blueprint panel

theorem · line 40

QuantumBlockEncoding.PrimitiveCircuit.depth_le_gateCount

Compiled Compiled

Lean checks the proposition indexed as “depth le gate count”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem depth_le_gateCount {qubits : Nat} (circuit : PrimitiveCircuit qubits) :
    circuit.depth ≤ circuit.gateCount :=
  Finset.sup_le (fun wire _ => wireDepths_le_gateCount circuit wire)

/-- The actual reported resource depth, including scheduling parallelism. -/

commit-pinned source · Verso Blueprint panel

theorem · line 45

QuantumBlockEncoding.PrimitiveCircuit.resource_depth_le_gateCount

Compiled Compiled

Lean checks the proposition indexed as “resource depth le gate count”; the hypotheses and conclusion in the code panel fix its exact scope. The actual reported resource depth, including scheduling parallelism.

theorem resource_depth_le_gateCount {qubits : Nat} (circuit : PrimitiveCircuit qubits) :
    circuit.resource.depth ≤ circuit.gateCount :=
  depth_le_gateCount circuit

commit-pinned source · Verso Blueprint panel