{"chunks":["<p>Finding the ground-state energy of a molecule is one of the problems quantum computers are meant to be good at. The hard part is not running a circuit but choosing which one: the circuit has to be short enough to survive today&#39;s noisy hardware and expressive enough to reach the right state. For the Mitsubishi Chemical Group and AIST challenge at GIC 2026, our team, Ryoushi / Quantum Buddies, built H-cGQE to learn that choice from the molecule itself.</p>\n<p>This write-up covers what we built, what the results show, and where they are weaker than they first look.</p>\n<h2>From GQE to a conditioned GQE</h2>\n<p>The generative quantum eigensolver (GQE; Nakaji et al., arXiv:2401.09253) treats circuit design as sequence generation. A Transformer writes a circuit one operator at a time, choosing each from a fixed pool, and it is trained so that circuits with lower energy become more likely. It is the same trick a language model uses, with gates in place of words.</p>\n<p>Plain GQE learns one molecule at a time. H-cGQE, the Hamiltonian-conditioned GQE, feeds the molecule&#39;s Hamiltonian into the model, so one network can propose circuits for many molecules:</p>\n<ul>\n<li><strong>An encoder reads the Hamiltonian</strong> as its list of Pauli terms, embedded symbol by symbol.</li>\n<li><strong>A decoder picks operators</strong> from the pool, attending to that encoding at every step.</li>\n</ul>\n<p>The model is small, about 7.7 million parameters (256-dimensional, 8 heads, 4 layers). The operator pool is the set of UCCSD excitations, mapped to qubits with the Jordan–Wigner transform. It grows fast with molecule size: 192 entries for H₂ on 4 qubits, 1,408 for LiH on 12, 3,456 for BeH₂ on 14 and 11,088 for N₂ on 20.</p>\n<p>We also built a chemical graph neural network, three layers of message passing over the molecule&#39;s bonds. In the final code it conditions a CUDA-Q GQE baseline, not the H-cGQE model itself.</p>\n","<h2>Training it</h2>\n<p>Training has two stages.</p>\n<ol>\n<li><strong>Supervised fine-tuning</strong> for 300 epochs teaches the model what reasonable circuits look like.</li>\n<li><strong>Reinforcement learning</strong> with DAPO then runs for 24 epochs over 32 molecules, using asymmetric clipping (0.2 below, 0.28 above).</li>\n</ol>\n<p>The reward is mostly energy, with smaller terms for entanglement (0.1), circuit depth (0.05), commuting structure (0.05) and diversity (0.2). An optional quality-diversity mode, QD-GRPO, keeps a MAP-Elites archive: a 10 × 10 grid over entanglement density and circuit depth that holds the best circuit found in each cell. It adds a novelty bonus that decays from 1.0 to 0.1 over training, so early exploration gives way to exploitation.</p>\n<p>Each proposed circuit still needs its rotation angles. L-BFGS-B tunes them, cheaply during training (three to five iterations) and fully for evaluation (200 iterations, tolerance 10⁻¹⁰). Simulation ran on CUDA-Q, on NVIDIA L40S GPUs on the AIRE cluster and B200s through qBraid, behind a cache of more than 24,000 computed energies.</p>\n<h2>The headline result, read carefully</h2>\n<p>Our headline number is 0.63 mHa: the error of the H-cGQE circuit for methyl iodide in an 8-qubit active space (four electrons in four orbitals, STO-3G basis), measured against the exact answer in that space. Chemical accuracy is usually taken as 1.6 mHa, so on its face this clears the bar.</p>\n<p>Three details matter.</p>\n<ul>\n<li><strong>The circuit is one operator.</strong> The model&#39;s best proposal was a single <code>XYYX</code> term, and its optimised angle is 0.000244, almost zero.</li>\n<li><strong>The starting point was already close.</strong> Diagonalising the repository&#39;s own Hamiltonian for this problem shows that the Hartree–Fock state that every circuit starts from is only 1.04 mHa from exact, already inside chemical accuracy, and H-cGQE improves on it by 0.41 mHa.</li>\n<li><strong>The strongest comparison does not hold up.</strong> The CUDA-Q GQE baseline is recorded at 2.65 mHa, but its energy is <em>below</em> the exact ground state, which is impossible on the same Hamiltonian. That baseline must have run on a different problem, so the &quot;four times better&quot; comparison should not be made.</li>\n</ul>\n<p>The hardware-efficient VQE baseline, a generic circuit with no chemistry in it, was 987.8 mHa out. That gap is real, and it is the clearest evidence that chemically structured circuits matter.</p>\n<p>The 0.63 mHa run also came from a checkpoint trained with REINFORCE on energy rewards, not from the DAPO or QD-GRPO training described above.</p>\n<h2>Did reinforcement learning help?</h2>\n<p>Our own ablation says: mostly not yet. Compared with the supervised model alone, reinforcement learning took H₂ from 20.52 mHa to 0.15. On every larger molecule it made things slightly worse.</p>\n<div class=\"article__table\"><table>\n<thead>\n<tr>\n<th>Molecule</th>\n<th>After fine-tuning (mHa)</th>\n<th>After RL (mHa)</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>H₂</td>\n<td>20.52</td>\n<td>0.15</td>\n</tr>\n<tr>\n<td>LiH</td>\n<td>1.81</td>\n<td>1.85</td>\n</tr>\n<tr>\n<td>BeH₂</td>\n<td>33.77</td>\n<td>34.81</td>\n</tr>\n<tr>\n<td>Methyl iodide (12 orbitals)</td>\n<td>1.43</td>\n<td>1.59</td>\n</tr>\n<tr>\n<td>N₂</td>\n<td>126.56</td>\n<td>126.77</td>\n</tr>\n</tbody></table></div>\n<p>A later check suggests why. The cheap energy estimate used during training, with the angles held fixed, correlated only weakly with the fully optimised energy (Spearman 0.23, p = 0.42). The learning signal was mostly noise. Across the whole suite, 4 of the 17 molecules we benchmarked reached chemical accuracy in simulation.</p>\n<h2>On real quantum hardware</h2>\n<p>We ran selected circuits on hardware through qBraid.</p>\n<ul>\n<li><strong>IQM Emerald</strong> prepared the 8-qubit Hartree–Fock state with a fidelity of 0.875: 896 of 1,024 shots came back exactly right. That tests state preparation, not energy.</li>\n<li><strong>Rigetti Cepheus</strong> ran 12 molecules, several using sample-based quantum diagonalisation. The best error was 13.95 mHa, for methyl iodide on 12 qubits. None reached chemical accuracy.</li>\n<li><strong>IonQ</strong>: a job was submitted, but no result is recorded.</li>\n</ul>\n<p>We also tried fragmenting a molecule so a 12-qubit problem could be solved with circuits of at most 8 qubits. In simulation the fragmentation cost 11.3 mHa. On hardware the error was about a hartree.</p>\n<h2>What it adds up to</h2>\n<p>We built a working end-to-end system: a Hamiltonian-conditioned circuit generator, a training pipeline with quality-diversity reinforcement learning, GPU simulation at scale, and runs on two hardware vendors with a third submitted. The engineering held up, and structured circuits beat a generic ansatz by a wide margin.</p>\n<p>The learning did not yet pay off beyond the smallest molecule. The headline result sits on a problem where Hartree–Fock is already accurate, and the next step is clear. We need a training signal that tracks the converged energy, and an evaluation on molecules the model has never seen. That held-out test is still open.</p>\n"],"figures":[1],"words":1066,"minutes":5}