Skip to main content

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'.

Metadata

Release files for wavefunction 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wavefunction 0.0.3
File Size Uploaded
wavefunction-0.0.3.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wavefunction 0.0.3
File Interpreter ABI Platform
wavefunction-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / wavefunction-0.0.3.tar.gz

Download URL wavefunction-0.0.3.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
210a667e4bd63afa3ec14eb58549ed45d2f44f4ef82d756fbfbc497e3567e5a6
BLAKE2b-256 checksum
How to use checksums
e06e9eb8debe2bec4a35db3230c0fb5d6d1da6acb9dab789f487b54736d1083f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / wavefunction-0.0.3-py3-none-any.whl

Download URL wavefunction-0.0.3-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cac7b45f9654c993b001c51485b61c9a06b3b381d6289c82339b2bb088bc316
BLAKE2b-256 checksum
How to use checksums
c94904ddbb466ebef4a0256e06715209ac8105ef2887c4bc299cab0275140fa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page