adiabaticproposal
qemcmc.sampler.adiabaticproposal ¶
AdiabaticProposal ¶
AdiabaticProposal(
model,
gamma,
alpha,
kappa,
delta_t=None,
coarse_graining=None,
coupling_weights=None,
)
Bases: Proposal
Quantum-enhanced Markov Chain Monte Carlo proposer with adiabatic dressing.
This class implements the adiabatic dressing proposal mechanism for quantum-enhanced MCMC (Ferguson & Wallden / Hsieh et al., arXiv:2603.28076). Candidate states are generated by simulating the quantum time evolution of a time-dependent transverse-field Hamiltonian:
``H(t) = h(t) * gamma * H_mixer + H_problem``
The schedule function h(t) ramps the transverse field up from 0 to 1 over ramp
duration alpha, holds it at 1 for plateau duration kappa, and ramps it down
from 1 to 0 over duration alpha (total duration 2 * alpha + kappa).
For long evolution times, adiabaticity preserves the ground/eigenstates, whereas for intermediate
times diabatic transitions induce proposals concentrated near the target energy levels.
The quantum proposal circuit is constructed using :class:AdiabaticCircuitMaker
and can optionally operate on coarse-grained subgroups of spins to
improve scalability.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
EnergyModel
|
Energy model defining the target Boltzmann distribution. |
required |
gamma
|
float | tuple[float, float]
|
Transverse field strength. If a tuple is provided, a value is sampled uniformly from the range [min, max] at each step. |
required |
alpha
|
float | tuple[float, float]
|
Duration of the linear adiabatic ramp. If a tuple is provided, a value is sampled uniformly from the range [min, max] at each step. |
required |
kappa
|
float | tuple[float, float]
|
Duration of the constant plateau. If a tuple is provided, a value is sampled uniformly from the range [min, max] at each step. |
required |
delta_t
|
float | None
|
Trotter step size for the approximate time evolution. The number of Trotter
steps is derived as |
None
|
coarse_graining
|
CoarseGraining | None
|
A coarse-graining scheme to define spin subgroups. If None, no coarse-graining is used. Defaults to None. |
None
|
coupling_weights
|
list[float | tuple[float, float]] | None
|
Weights for the coupling tensors. If a tuple is provided, a weight is sampled uniformly from the range. Defaults to ones. |
None
|
Notes
The proposal step simulates time evolution under a time-dependent transverse-field Hamiltonian and measures the resulting state to produce a candidate configuration. This proposal is then accepted or rejected using the Metropolis criterion to ensure convergence to the target Boltzmann distribution.
Source code in src/qemcmc/sampler/adiabaticproposal.py
update ¶
Perform sequential quantum updates across non-overlapping subgroups.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
current_state
|
str
|
Current state of the system as a bitstring. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Updated state of the system as a bitstring. |
Source code in src/qemcmc/sampler/adiabaticproposal.py
sample_hyperparams ¶
Sample hyperparameters (coupling weights, gamma, alpha, kappa) for the current proposal step.
Returns:
| Type | Description |
|---|---|
tuple[list[float], float, float, float]
|
(final_coupling_weights, gamma, alpha, kappa) for this proposal step. |