qbalance documentation

qbalance is a workflow toolkit for balancing quantum compilation, noise-suppression, and error-mitigation strategy choices over datasets of Qiskit circuits.

Documentation map

  • Getting started: installation, a minimal Python workflow, and the equivalent CLI flow.

  • Strategy configuration: StrategySpec fields, validation rules, default candidates, and JSON strategy files.

  • CLI guide: command-by-command reference for dataset, adjust, matrix, report, plugins, and compile.

  • Artifacts and reports: dataset layouts, balanced workload outputs, matrix JSON, and report generation.

  • API reference: every public name, with its validation rules, the formulas it computes, and runnable examples with their outputs.

Citation

If you use qbalance in work, please cite the project metadata in CITATION.cff. The accompanying paper is available on arXiv: QBalance: A Reproducible Multi-Objective Workflow for Quantum Compilation, Noise Suppression, and Error-Mitigation Strategy Selection (DOI: 10.48550/arXiv.2605.02966).

Core flow

CircuitDataset
  -> Workload.from_dataset(...) or Workload.from_path(...)
  -> set_target("fake:generic:5" | "aer:..." | custom plugin)
  -> adjust(...)
  -> BalancedWorkload.save(...) or BalancedWorkload.to_download(...)
  -> load_balanced_workload(...) for saved-directory reloads

For fixed cross-product experiments, use qbalance.benchmarking.run_matrix(...) or the qbalance matrix CLI command.