Why a neural network needs to hear the phase ✎

Original: "Learning Quantum Matter through Attention in Complex Space"
arXiv:2609.11792v1 · 2026-09-10 · arXiv non-exclusive · independent analysis · 1 min
A complex-valued neural network describes electrons in a magnetic field more accurately.

The sound of a violin has loudness and pitch. If you hear only the loudness, the melody is lost. In the same way, an electron in the quantum world is described by two parts: an amplitude (how strong the wave is) and a phase (where the wave sits). In moiré materials, where two layers are slightly twisted, electrons interact in complex ways, and a magnetic field adds even more detail. A conventional neural network trained to describe such systems often sees only the amplitude and misses the phase.

The new Complex Psiformer network is built to take both parts into account. Inside it, the hidden features are complex, and attention works with complex messages. It is as if a musician could hear not only the loudness but also the pitch of every note. Thanks to this, the network tunes the electron wave function more accurately.

In a system of 25 moiré cells, the complex version produced an energy 1.458 meV per electron lower than the real-valued one, at the same number of training steps.

The comparison showed that the complex network reaches a lower energy, which means it describes the real behavior of electrons better. This helps scientists model quantum materials and understand how current flows in such systems. Previously it was unclear whether complex numbers offer an advantage, and now it has become clear that they do.

In the 25-cell system, the average gain of Complex Psiformer over Real Psiformer is 1.458 meV per electron, roughly 14 times smaller than the room-temperature thermal energy of 25 meV. Such small energy differences are nevertheless reproducibly stable across five independent runs.

The idea of a neural network that learns to 'see' a quantum phase echoes the image of self-learning quantum computers in Greg Egan's novel Schild's Ladder, where states of matter are computed as variational approximations.

\hat{H} = \frac{1}{2}\sum_{i=1}^{N} \left( -i\nabla_i - A(r_i) \right)^2 + \sum_{i=1}^{N} V_M(r_i) + \sum_{i<j} v_{Ew}(r_i - r_j) + \frac{N}{2}\xi_M
Kinetic energy with minimal coupling, moiré lattice potential, periodic Coulomb interaction, and Madelung correction.
\Psi(\ldots, r_i + L_a, \ldots) = e^{i\Lambda_a(r_i)} \Psi(\ldots, r_i, \ldots)
Upon translation of an electron by a supercell vector, the wave function acquires a gauge phase.
j(r) = \left\langle \sum_{i=1}^{N} \delta_P(r - r_i) \left[ \nabla_i \phi_\theta(R) - A(r_i) \right] \right\rangle_{|\Psi_\theta|^2}
Mechanical current determined by the gradient of the wave function phase and the vector potential.