-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR is the beginning of having `options` be added at the top level. The inspiration for this change is #592. New way of calling should look like ```python import json import os import qiskit import qiskit_superstaq as qss with open(os.path.expanduser('~/.coldquanta/cq_auth.json'), 'r') as file: cq_token = json.load(file) superstaq = qss.superstaq_provider.SuperstaqProvider(token, cq_token=cq_token) backend = superstaq.get_backend("cq_hilbert_simulator") qc = qiskit.QuantumCircuit(1, 1) qc.h(0) qc.measure(0, 0) job = backend.run(qc, shots=1) print(job.result().get_counts()) ``` This PR makes is so that `get_job` also has acess to the `cq_token` that's passed in . Corresponding PR Infleqtion/server-superstaq#2663 --------- Co-authored-by: Emilio <epelaez@uchicago.edu> Co-authored-by: richrines1 <85512171+richrines1@users.noreply.github.com> Co-authored-by: Emilio Peláez <63567458+epelaaez@users.noreply.github.com> Co-authored-by: Emilio Pelaez <epelaaez@gmail.com>
- Loading branch information
1 parent
7158072
commit 3e891cc
Showing
4 changed files
with
83 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters