cs.LGFeb 24, 2026

Deep Sequence Modeling with Quantum Dynamics: Language as a Wave Function

Authors: Ahmed Nebli, Hadi Saadatdoorabi, Kevin Yam

Organizations: cAI Technology GmbH

Abstract

We introduce a sequence modeling framework in which the latent state is a complex-valued wave function evolving on a finite-dimensional Hilbert space under a learned, time-dependent Hamiltonian. Unlike standard recurrent architectures that rely on gating mechanisms to suppress competing hypotheses, our framework utilizes quantum interference: the Hamiltonian steers the phases of complex amplitudes so that conflicting interpretations cancel while compatible ones reinforce. The dynamics are strictly unitary, ensuring that the state norm is preserved exactly at every time step via a Cayley (Crank--Nicolson) discretization. Token probabilities are extracted using the Born rule, a quadratic measurement operator that couples magnitudes and relative phases. Our primary theoretical contribution is a separation theorem characterizing the representational advantage of this readout: we define a family of disambiguation tasks that a complex unitary model of dimension NN solves exactly, but which requires a state dimension of Ω(N2)Ω(N^2) for any real-valued orthogonal model equipped with a standard affine-softmax readout. This quadratic gap arises because the Born rule implicitly lifts the NN-dimensional state into the space of rank-one Hermitian matrices, accessing pairwise phase correlations that are inaccessible to linear projections. Finally, we derive a continuity equation for the latent probability mass, yielding conserved pairwise currents that serve as a built-in diagnostic for tracing information flow between dimensions.

Figures & tables

Explore similar work

CardsList
  1. Phase-Associative Memory: Sequence Modeling in Complex Hilbert Space

    Apr 6, 2026Gowrav Vishwakarma, Christopher J. AgostinoAutoregressive Language ModelingComplex-Valued Neural Networks

  2. QLAM: A Quantum Long-Attention Memory Approach to Long-Sequence Token Modeling

    May 13, 2026Hoang-Quan Nguyen, Sankalp Pandey, Khoa LuuMemory-Augmented Neural NetworksHybrid Quantum-Classical ML