Advanced techniques with Aqarios Constrained Quantum Optimizer
Use the following techniques to get the most out of the Aqarios Constrained Quantum Optimizer. For every option and its default value, see the API reference.
Trade solution quality against runtime
The number of chains (num_parallel), the total shot budget per chain (total_shots), and the number of QAOA repetitions (reps) are the primary controls:
- Increase
num_parallelto improve the probability of finding high-quality solutions. This raises the total shot budget. - Increase
total_shotsto run more iterations for each chain. Useshotsto set the number of shots for each iteration. - Increase
repsfor higher solution quality, at the cost of deeper circuits that can add noise. - Lower
approximation_degreeto reduce circuit depth through approximations, which can affect solution quality.
Control postprocessing and penalties
- Set
postprocessing_levelto an integer from0(off) to3(greedy local search, the default). Higher levels improve solution quality at the cost of classical compute time. - The optimizer derives penalty strengths automatically. If the results are infeasible, set
penalty_overrideto a larger value. - Use
betaandepsilonto control how strongly each new warm-start state concentrates on low-energy samples.
Reuse a session and tag jobs
- Set
use_sessiontoTrueto keep a dedicated connection to the QPU open across iterations, which can lower wall-clock time. - Set
seed_transpilerto make circuit synthesis and routing reproducible across runs. - Use
job_tagsto attach your own tags to every Qiskit Runtime job that the function submits.
Inspect the result
feasiblereports whether the solutions satisfy all constraints. Compareraw_energywithobjective_valueto diagnose constraint violations.metadata.circuit_metricsreports circuit sizes before and after transpilation.metadata.resource_usagebreaks down QPU and CPU time by phase.
Note
Aqarios: add tuning guidance from your experience, such as recommended option values for common problem sizes.