qBAS score

Application-level historical

Early hybrid quantum-classical benchmark scoring how well a trained shallow circuit samples the bars-and-stripes distribution, reported as an F1 score of precision and recall.

The qBAS score is one of the earliest application-level benchmarks for hybrid quantum-classical machines, introduced in 2018 by Benedetti, Perdomo-Ortiz and colleagues. Rather than isolating gates or qubits, it deliberately scores the whole hybrid stack (quantum device, circuit ansatz, and classical optimizer trained together) on a representative generative-modeling task: learning to sample bars-and-stripes (BAS) images.

How it works

A shallow parameterized circuit is trained by data-driven quantum circuit learning (DDQCL) to sample the uniform distribution over n-by-m bars-and-stripes images. The trained circuit is then measured within a fixed read budget (canonically N_reads = N_BAS × H(N_BAS), the coupon-collector expectation for the 2^n + 2^m − 2 valid patterns) and scored by F1: the harmonic mean of precision (the fraction of samples that are valid BAS patterns) and recall (the fraction of all BAS patterns observed). qBAS22 denotes the 2×2 instance on four qubits, first demonstrated on a University of Maryland trapped-ion device in the original paper.

Strengths and limitations

The paper bills qBAS as a hardware-independent metric, but since it scores the entire pipeline, ansatz and optimizer choices confound pure hardware comparisons, and the paper’s own supplementary material notes the cost-function optimization does not scale favorably with system size. Recall depends directly on the read budget, so scores computed with other read counts are not comparable. It is also often confused with the BAS dataset itself: many later papers train on BAS but report KL divergence or other losses rather than the qBAS F1 protocol. No official reference implementation was released.

Notable results

qBAS was a landmark early-NISQ benchmark, quickly extended to superconducting qubits and hybrid trapped-ion training. It is now of historical interest: no recent publications report new qBAS scores, evaluation of quantum generative models has shifted toward generalization-based metrics, and systematic quantum-versus-classical comparisons now run through suites like qml-benchmarks.

Key papers

  • qml-benchmarks