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

Lean source module

QuantumBlockEncoding/Robin/ResourceComparison.lean

13 explicit public declarations in source order.

Back to Library Explorer

inductive · line 9

QuantumBlockEncoding.Robin.RobinSemanticTier

Compiled Compiled

This type lists the allowed alternatives for “robin semantic tier”; its constructors are the cases that downstream code must handle.

inductive RobinSemanticTier where
  | paperTranscript
  | exactStructuralLCU
  | exactLogicalUnitary
  | exactPrimitiveCircuit
deriving Repr, DecidableEq

commit-pinned source · Verso Blueprint panel

structure · line 16

QuantumBlockEncoding.Robin.RobinResourceRow

Compiled Partial route

This record groups the data and proof fields needed for “robin resource row”. A proposition-valued field is a requirement until a constructor supplies it.

structure RobinResourceRow where
  identity : String
  tier : RobinSemanticTier
  convention : String
  cost : Option BlockEncodingCost
  blockedLeaf : Option String
deriving Repr, DecidableEq

commit-pinned source · Verso Blueprint panel

def · line 24

QuantumBlockEncoding.Robin.warmRobinPrimitiveConvention

Compiled Compiled

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

def warmRobinPrimitiveConvention : String :=
  "logical one-qubit rotations plus CNOT; SWAP is three CNOTs; all truth-table logic, PREPARE, SELECT, and uncompute are expanded"

/-- Historical paper-literal transcript row. This is not the certified fixed-N8
standard-RY realization, whose exact primitive cost is recorded in
`T3ResourceComparison.lean`. -/

commit-pinned source · Verso Blueprint panel

def · line 30

QuantumBlockEncoding.Robin.warmRobinPaperLiteralTranscriptResourceRow

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin paper literal transcript resource row”. Historical paper-literal transcript row.

def warmRobinPaperLiteralTranscriptResourceRow : RobinResourceRow where
  identity := "paper-literal-unexpanded-transcript"
  tier := .paperTranscript
  convention := warmRobinPrimitiveConvention
  cost := none
  blockedLeaf := some
    "arbitrary-n source interpretation and the paper-literal single-arccos convention remain open"

commit-pinned source · Verso Blueprint panel

def · line 38

QuantumBlockEncoding.Robin.warmRobinFiveShiftResourceRow

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin five shift resource row”.

def warmRobinFiveShiftResourceRow : RobinResourceRow where
  identity := "five-shift-weighted-permutation"
  tier := .exactStructuralLCU
  convention := warmRobinPrimitiveConvention
  cost := none
  blockedLeaf := some warmRobinHistoricalStructuralCandidateBlockedLeaf

commit-pinned source · Verso Blueprint panel

def · line 45

QuantumBlockEncoding.Robin.warmRobinHadamard8ResourceRow

Compiled Compiled

This definition gives the library's named construction or computation for “warm robin hadamard 8 resource row”.

def warmRobinHadamard8ResourceRow : RobinResourceRow where
  identity := "hadamard-eight-weighted-permutation"
  tier := .exactLogicalUnitary
  convention := warmRobinPrimitiveConvention
  cost := none
  blockedLeaf := none

commit-pinned source · Verso Blueprint panel

inductive · line 52

QuantumBlockEncoding.Robin.RobinComparison

Compiled Compiled

This type lists the allowed alternatives for “robin comparison”; its constructors are the cases that downstream code must handle.

inductive RobinComparison where
  | dominates
  | tied
  | incomparable
deriving Repr, DecidableEq

commit-pinned source · Verso Blueprint panel

def · line 58

QuantumBlockEncoding.Robin.compareRobinRows

Compiled Compiled

This definition gives the library's named construction or computation for “compare robin rows”.

noncomputable def compareRobinRows
    (candidate baseline : RobinResourceRow) : RobinComparison := by

commit-pinned source · Verso Blueprint panel

theorem · line 71

QuantumBlockEncoding.Robin.warmRobinFiveShift_paperTranscript_incomparable

Compiled Compiled

Lean checks the proposition indexed as “warm robin five shift paper transcript incomparable”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinFiveShift_paperTranscript_incomparable :
    compareRobinRows warmRobinFiveShiftResourceRow
        warmRobinPaperLiteralTranscriptResourceRow =
      .incomparable := by

commit-pinned source · Verso Blueprint panel

theorem · line 78

QuantumBlockEncoding.Robin.warmRobinHadamard8_paperTranscript_incomparable

Compiled Compiled

Lean checks the proposition indexed as “warm robin hadamard 8 paper transcript incomparable”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinHadamard8_paperTranscript_incomparable :
    compareRobinRows warmRobinHadamard8ResourceRow
        warmRobinPaperLiteralTranscriptResourceRow =
      .incomparable := by

commit-pinned source · Verso Blueprint panel

abbrev · line 87

QuantumBlockEncoding.Robin.warmRobinSourceResourceRow

Compiled Compiled

This abbreviation gives a shorter name to the type or expression used for “warm robin source resource row”. Historical compatibility alias; this row is generic and paper-literal, not the certified fixed-N8 standard-RY source realization.

abbrev warmRobinSourceResourceRow : RobinResourceRow :=
  warmRobinPaperLiteralTranscriptResourceRow

commit-pinned source · Verso Blueprint panel

theorem · line 90

QuantumBlockEncoding.Robin.warmRobinFiveShift_source_incomparable

Compiled Compiled

Lean checks the proposition indexed as “warm robin five shift source incomparable”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinFiveShift_source_incomparable :
    compareRobinRows warmRobinFiveShiftResourceRow warmRobinSourceResourceRow =
      .incomparable :=
  warmRobinFiveShift_paperTranscript_incomparable

commit-pinned source · Verso Blueprint panel

theorem · line 95

QuantumBlockEncoding.Robin.warmRobinHadamard8_source_incomparable

Compiled Compiled

Lean checks the proposition indexed as “warm robin hadamard 8 source incomparable”; the hypotheses and conclusion in the code panel fix its exact scope.

theorem warmRobinHadamard8_source_incomparable :
    compareRobinRows warmRobinHadamard8ResourceRow warmRobinSourceResourceRow =
      .incomparable :=
  warmRobinHadamard8_paperTranscript_incomparable

commit-pinned source · Verso Blueprint panel