Quantum word embeddings

Can today's word embeddings survive the trip into a quantum computer? In Old Wine in New Bottles: Using Classical Word Embeddings in Gate-Based Quantum NLP Systems (Cavar, Parukola, Graves & Sparks, Indiana University, 2025), we showed that n-dimensional embeddings can be packed into just log2(n) qubits — or log2(n/2) by folding pairs of dimensions into complex amplitudes — and that word similarity survives the encoding nearly intact. This page runs that pipeline live in your browser, then lets you explore the actual experimental data.

The pipeline, live

Runs entirely in your browser — nothing is installed, and nothing you type leaves this page. The SWAP test is simulated exactly: the ancilla measures 1 with probability (1 − |⟨a|b⟩|²)/2, and real Bernoulli shots are drawn from it — the same statistics an ideal statevector simulator produces.

The research data

The paper's experiments: 666 noun pairs from SimLex-999, embedded with GPT and VoyageAI models, amplitude-encoded, and measured with SWAP tests on a quantum simulator. Every point below is one word pair from those runs.

Notes