From 95264eda1c797eb36a173aa3ab408625ce90978a Mon Sep 17 00:00:00 2001 From: IsmaelCesar Date: Thu, 27 Jun 2024 17:00:09 -0300 Subject: [PATCH] rearranging transpile import --- test/python/circuit/test_controlled_gate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/python/circuit/test_controlled_gate.py b/test/python/circuit/test_controlled_gate.py index b95cdc7976c4..c845077d32dc 100644 --- a/test/python/circuit/test_controlled_gate.py +++ b/test/python/circuit/test_controlled_gate.py @@ -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 @@ -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)