structure
definition
QuantumState
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Quantum.Measurement.WavefunctionCollapse on GitHub at line 60.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
-
Normalization -
A -
QuantumState -
for -
QuantumState -
A -
A -
normalized -
superposition -
QuantumState -
amplitude -
QuantumState -
amplitude -
Amplitude
used by
-
born_rule_jcost_connection -
expectedCost -
probability -
prob_nonneg -
prob_sum_one -
QuantumState -
CloningMachine -
innerProduct -
inner_product_self -
QuantumState -
QuantumState -
QuantumState -
unitary_preserves_norm -
born_rule_nonneg -
born_rule_normalized -
cost_probability_relation -
filter_map_weight_sum -
isDefinite -
isSuperposition -
measurement_postulate_derived -
measurementProbability -
outcomeCost -
probability_equals_weight -
stateToLedger
formal source
57
58/-- A quantum state in a finite-dimensional Hilbert space.
59 Represented as a function from basis states to amplitudes. -/
60structure QuantumState (n : ℕ) where
61 /-- Amplitude for each basis state. -/
62 amplitudes : Fin n → Amplitude
63 /-- Normalization: |ψ|² = 1. -/
64 normalized : (Finset.univ.sum fun i => ‖amplitudes i‖^2) = 1
65
66/-- A superposition state: multiple basis states with non-zero amplitude. -/
67def isSuperposition {n : ℕ} (ψ : QuantumState n) : Prop :=
68 ∃ i j : Fin n, i ≠ j ∧ ψ.amplitudes i ≠ 0 ∧ ψ.amplitudes j ≠ 0
69
70/-- A definite state: exactly one basis state has non-zero amplitude. -/
71def isDefinite {n : ℕ} (ψ : QuantumState n) : Prop :=
72 ∃! i : Fin n, ψ.amplitudes i ≠ 0
73
74/-! ## Ledger Model of Quantum States -/
75
76/-- A ledger branch represents a potential measurement outcome. -/
77structure LedgerBranch (n : ℕ) where
78 /-- The basis state index. -/
79 outcome : Fin n
80 /-- The amplitude (complex). -/
81 amplitude : Amplitude
82 /-- Recognition weight (proportional to |amplitude|²). -/
83 weight : ℝ
84 /-- Weight equals squared norm. -/
85 weight_eq : weight = ‖amplitude‖^2
86
87/-- An uncommitted ledger: a superposition of branches. -/
88structure UncommittedLedger (n : ℕ) where
89 /-- The branches (potential outcomes). -/
90 branches : List (LedgerBranch n)