User guide¶
- Running circuits:
RunResult, multi-QPU runs, seeds, choosing a local backend, errors, troubleshooting - Variational training:
trainparameters,TrainResult, cost functions, DE (classic, SHADE, L-SHADE), PSO, QNG, CMA-ES, Adam, SPSA, Rotosolve and external optimizers (Optuna, Nevergrad, pycma); starting points, final re-evaluation, callbacks, and a benchmark for choosing an optimizer - Quantum machine learning:
qml.trainwith Qiskit circuits, labels,SampleCostandqml.predict; native models withqml.Model: layers, readout, losses,fit, prediction, saving - Circuits and interchange:
polypus.Circuit, the Rust builder, angle expressions, composing, templates (QFT, Shor's order finding), factoring with Shor, drawing, OpenQASM 2 and 3, QIR - Memory budget:
POLYPUS_MEM_BUDGET, cgroup detection,InsufficientMemoryError - Performance: batched simulation, GIL-free binding, gate-parallel auto-calibration
For writing a new backend, see Writing a backend.