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.69
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.69.tar.gz | 62.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qiskit_superstaq-0.5.69-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 136.7 kB
Release files / qiskit_superstaq-0.5.69.tar.gz
| Download URL | qiskit_superstaq-0.5.69.tar.gz |
|---|---|
| Size | 62.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddc76a3e10a7ffdeefb01c27563d1e5e16cfb1b15d4e2f4681af2578215ab53f
|
|
BLAKE2b-256 checksum How to use checksums |
1da286d8a30e51c26c8a82c0ceb762ce5428ed3c2bddb83d8dcd13b711ba9c09
|
| 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.69-py3-none-any.whl
| Download URL | qiskit_superstaq-0.5.69-py3-none-any.whl |
|---|---|
| Size | 73.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
263e701fd66bda35a487a8f5d6e43b5656e2b5b93e8f63076a84558697196e56
|
|
BLAKE2b-256 checksum How to use checksums |
3c16eb96397ae314b91f6d01be2eee5f91f8257448ed59aaf31b2bb425703136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|