The Qiskit module that provides tools and access to Superstaq.
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qiskit_superstaq-0.5.63.tar.gz.
File metadata
- Download URL: qiskit_superstaq-0.5.63.tar.gz
- Upload date:
- Size: 57.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb3b4d3491dc4b8e2553fdd81e990ff78aba94588c703a9008d4c9913b6fc486
|
|
| MD5 |
703328418dd9ab7119e2989f24ad4c93
|
|
| BLAKE2b-256 |
c8a5028cbaf5618f82ab25a7c804d5da67fba31fab3d1b70324bbb5166f02498
|
File details
Details for the file qiskit_superstaq-0.5.63-py3-none-any.whl.
File metadata
- Download URL: qiskit_superstaq-0.5.63-py3-none-any.whl
- Upload date:
- Size: 69.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1ba6bdc6af8252a9d5479549bda1c9397ee2cf6aca7d10ad28de6909bc53091
|
|
| MD5 |
52f9554575553e4d189496cbdc699a55
|
|
| BLAKE2b-256 |
cd736e365010eb05b95aec92e7f903c2ee7c73257732a9980add4b6ca4cd8ac6
|