Skip to content

Commit

Permalink
Add 100q QV circuit to PGO scripts (#12858) (#12861)
Browse files Browse the repository at this point in the history
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 b75c2e0)

Co-authored-by: Matthew Treinish <[email protected]>
  • Loading branch information
mergify[bot] and mtreinish authored Jul 31, 2024
1 parent e28aec4 commit a2ce277
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/pgo_scripts/test_utility_scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit a2ce277

Please sign in to comment.