Skip to content

Commit

Permalink
Fix twirling asv benchmark (#13421)
Browse files Browse the repository at this point in the history
* Fix twirling asv benchmark

Since #13331 merged the nightly asv runs have been failing. This is
because the asv twirling benchmark code was updated in that PR to use
the new twirling function instead of the embedded equivalent. However,
in the PR the name of that function was renamed from twirl_circuit to
pauli_twirl_2q_gates during the development of the feature. This rename
was missed in the asv benchmark, and as nothing executes the asv code in
CI this went uncaught until the asv nightly runs. This commit fixes this
oversight and updates the function name to the correct name so that the
asv benchmarks no longer fail on import.

* Update test/benchmarks/manipulate.py
  • Loading branch information
mtreinish authored Nov 11, 2024
1 parent d81abce commit 8bc4844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/benchmarks/manipulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os

from qiskit import QuantumCircuit
from qiskit.circuit import twirl_circuit
from qiskit.circuit import pauli_twirl_2q_gates
from qiskit.passmanager import PropertySet
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager
from .utils import multi_control_circuit
Expand All @@ -38,7 +38,7 @@ def time_DTC100_twirling(self):
"""Perform Pauli-twirling on a 100Q QV
circuit
"""
out = twirl_circuit(self.dtc_qc, seed=12345678942)
out = pauli_twirl_2q_gates(self.dtc_qc, seed=12345678942)
return out

def time_multi_control_decompose(self):
Expand Down

0 comments on commit 8bc4844

Please sign in to comment.