This release is a pre-release and may not be stable for production use.
IonQ SDK
The IonQ SDK provides tools for interacting with the IonQ platform, enabling users to manage backends, jobs, and quantum circuits programmatically.
Features
- Backend Management: Access and manage quantum computers.
- Job Management: Submit, manage, and retrieve quantum jobs.
- Quantum Circuit Design: Build and manipulate quantum circuits for execution (not a focus of this SDK).
Installation
This SDK requires Python 3.9 or later. Below are the steps to install and set it up using a virtual environment and Poetry.
Prerequisites
Ensure you have Python and Poetry installed. Poetry is a tool for dependency management and packaging in Python. To install Poetry, you can use the following command:
curl -sSL https://install.python-poetry.org | python3 -
Installing the SDK
To install the SDK, clone the repository, create a virtual environment, and install the dependencies using Poetry:
# Clone the repository
git clone https://github.com/ionq/python-ionq.git
cd python-ionq
# Create a virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
# Install dependencies using Poetry
pip install poetry
poetry install
# Optional: Install with extras for development
poetry install -E all
Quick Start
Here is a quick example to get you started with the IonQ SDK.
Initialize the SDK
First, set up your API key and initialize the Backend object:
from ionq import Backend
backend = Backend(api_key='your_api_key_here')
List Available Backends
You can list the available backends like this:
backends = backend.get_backends()
print(backends)
Create and Submit a Job
To create a circuit and submit a job:
from ionq import Circuit, Job
circuit = Circuit(2)
circuit.h(0)
circuit.cx(0, 1)
job = Job(api_key='your_api_key_here')
job_details = job.create_job(circuit=circuit)
print(job_details)
Retrieve Job Results
To check the results of a submitted job:
results = job.get_job_results(job_id='your_job_id_here')
print(results)
Documentation
For more detailed information and API specifications, please refer to the official documentation.
Contributing
Contributions are welcome! Please read our contributing guidelines to get started.
Metadata
Release files for ionq 0.0.0a15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ionq-0.0.0a15.tar.gz | 26.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ionq-0.0.0a15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.1 kB
Release files / ionq-0.0.0a15.tar.gz
| Download URL | ionq-0.0.0a15.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5466dd89878b5a8695f0ca44be40fb549dbf4bf6fe0b916c9291bcc5db88326
|
|
BLAKE2b-256 checksum How to use checksums |
e2a1959ffa7a07e25e3b78f4c855e3ea45010c503aea7cd0a12057aaeaccc596
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2025.
Transparency logRelease files / ionq-0.0.0a15-py3-none-any.whl
| Download URL | ionq-0.0.0a15-py3-none-any.whl |
|---|---|
| Size | 36.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b282a299fcec50e6970eed084d073c49901a3b8dacbf34c0335640513656109
|
|
BLAKE2b-256 checksum How to use checksums |
16f3ec31507951631ffae9a1a742aa1d5d63ca813a7e4ec7f92187b73fcc563f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2025.
Transparency logSecurity for ionq 0.0.0a15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ionq-0.0.0a15.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.