Skip to main content

Quantum Art Qiskit Provider for the QaaS platform

Project description

Quantum Art Qiskit Provider

Run Qiskit circuits on Quantum Art backends.

Requirements

  • Python 3.12 or newer
  • Qiskit 2.2.3 or newer
  • A Quantum Art API token

Installation

pip install qart-qiskit-provider

Quick Start

Open the Quantum Art dashboard at https://qaas.quantum-art.tech.

Set your API token once:

export QART_API_KEY=your-token

On Windows PowerShell:

$env:QART_API_KEY = "your-token"

Then submit a circuit:

from qiskit import QuantumCircuit
from qart.qiskit_provider import QartProvider

provider = QartProvider()
backend = provider.get_backend("Montage-E")

# Some example Circuit (Bell state).
circuit = QuantumCircuit(2, 2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure([0, 1], [0, 1])

# Execute the circuit asynchronously
job = backend.run(circuit, shots=100)

# Poll for job results
result = job.result()

print(result.get_counts())

You can also pass the token directly when needed:

provider = QartProvider(access_token="your-token")

Backends

List the backends available to your account:

print([backend.name for backend in provider.backends()])

Select a backend by name:

backend = provider.get_backend("Montage-E")

Job Options

backend.run() accepts these options:

Option Type Default Description
shots int 100 Number of executions
query_timeout number or None None Maximum seconds to wait for a result
parameters dict {} Backend execution options
metadata dict[str, str] {} Job labels or other annotations

When query_timeout is None, job.result() waits until the job finishes.

Example:

job = backend.run(
    circuit,
    shots=100,
    parameters={"ideal_simulation": True},
    metadata={"label": "calibration-run"},
)

parameters must be JSON-serializable. metadata keys and values must be strings.

Jobs

job = backend.run(circuit, shots=100)

print(job.job_id())
print(job.status())

result = job.result(timeout=120)
print(result.get_counts())

job.cancel()

You can also manage a job by ID:

job_id = job.job_id()

status = backend.status(job_id)
result = backend.result(job_id, query_timeout=120)
backend.cancel(job_id)

Logging

The SDK is quiet by default. To enable diagnostic logs:

import logging
from qart.qiskit_provider import configure_diagnostic_logging

configure_diagnostic_logging(logging.DEBUG)

Documentation

For more product guidance, see the Quantum Art documentation:

Troubleshooting

Authentication error: Check that QART_API_KEY is set correctly, or pass access_token directly to QartProvider.

Backend not found: Use provider.backends() to list the backend names available to your account.

Circuit too large: Reduce the number of qubits or reduce the number of shots.

Timeout: Increase query_timeout or check the job status later with backend.status(job_id).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qart_qiskit_provider-2.0.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qart_qiskit_provider-2.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file qart_qiskit_provider-2.0.1.tar.gz.

File metadata

  • Download URL: qart_qiskit_provider-2.0.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qart_qiskit_provider-2.0.1.tar.gz
Algorithm Hash digest
SHA256 b41a7c7369c4e7be25b3fba7f2f7e345da17e8c994c640c8e65e1a5297f4e675
MD5 cf13acd8ff4fd23a05e507eaaf76ed85
BLAKE2b-256 b6b8bf814ca5bcd13687911d432a73fca7df337028d25f2ca1e791f9c9fc7e31

See more details on using hashes here.

File details

Details for the file qart_qiskit_provider-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: qart_qiskit_provider-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qart_qiskit_provider-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aea7122f825b1df26200a7533acce19ceffaa7cb6c036684d47f8e24efa1e984
MD5 ef3e9d8df765652bb2879299d12fa88c
BLAKE2b-256 d500d1ed16ec68abee78c43f95e9f2609c172e08695d8e1ef05b77f4ab54bc63

See more details on using hashes here.

Supported by

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