diff --git a/test/python/test_reordering.py b/test/python/test_reordering.py index 3e02833a3611..5b2ca743eb07 100644 --- a/test/python/test_reordering.py +++ b/test/python/test_reordering.py @@ -13,7 +13,7 @@ import qiskit from qiskit import QuantumJob from qiskit.wrapper import register, available_backends, get_backend -from qiskit.wrapper import compile +import qiskit._compiler from .common import requires_qe_access, QiskitTestCase, slow_test @@ -50,8 +50,8 @@ def test_basic_reordering(self, QE_TOKEN, QE_URL, hub=None, group=None, project= circ.measure(q[1], c[0]) shots = 2000 - qobj_real = compile(circ, real, shots=shots) - qobj_sim = compile(circ, sim, shots=shots) + qobj_real = qiskit._compiler.compile(circ, real, shots=shots) + qobj_sim = qiskit._compiler.compile(circ, sim, shots=shots) q_job_real = QuantumJob(qobj_real, backend=real, preformatted=True, shots=shots) q_job_sim = QuantumJob(qobj_sim, backend=sim, preformatted=True, @@ -97,8 +97,8 @@ def test_multi_register_reordering(self, QE_TOKEN, QE_URL, circ.measure(q2[0], c1[1]) shots = 4000 - qobj_real = compile(circ, real, shots=shots) - qobj_sim = compile(circ, sim, shots=shots) + qobj_real = qiskit._compiler.compile(circ, real, shots=shots) + qobj_sim = qiskit._compiler.compile(circ, sim, shots=shots) q_job_real = QuantumJob(qobj_real, backend=real, preformatted=True, shots=shots) q_job_sim = QuantumJob(qobj_sim, backend=sim, preformatted=True,