Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ callbacks=cb_,_cb

# List of qualified module names which can have objects that can redefine
# builtins.
redefining-builtins-modules=six.moves,future.builtins,qiskit.tools.compiler
redefining-builtins-modules=six.moves,future.builtins


[CLASSES]
Expand Down
9 changes: 5 additions & 4 deletions test/ibmq/test_ibmq_client_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
from unittest import SkipTest, skip

from qiskit.circuit import ClassicalRegister, QuantumCircuit, QuantumRegister
from qiskit.compiler import assemble, transpile
from qiskit.providers.ibmq import IBMQ
from qiskit.providers.ibmq.api_v2 import IBMQClient
from qiskit.providers.ibmq.api_v2.exceptions import ApiError
from qiskit.test import QiskitTestCase, requires_qe_access
from qiskit.tools.compiler import compile


class TestIBMQClient(QiskitTestCase):
Expand Down Expand Up @@ -65,7 +65,8 @@ def test_run_job(self, qe_token, qe_url):
# Create a Qobj.
backend_name = 'ibmq_qasm_simulator'
backend = IBMQ.get_backend(backend_name)
qobj = compile(self.qc1, backend=backend, seed=self.seed, shots=1)
circuit = transpile(self.qc1, backend, seed_transpiler=self.seed)
qobj = assemble(circuit, backend, shots=1)

# Run the job through the IBMQClient directly.
api = backend._api
Expand Down Expand Up @@ -123,8 +124,8 @@ def test_get_job_includes(self, qe_token, qe_url):

backend_name = 'ibmq_qasm_simulator'
backend = IBMQ.get_backend(backend_name)
qobj = compile([self.qc1, self.qc2],
backend=backend, seed=self.seed, shots=1)
circuit = transpile(self.qc1, backend, seed_transpiler=self.seed)
qobj = assemble(circuit, backend, shots=1)

api = backend._api
job = api.run_job(qobj.as_dict(), backend_name)
Expand Down