Skip to content

Commit

Permalink
Pass instance to QiskitRuntimeService (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Feb 5, 2024
1 parent 6504d86 commit 13a906f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
~~~~~~~~~

Unreleased
----------

* Fix: use correct ``instance`` with ``IBMQEmulatorBackend``.

0.48.0 (January 2024)
---------------------

Expand Down
4 changes: 3 additions & 1 deletion pytket/extensions/qiskit/backends/ibmq_emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def __init__(
token=token,
)

self._service = QiskitRuntimeService(channel="ibm_quantum", token=token)
self._service = QiskitRuntimeService(
channel="ibm_quantum", instance=instance, token=token
)
self._session = Session(service=self._service, backend="ibmq_qasm_simulator")

# Get noise model:
Expand Down

0 comments on commit 13a906f

Please sign in to comment.