qiskit-superstaq
This package is used to access Superstaq via a Web API through Qiskit. Qiskit programmers can take advantage of the applications, pulse level optimizations, and write-once-target-all features of Superstaq with this package.
qiskit-superstaq is available on PyPI and can be installed with:
pip install qiskit-superstaq
Please note that Python version 3.9 or higher is required. See installation instructions here.
Creating and submitting a circuit through qiskit-superstaq
import qiskit
import qiskit_superstaq as qss
token = "Insert superstaq token that you received from https://superstaq.infleqtion.com"
superstaq = qss.SuperstaqProvider(token)
qc = qiskit.QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure(0, 0)
qc.measure(1, 1)
print(qc.draw())
# Submitting a circuit to IBM's Fez QPU. Providing the "dry-run" method parameter instructs Superstaq to simulate the circuit, and is available to free trial users.
backend = superstaq.get_backend("ibmq_fez_qpu")
job = backend.run(qc, shots=100, method="dry-run")
print(job.result().get_counts())
Metadata
Release files for qiskit-superstaq 0.5.70
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qiskit_superstaq-0.5.70.tar.gz | 62.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qiskit_superstaq-0.5.70-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 136.7 kB
Release files / qiskit_superstaq-0.5.70.tar.gz
| Download URL | qiskit_superstaq-0.5.70.tar.gz |
|---|---|
| Size | 62.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c43fbf8dfdc5899472bba8895ac6be8405435fb24b3ff44530ffbdc0bfda357
|
|
BLAKE2b-256 checksum How to use checksums |
4e04648bbf30d3a4aabfaaffcb31d84fc1410b49fe2ccd64b382dc290092a473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / qiskit_superstaq-0.5.70-py3-none-any.whl
| Download URL | qiskit_superstaq-0.5.70-py3-none-any.whl |
|---|---|
| Size | 73.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d622a694bccb6542abba90bc46a1c9a870967675d76bf2e88aec38b6b05a1ea
|
|
BLAKE2b-256 checksum How to use checksums |
8af12e480117ae9c00d05571c2835cdf61ccd9d7fdad94379edc21e9b939cb08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|