From a2ce2770c43be18441320e29e4b14fe9810a1359 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 11:07:45 +0000 Subject: [PATCH] Add 100q QV circuit to PGO scripts (#12858) (#12861) To get better coverage for PGO, including more examples of two qubit synthesis, this commit adds a new PGO script to the benchmarks for running a 100q quantum volume circuit. This provides a different dense circuit than the other 100q circuits we were running. At the time the pgo scripts were added this was excluded because it was too slow at the time. However for the upcoming 1.2 release the transpile time has sped up a bit so this isn't such a concern anymore as the local transpile time is now ~2min which seems within the threshold for pgo time. (cherry picked from commit b75c2e093ebd4417906edfb159e557f3585b7c4e) Co-authored-by: Matthew Treinish --- tools/pgo_scripts/test_utility_scale.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/pgo_scripts/test_utility_scale.py b/tools/pgo_scripts/test_utility_scale.py index 0e9e94655692..4c2d44caac2a 100755 --- a/tools/pgo_scripts/test_utility_scale.py +++ b/tools/pgo_scripts/test_utility_scale.py @@ -18,6 +18,7 @@ from qiskit import qasm2 from qiskit.providers.fake_provider import GenericBackendV2 from qiskit.transpiler import CouplingMap +from qiskit.circuit.library import QuantumVolume from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager QASM_DIR = os.path.join( @@ -78,12 +79,11 @@ def _main(): strict=False, ) qaoa_circ.name = "qaoa_barabasi_albert_N100_3reps" - # Uncomment when this is fast enough to run during release builds - # qv_circ = QuantumVolume(100, seed=123456789) - # qv_circ.measure_all() - # qv_circ.name = "QV1267650600228229401496703205376" + qv_circ = QuantumVolume(100, seed=123456789) + qv_circ.measure_all() + qv_circ.name = "QV1267650600228229401496703205376" for pm in [cz_pm, ecr_pm, cx_pm]: - for circ in [qft_circ, square_heisenberg_circ, qaoa_circ]: + for circ in [qft_circ, square_heisenberg_circ, qaoa_circ, qv_circ]: print(f"Compiling: {circ.name}") pm.run(circ)