Classical Benchmarks¶
The benchmark helpers provide small classical baselines for QSVT-oriented workflows. They are designed for reproducible notebook studies and advantage screening, not for claiming end-to-end quantum speedups.
Available Baselines¶
The public API is in qsvt.benchmarks:
dense_eigendecomposition_benchmarkdense_linear_solve_benchmarkconjugate_gradient_benchmarkpolynomial_matrix_function_benchmarkspectral_matrix_function_benchmarkbenchmark_summary_tablewrite_benchmark_summary_csvplot_benchmark_timingsplot_qsvt_proxy_resources
Each benchmark report includes:
a
truth_contractmarking the report as a classical baseline, not a quantum runtime benchmark,classical baseline algorithm and problem type
matrix dimension
best and mean wall-clock time across repeated runs
benchmark_environmentmetadata including Python, NumPy, platform, timer, and a stability note for timing snapshotsresidual, condition-number, or matrix-function metadata where applicable
optional QSVT resource proxy metadata for polynomial workflows
Plot Abbreviations¶
Benchmark plots use compact legend labels:
abbreviation |
meaning |
|---|---|
DLS |
dense linear solve |
CGS |
conjugate gradient solve |
DSMF |
dense spectral matrix function |
PME |
polynomial matrix evaluation |
CLI Workflow¶
qsvt benchmark dense-solve \
--matrix "4,1;1,3" \
--rhs "1,2" \
--qsvt-poly "0,1" \
--output dense-solve-benchmark.json
qsvt benchmark cg-solve \
--matrix "4,1;1,3" \
--rhs "1,2" \
--tolerance 1e-10 \
--qsvt-poly "0,1"
qsvt benchmark polynomial \
--matrix "0.5,0;0,-0.25" \
--poly "0,0,1"
Benchmark Notebooks¶
Benchmark notebooks live in notebooks/benchmarks/:
notebook |
output |
|---|---|
|
dense and CG Poisson-system baselines |
|
spectral and polynomial matrix-function baselines |
|
dimension and inverse-degree benchmark sweeps |
|
timed baseline assumptions versus QSVT proxy fields |
The generated notebook outputs are published on the Benchmark notebook outputs page.
Committed Artifacts¶
The current benchmark notebooks write JSON reports under results/benchmarks/
and compact CSV tables under results/tables/. Algorithm comparison artifacts
that are not wall-clock benchmarks live under results/algorithms/ and share
the same compact table directory.
artifact |
contents |
|---|---|
dense direct solve baseline with QSVT proxy |
|
conjugate-gradient baseline with QSVT proxy |
|
dense spectral exponential baseline |
|
polynomial thermal matrix-function baseline |
|
polynomial filter matrix-function baseline |
|
combined dense/CG scaling sweep reports |
|
compact linear-system benchmark table |
|
compact matrix-function benchmark table |
|
compact scaling-sweep benchmark table |
|
generated plot manifest for benchmark notebooks |
|
dense, CG, and QSVT-style linear-system comparison report |
|
compact linear-system comparison rows |
Interpretation¶
The QSVT proxy fields summarize polynomial degree, phase-count proxy, signal-call proxy, and encoding width. They do not include block-encoding construction, state preparation, amplitude amplification, error correction, hardware compilation, or data-loading costs.
Use these reports to compare regimes and identify where a quantum implementation would need favorable block encoding, state preparation, and scaling assumptions.
For per-baseline assumptions, see Classical baseline details. For the proxy quantities attached to QSVT comparisons, see QSVT resource model.