Quantum Wavefunction with Spectral Complexity measure
Project description
Wavefunction
Quantum Mechanical complex valued wavefunction with Spectral Complexity measure.
Install
pip install wavefunction
Introduction
Spectral Complexity measure for complex-valued wavefunctions.
Theory background (Meskanen 2026 — "The Wavefunction as Compression")
The central hypothesis is that the quantum wavefunction is the universe's data-compression codec. Internal observers — themselves composed of compressed structures — perceive their constituent degrees of freedom as wave-like because they are observing compressed information. The codec that produces this compression is the Fourier / spectral decomposition.
Spectral Complexity $C_s$
A wavefunction $\psi(x)$ can always be written as a superposition of spectral modes, each characterised by two attributes:
- frequency $\omega$ — the rate of oscillation, unbounded above zero
- phase $\phi$ — the offset of the oscillation, bounded in $[0, 2\pi)$
The spectral complexity $C_s(\psi)$ is the total continuous information cost needed to specify the set of modes that materially compose $\psi$:
$$ C_s(\psi) = \sum_i \left[ \frac{\omega_i}{\Delta \omega} + \phi_{\text{cost}}(\phi_i) \right] $$
Frequency cost (dominant term)
$\frac{\omega_i}{\Delta \omega}$ is the number of resolution steps $\Delta \omega$ needed to locate frequency $\omega_i$. It is unbounded, continuous, and grows linearly with frequency. This term dominates $C_s$ and is the reason the measure exponentially suppresses high-frequency (rough, chaotic) states.
The identification $\Delta \omega = \hbar \ln 2$ connects the minimum frequency resolution to Planck's constant.
Phase cost (subdominant, bounded)
Each phase $\phi_i \in [0, 2\pi)$ requires a finite amount of information to specify. The cost is global over all modes: it measures how much information is needed to distinguish the phases from one another.
With only two modes at phases 0 and $\pi$, very little is needed; with many modes at crowded, uneven phases, somewhat more is required. In practice this term is bounded by $\log_2(N_{\text{modes}})$ and is a second-order correction.
Amplitude and the fidelity engine
Amplitude does not appear as a separate encoding cost. Instead it determines which modes are included in the description via a power-ranked fidelity engine: modes are added in descending power order until the accumulated power reaches a target fraction of the total. Modes below this threshold are simply absent from the description — they are not part of the codec output and contribute zero complexity cost.
This correctly handles the case where many weak modes coexist with a few dominant ones: the dominant modes determine $C_s$; the weak modes are free.
Solomonoff suppression and the probability profile
Under Solomonoff-like induction the prior probability of a configuration is $P(\psi) \propto 2^{-C_s(\psi)}$. Because $C_s$ is a sum over independent modes, the probability factorises:
$$ P(\psi) \propto \prod_i 2^{-\omega_i / \Delta \omega} $$
Each mode is suppressed independently and exponentially by its frequency. The resulting probability profile is Boltzmann-like with inverse temperature $\beta = \ln(2)/\Delta \omega$:
$$ P(\text{mode } i \text{ present}) \propto \exp(-\ln(2) \cdot \omega_i / \Delta \omega) $$
Smooth, low-frequency, compressible states dominate the measure. Boltzmann brains, random fluctuations, and chaotic configurations are exponentially suppressed — not by fine-tuning, but because they require many high-frequency modes to describe.
The conjecture $C_s \propto S_{\text{Euclidean}}$
The central open conjecture (Meskanen 2026, §9) is that the minimum spectral complexity path through configuration space coincides with the minimum Euclidean action path of standard quantum gravity.
Note about peformance
Implementing anything computationally heavy with pure python makes no sense. This class should be implemented in 'C'.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wavefunction-0.0.3.tar.gz.
File metadata
- Download URL: wavefunction-0.0.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
210a667e4bd63afa3ec14eb58549ed45d2f44f4ef82d756fbfbc497e3567e5a6
|
|
| MD5 |
a6b9da1d2faa31e7a6045f197ea3ddfa
|
|
| BLAKE2b-256 |
e06e9eb8debe2bec4a35db3230c0fb5d6d1da6acb9dab789f487b54736d1083f
|
File details
Details for the file wavefunction-0.0.3-py3-none-any.whl.
File metadata
- Download URL: wavefunction-0.0.3-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cac7b45f9654c993b001c51485b61c9a06b3b381d6289c82339b2bb088bc316
|
|
| MD5 |
42698f6d87f14ce4fe010cddc9e1a93a
|
|
| BLAKE2b-256 |
c94904ddbb466ebef4a0256e06715209ac8105ef2887c4bc299cab0275140fa4
|