Data Re-Uploading
A single layer of angle encoding loads each feature once, and a one-qubit model so built can only represent very simple functions. Data re-uploading breaks that ceiling: it interleaves the data encoding with trainable rotations repeatedly, so even one qubit becomes a universal function approximator (Pérez-Salinas et al., 2020).
The idea
Instead of encode-once-then-train, alternate the two:
where is the data-encoding block (a Pauli rotation such as ) and each is an independent trainable block. The same feature is fed in times, once per layer. The repetition is what buys expressivity.
Why repetition helps: the Fourier view
Schuld, Sweke, and Meyer (2021) gave the clean explanation. A variational model with data entered through Pauli rotations computes a truncated Fourier series in the input:
The frequencies that the model can access are fixed by how many times and how the data is encoded — not by the trainable weights. Encoding only once gives a single nonzero frequency, so the model is essentially a sinusoid. Re-uploading times enlarges the accessible frequency spectrum, letting the trainable coefficients build richer functions. The trainable layers set the coefficients; the encoding repetition sets the frequencies.
A two-layer single-qubit model
Take the encoding generator to be and a trainable per layer. Two layers give
with the same uploaded in both blocks. The two distinct trainable angles act between and after the uploads. Already this reaches a two-frequency Fourier model — far beyond what a single upload can express.
Try it
Build the two-layer re-uploading state for input with trained angles and . Apply gates so the circuit realizes
i.e. (in call order) , , , . The grader checks the state vector. Note the same appears in both gates — that repetition is the whole point.
Sign in on the full site to ask questions and join the discussion.