Make a geometric cooling schedule with an optional colder tail.
For single-spin updates, estimate the start as ``ln 2 / Q_0.9(sigma)``,
where ``sigma_i = sqrt(h_i^2 + sum_j J_ij^2)``. The main interval ends
at ``ln 100 / (2 Q_0.1(m))``, floored at ten times the start. Here
``m_i`` is the smallest nonzero coefficient touching spin ``i``.
Spins with no such coefficient are excluded from the cold statistics.
The tail endpoint is ``ln(N_min / 0.01) / (2 m_min)``. The minimum
group of ``N_min`` spins is counted with relative tolerance 1e-9.
When the tail endpoint is colder than the main interval, the final
10 percent of sweeps cool geometrically to it, provided there is
room for at least two sweeps in each interval. A supplied final
endpoint sets the end of a single geometric interval and caps an
automatically estimated starting beta.
Automatic endpoints that exceed float range use the largest finite beta.
The sampler omits fields within cancellation roundoff when it converts
a BINARY model to Ising. For a model supplied in SPIN form, every
nonzero coefficient contributes, including residue from an earlier
conversion.
Args:
cxxgraph (Union[openjij.cxxjij.graph.Dense, openjij.cxxjij.graph.CSRSparse]): Ising graph, must be either `Dense` or `CSRSparse`.
beta_max (float, optional): final inverse temperature. Estimated if None.
beta_min (float, optional): initial inverse temperature. Estimated if None.
num_sweeps (int, optional): number of sweeps. Defaults to 1000.
seed (int, optional): unused. Kept for backward compatibility.
from_qubo (bool, optional): ignore local fields within the roundoff
of converting a binary model to Ising.
use_quantiles (bool, optional): use the single-spin schedule.
Cluster updates use the maximum RMS field and smallest
nonzero coefficient for a single geometric interval.
Returns:
List of cxxjij.utility.ClassicalSchedule and the beta range
[final beta, initial beta].
References _estimate_initial_beta(), _geometric_schedule_segment(), and _ising_beta_range_statistics().
Referenced by openjij.sampler.sa_sampler.SASampler.sample().