Skip to content

Use quantum_volume() function in the PGO script#15931

Merged
mtreinish merged 2 commits intoQiskit:mainfrom
mtreinish:pgo-quantum_volume
Apr 3, 2026
Merged

Use quantum_volume() function in the PGO script#15931
mtreinish merged 2 commits intoQiskit:mainfrom
mtreinish:pgo-quantum_volume

Conversation

@mtreinish
Copy link
Copy Markdown
Member

Summary

This commit updates the pgo utility scale script to use the quantum_volume generator function instead of the legacy QuantumVolume class. When the script was originally written the generator function didn't exist yet so using the class made sense. But the QuantumVolume class has since been superseded by the rust generator function and also the class has also been deprecated pending removal in a future 3.0 release. Using the generator function now will avoid the deprecation warning during the pgo script run. It will also generate the circuits faster as the function is much faster and also provide profiling data for pgo about the quantum_volume function since it is written in rust.

Details and comments

This commit updates the pgo utility scale script to use the
quantum_volume generator function instead of the legacy QuantumVolume
class. When the script was originally written the generator function
didn't exist yet so using the class made sense. But the QuantumVolume
class has since been superseded by the rust generator function and also
the class has also been deprecated pending removal in a future 3.0
release. Using the generator function now will avoid the deprecation
warning during the pgo script run. It will also generate the circuits
faster as the function is much faster and also provide profiling data
for pgo about the quantum_volume function since it is written in rust.
@mtreinish mtreinish added the type: qa Issues and PRs that relate to testing and code quality label Apr 1, 2026
@mtreinish mtreinish requested a review from a team as a code owner April 1, 2026 01:40
@mtreinish mtreinish added Changelog: None Do not include in the GitHub Release changelog. ci: test wheels Run the wheel-build scripts as an additional CI run for this PR labels Apr 1, 2026
@qiskit-bot
Copy link
Copy Markdown
Collaborator

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

Comment thread tools/pgo_scripts/test_utility_scale.py
Copy link
Copy Markdown
Member

@alexanderivrii alexanderivrii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@alexanderivrii alexanderivrii added this pull request to the merge queue Apr 2, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 2, 2026
@mtreinish mtreinish added this pull request to the merge queue Apr 3, 2026
Merged via the queue into Qiskit:main with commit 737060f Apr 3, 2026
33 checks passed
@mtreinish mtreinish deleted the pgo-quantum_volume branch April 3, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog. ci: test wheels Run the wheel-build scripts as an additional CI run for this PR type: qa Issues and PRs that relate to testing and code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants