Skip to main content

The Qiskit module that provides tools and access to Superstaq.

Project description

qiskit-superstaq

qiskit-superstaq's default workflow

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.8 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.superstaq_provider.SuperstaqProvider(token)

backend = superstaq.get_backend("ibmq_brisbane_qpu")
qc = qiskit.QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure(0, 0)
qc.measure(1, 1)

print(qc)

# Submitting a circuit to IBM's Brisbane QPU. Providing the "dry-run" method parameter instructs Superstaq to simulate the circuit, and is available to free trial users.
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

qiskit_superstaq-0.5.32.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

qiskit_superstaq-0.5.32-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

Details for the file qiskit_superstaq-0.5.32.tar.gz.

File metadata

  • Download URL: qiskit_superstaq-0.5.32.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qiskit_superstaq-0.5.32.tar.gz
Algorithm Hash digest
SHA256 72c59b4636512e0424a27b39c379872625463dbd8bf02b6daab35944b2701640
MD5 d0a3166d16b6c3b4c9207ef0d4d425a7
BLAKE2b-256 11f1d553a175ee54950366e8a8d8742289daa3cb6ef11409bd2073fec26f4326

See more details on using hashes here.

File details

Details for the file qiskit_superstaq-0.5.32-py3-none-any.whl.

File metadata

File hashes

Hashes for qiskit_superstaq-0.5.32-py3-none-any.whl
Algorithm Hash digest
SHA256 fba48032b90942208afd2da14c080a8e5077257dc70b93431b666f0c30374187
MD5 b20a17aa6b08ed19cba73db7e72603f4
BLAKE2b-256 d39de0e0a8f8f5707db664d418df7dd95e17d5aeeb0a87e852e350dd3aa11c8d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page