Search arXiv⌕ Search

arXiv subjects

Andrea Gasparini

Publications and source records attributed to Andrea Gasparini.

2 recordsLinked to original sources

Reading Orientation from Quantum Subspace Encodings

Grassmann manifold features represent a set of $k$ vectors by the subspace they span and are used in machine learning. On a quantum computer this subspace can be encoded as a $k$-fermion state whose amplitudes are its Plücker coordinates, prepared with $O(k^2 r)$ Givens rotations. The encoding loses the orientation of the subspace: two sets of vectors that span the same subspace with opposite orientation (for example $V$ and $-V$ for three vectors) give states that differ only by a global phase, so no measurement on a single state can tell them apart. We ask which readout procedures can recover the orientation and at what cost. We report four results. First, if the input distribution is symmetric under $V \mapsto -V$ and the label flips sign under it, any classifier using only inversion-even features has expected accuracy exactly $1/2$; these include all pairwise ($k=2$) Plücker coordinates and all measured probabilities. A 21-parameter Gr(3,r) linear model reaches 98.7% on a 3-body orientation task where pairwise models and 4-layer Transformers stay at chance. Second, we account for what each readout costs: full-histogram reconstruction scales with the feature dimension, and a coverage bound quantifies the regime (on Gr(5,32), 1024 shots leave total variation distance 0.94, 0.78 of it forced by the bound alone). Third, on IBM Kingston the circuit reproduces the exact distribution of squared Plücker coordinates with classical fidelity $0.973 \pm 0.004$ for Gr(3,8), with near-constant overhead across $k=2,3,4$ while classical enumeration grows combinatorially. Fourth, interference against a phase-fixed reference reads the signed overlap directly: the Hadamard test reaches 90-100% in simulation but 60% on hardware, limited by controlled-preparation depth, and a vacuum-reference circuit without controlled gates reaches 94.2% in noisy simulation; its hardware test is the open step.

quant-ph↗

Watching Quantum Models Think: Hilbert-Space Interpretability in Quantum Transformer Blocks

Deep learning models are powerful but opaque. As quantum machine learning matures, the field faces a defining choice: build quantum models that are equally opaque, or exploit the mathematical structure of quantum mechanics to make them inherently interpretable. We show that the latter is possible. By tracking quantum mutual information~(MI), entanglement entropy, and state fidelity through the layers of a Quantum Transformer Block (\qtb{}), a fully-coherent variational circuit with quantum analogues of both attention and feedforward, we gain direct insight into how the model processes information: which tokens it attends to, when correlations form, and why predictions fail. On four tasks with known dependency structure we show that (i)~learned MI matrices align with ground-truth task structure (AUC$\,{=}\,0.69$ on lookup), (ii)~disabling entangling gates collapses accuracy from 100\% to 15\% while MI$\to 0$, proving entanglement is the mechanism, (iii)~accuracy and MI co-evolve during training ($ρ\,{=}\,0.92$ on lookup), and (iv)~per-sample MI predicts prediction correctness on the conditional task with ROC AUC$\,{=}\,0.84$. All results are validated on IBM Quantum hardware (ibm\_kingston, Heron~r2): the circuit's reasoning process, from product state through structured entanglement, is directly observable on a superconducting processor. These proof-of-concept results, obtained on small synthetic tasks, suggest that the physics of quantum computation can provide intrinsic interpretability signals with no direct classical counterpart, motivating study of whether this advantage persists at scale.

quant-ph↗