Skip to main content

devqubit adapter for IBM Qiskit Runtime

Project description

devqubit-qiskit-runtime

PyPI

IBM Qiskit Runtime adapter for devqubit — automatic circuit capture, transpilation management, calibration snapshots, and result logging for Runtime V2 primitives (SamplerV2, EstimatorV2).

[!IMPORTANT] This is an internal adapter package. Install via pip install "devqubit[qiskit-runtime]" and use the devqubit public API.

Installation

pip install "devqubit[qiskit-runtime]"

Usage

from qiskit import QuantumCircuit
from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2
from devqubit import track

qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()

service = QiskitRuntimeService()
backend = service.backend("ibm_brisbane")

with track(project="hardware-run") as run:
    sampler = run.wrap(SamplerV2(backend))
    job = sampler.run([(qc,)])
    result = job.result()

Transpilation Modes

# Auto (default): transpile to ISA only if needed
sampler = run.wrap(SamplerV2(backend))
job = sampler.run([qc], devqubit_transpilation_mode="auto")

# Manual: you handle transpilation yourself
job = sampler.run([isa_circuit], devqubit_transpilation_mode="manual")

What's Captured

Artifact Kind Role
QPY binary qiskit.qpy.circuits program
Transpiled QPY qiskit.qpy.circuits.transpiled program
OpenQASM 3 source.openqasm3 program
PUB structure qiskit_runtime.pubs.json program
Sampler counts result.counts.json result
Estimator values result.qiskit_runtime.estimator.json result
Backend properties device.qiskit_runtime.raw_properties.json device_raw
Execution envelope devqubit.envelope.json envelope

Documentation

See the Adapters guide for transpilation modes, performance tuning, and batch execution.

License

Apache 2.0

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

devqubit_qiskit_runtime-0.1.12.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

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

devqubit_qiskit_runtime-0.1.12-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file devqubit_qiskit_runtime-0.1.12.tar.gz.

File metadata

  • Download URL: devqubit_qiskit_runtime-0.1.12.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for devqubit_qiskit_runtime-0.1.12.tar.gz
Algorithm Hash digest
SHA256 8762ce61d4d2d1f70a9832aca87075eec822cf774a3b37cba4b011c9531f7843
MD5 60056dab1b0274bfcf1d25cbb329e0c5
BLAKE2b-256 551b5c4e70b9aa29d2495c3450f2c5d88f5d458084ccc5cecf0452be2d457794

See more details on using hashes here.

Provenance

The following attestation bundles were made for devqubit_qiskit_runtime-0.1.12.tar.gz:

Publisher: release.yaml on devqubit-labs/devqubit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devqubit_qiskit_runtime-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for devqubit_qiskit_runtime-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 63b44601fb8537a29f0d2d0c06a1c822571c63e87112bda17da72486c5f629a8
MD5 242ddea7c347af0e350064fa46da8e40
BLAKE2b-256 f91c6e36cf912c7fffd8149b3d1eb184c5b87ab4d7d9b90706779aa9e461c962

See more details on using hashes here.

Provenance

The following attestation bundles were made for devqubit_qiskit_runtime-0.1.12-py3-none-any.whl:

Publisher: release.yaml on devqubit-labs/devqubit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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