Skip to content

Commit

Permalink
rearranging transpile import
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmaelCesar committed Jun 27, 2024
1 parent 17da83e commit 95264ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/python/circuit/test_controlled_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from numpy import pi
from ddt import ddt, data, unpack

from qiskit import QuantumRegister, QuantumCircuit, QiskitError, transpile
from qiskit import QuantumRegister, QuantumCircuit, QiskitError
from qiskit.circuit import ControlledGate, Parameter, Gate
from qiskit.circuit.annotated_operation import AnnotatedOperation
from qiskit.circuit.singleton import SingletonControlledGate, _SingletonControlledGateOverrides
Expand Down Expand Up @@ -802,6 +802,7 @@ def test_mcx_gates(self, num_ctrl_qubits):
def test_mcxvchain_dirty_ancilla_cx_count(self, num_ctrl_qubits):
"""Test if cx count of the v-chain mcx with dirty ancilla
is less than upper bound."""
from qiskit import transpile

mcx_vchain = MCXVChain(num_ctrl_qubits, dirty_ancillas=True)
qc = QuantumCircuit(mcx_vchain.num_qubits)
Expand Down

0 comments on commit 95264ed

Please sign in to comment.