Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ewinston committed Jun 12, 2018
1 parent 92957af commit a30b48f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions qiskit/backends/ibmq/ibmqbackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from qiskit import QISKitError
from qiskit._util import _camel_case_to_snake_case
from qiskit.backends import BaseBackend
from qiskit.backends import JobStatus
from qiskit.backends.ibmq.ibmqjob import IBMQJob

logger = logging.getLogger(__name__)
Expand Down
5 changes: 5 additions & 0 deletions test/python/test_reordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import qiskit
from qiskit import QuantumJob
from qiskit.wrapper import register, available_backends, get_backend
from qiskit.wrapper import compile
from .common import requires_qe_access, QiskitTestCase, slow_test


Expand Down Expand Up @@ -49,6 +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)
q_job_real = QuantumJob(qobj_real, backend=real, preformatted=True,
shots=shots)
q_job_sim = QuantumJob(qobj_sim, backend=sim, preformatted=True,
Expand Down Expand Up @@ -94,6 +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)
q_job_real = QuantumJob(qobj_real, backend=real, preformatted=True,
shots=shots)
q_job_sim = QuantumJob(qobj_sim, backend=sim, preformatted=True,
Expand Down

0 comments on commit a30b48f

Please sign in to comment.