Skip to content

User guide

  • Running circuits: RunResult, multi-QPU runs, seeds, choosing a local backend, errors, troubleshooting
  • Variational training: train parameters, 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.train with Qiskit circuits, labels, SampleCost and qml.predict; native models with qml.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.