Ascent Science SQA plugin
This package implements simulated quantum annealing (SQA) with the standard Suzuki--Trotter path-integral mapping, single-spin Metropolis moves, and optional imaginary-time world-line cluster updates. It is a classical simulation of a transverse-field Ising model; it does not use a quantum processor.
For development from this repository, install the core SDK and plugin in editable mode:
python -m pip install -e ./sdk-python -e ./sdk-plugins/sqa
Install the 0.2.0 release with
python -m pip install ascent-science-sqa==0.2.0.
import ascent
solver = ascent.quantum.SimulatedQuantumAnnealing(
trotter_slices=32,
sweeps=500,
beta=5.0,
gamma_start=5.0,
gamma_end=0.01,
num_reads=8,
update_mode="hybrid",
seed=42,
)
# Minimize x.T Q x for x in {0, 1}^n.
result = solver.solve_qubo([
[-2.0, 1.0],
[1.0, -2.0],
])
print(result.best_solution, result.best_value)
For an Ising model, solve_ising(J, fields=h) minimizes
s.T @ J @ s + h.T @ s + offset, with spins in {-1, +1}. For a canonical
problem object use solver.solve(QuboProblem(...)) or
solver.solve(IsingProblem(...)).
SQA is stochastic and does not prove optimality. Results therefore have status
FEASIBLE (or TIME_LIMIT if a supplied SolveOptions limit is reached).
update_mode="hybrid" combines local moves with Swendsen--Wang world-line
cluster moves. In addition to the monotone best-so-far history, metrics expose
instantaneous and mean replica energy, reduced effective action, magnetization,
slice alignment, per-sweep acceptance, and per-read best values. These traces
use Monte Carlo sweeps, not real quantum-hardware time.
Build a release
Use the same release flow as the ACO plugin:
sh scripts/build-release.sh
The wheel, source archive, and SHA256SUMS are written to dist/. If the
default Python does not provide a recent setuptools/build installation, select
another interpreter with ASCENT_SQA_BUILD_PYTHON=/path/to/python.
Metadata
Release files for ascent-science-sqa 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ascent_science_sqa-0.2.0.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ascent_science_sqa-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / ascent_science_sqa-0.2.0.tar.gz
| Download URL | ascent_science_sqa-0.2.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6def6c591ecb6a47f2eb56c9e45371d0460e678110b6b59abef1b90d76bd6621
|
|
BLAKE2b-256 checksum How to use checksums |
db4b8b70e27f69fe6f388e6b68121ee1a63e1630d10e0fb9bd7b68f91a72f5af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / ascent_science_sqa-0.2.0-py3-none-any.whl
| Download URL | ascent_science_sqa-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be577f577b7848658c55fe1f5d8d4b3f461af6993add25e98c4979064c3e5505
|
|
BLAKE2b-256 checksum How to use checksums |
cf4aa4c4e1fcfe83a59101bb69ae3275b61744e8935d04b2256822b7f5f828e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|