Reader routes: confirmed result · claim-to-evidence map · scope and nonclaims · research context · reproduce · release notes · cite
This repository studies a concrete ansatz-design question:
How should the interaction graph of a commuting quantum Boltzmann machine be chosen when both finite-budget trainability and exact Gibbs/q-sample preparation matter?
The central result comes from a prospectively frozen confirmation on 24 separately generated weighted sparse-Ising targets. The protocol, instance-seed commitment, graph rules, endpoints, and decision thresholds were fixed before that target ensemble was generated. This is an internal confirmation on unseen targets, not an external replication by another group.
At the same treewidth, interaction count, and parameter count, a target-supported spanning-tree representation trains substantially better than a generic chain. Selecting the tree by maximum absolute target-coupling weight improves further over a prespecified random target-supported tree. The full target graph remains the trainability ceiling, but requires a larger exact conditional-rotation description.
The work concerns a commuting, classically tractable sector of quantum Boltzmann machines. It provides exact geometry, controlled optimization evidence, and explicit q-sample preparation resources. It does not claim quantum speedup.
The prospectively frozen experiment uses:
instances: 24 connected weighted 3-regular Ising targets
variables: n = 16
parameter seeds: 0, 19, 42, 50, 101
recorded states: 200 per trajectory
confirmatory runs: 1,440
Success is defined by
where
| Optimizer and initialization | Native chain | Random target tree | Max-weight target tree | Full graph |
|---|---|---|---|---|
| Adam, random | 0.83% | 0.83% | 0.83% | 11.67% |
| Adam, target biased | 3.33% | 17.50% | 35.83% | 70.00% |
| Exact-natural oracle, target biased | 29.17% | 57.50% | 80.83% | 100.00% |
The three prespecified paired effects are:
| Comparison | Difference | Multiplicity-adjusted interval |
|---|---|---|
| Max-weight tree minus chain, target-biased Adam | +32.50 points | [+15.83, +50.83] |
| Max-weight tree minus random target tree, target-biased Adam | +18.33 points | [+6.67, +31.67] |
| Max-weight tree minus chain, exact natural gradient | +51.67 points | [+35.00, +66.67] |
Here, target biased means
The chain and both trees have:
treewidth: 1
pair terms: 15
parameters: 31
conditional angles: 31
CNOT upper count: 30
The full target graphs have treewidth between 3 and 5 and require 75–159 conditional angles, with median 131.
In source code and CSV files, problem_tree denotes the deterministic target-supported spanning tree obtained by maximizing edge weight MAXJ in the documentation.
- Primary effects
- Aggregate outcomes
- Preparation resources
- Scientific validation
- Experiment protocol
- Statistical analysis
- Claim-to-evidence map
An exhaustive supporting study asks whether a temperature-dependent tree chosen by retained target-state cooling power can improve upon the fixed maximum-weight heuristic. The geometry does reorder strongly, but the operational test fails: at the certification temperature, the cooling-power-optimal tree has a worse projected target-energy gap than both the best hot-optimal tree and the forward-KL-optimal tree on all ten reused development instances.
The study therefore records a boundary rather than extending the primary claim:
Retained target-state cooling power is not validated as an operational tree-selection objective on the tested corpus.
See temperature-dependent tree geometry. This later study does not modify the frozen primary comparison or the confirmed MAXJ benchmark result.
GitHub reads CITATION.cff and exposes a Cite this repository control on the repository page. Copy-ready citation text and BibTeX are also provided in CITATION.md.
Lin, R. (2026). Representation Alignment in Commuting Quantum Boltzmann Machines (Version 1.1.0) [Computer software]. GitHub. https://github.com/GoGoKo699/QBM-Representation-Alignment
For the complete archive, cite the published v1.1.0 release. For the primary confirmed MAXJ result in its original release state, cite v1.0.0. See CITATION.md for copy-ready formats and exact-result guidance.
For a Gibbs family
and a target decomposed as
the exact energy gradient is
where
Full alignment gives
See theory. For established prior work, the classical tree-approximation comparison, and the novelty boundary, see research context.
src/qbm_alignment/ shared implementation
experiments/sparse_ising_confirmation/ prospectively frozen primary experiment
studies/boundary_geometry/ same-state optimizer replay
studies/finite_sample_geometry/ sampled covariance geometry
studies/partial_alignment_geometry/ partial-representation study
studies/temperature_tree_geometry/ exhaustive graph-selection boundary study
data/certificate_tight_instances/ shared development instances
results/ canonical compact result tables
figures/ main public figures
docs/ theory, preparation, formats, limits
tests/ fast regression and identity tests
The supporting studies are not additional primary claims. They document mechanisms, estimator behavior, and tested boundaries that motivated or contextualize the prospectively frozen confirmation.
Python 3.10 or newer is recommended.
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[test]"Fast validation:
python scripts/validate_repository.py
python -m pytest -qComplete packaged-release validation:
make release-checkThe packaged-release command checks compilation, tests, local links, release metadata, packaged PASS records, and wheel construction. Recompute all scientific validation records with make validate-all, or run the primary validation directly with:
python experiments/sparse_ising_confirmation/scripts/validate_experiment.pyEach supporting study also provides its own scripts/validate_study.py.
Regenerate the primary confirmatory analysis:
bash scripts/refresh_analysis.shSupporting studies can be regenerated individually or together:
bash scripts/refresh_analysis.sh boundary
bash scripts/refresh_analysis.sh finite
bash scripts/refresh_analysis.sh partial
bash scripts/refresh_analysis.sh temperature
bash scripts/refresh_analysis.sh allThese commands use packaged data. Re-running the optimization trajectories or the exhaustive tree-temperature calculation is more expensive and is documented separately in reproducibility.
- Excited-boundary optimizer geometry
- Finite-sample geometry
- Partial-alignment geometry
- Temperature-dependent tree geometry
The repository does not establish:
- quantum advantage;
- favorable asymptotic scaling;
- a standard barren plateau;
- universal optimality of maximum-weight spanning trees;
- a validated cooling-power-based adaptive tree selector;
- hardware-efficient Gibbs-state preparation;
- universal superiority of natural gradient;
- frequent excited-boundary traps on arbitrary Ising ensembles.
See limitations.
Use CITATION.md or GitHub's Cite this repository control for copy-ready citation formats; machine-readable metadata are in CITATION.cff. Code, data, figures, and documentation are released under the BSD 3-Clause License. Bug reports, reproducibility questions, and focused contributions are welcome; see CONTRIBUTING.md.
