Quantum Computing Qiskit Connector For Quantum Backend Use In Realtime
Project description
qiskit-connector
⚛️Quantum Computing Qiskit Connector For Quantum Backend Use In Realtime
The Qiskit Connector transforms how quantum developers connect to IBM Quantum backends by automating every step of the authentication, plan detection, and backend selection process. Instead of writing extensive boilerplate setup code for each project, developers can now seamlessly authenticate, dynamically detect whether they are using an Open or Paid plan, and instantly access the optimal backend QPUresource which is least-busy using a single intuitive keyword: backend. The connector intelligently manages quantum computing plan environment variables and Qiskit runtime service configuration for sticky reusability of QPU resources from the backend, allowing quantum developers to streamline connection workflows and immediately focus on building, testing, and scaling quantum applications.
By eliminating manual configurations and connection complexities, Qiskit Connector empowers developers to reduce onboarding time, minimize human error, and accelerate quantum solution delivery. The tool is especially valuable for production-grade quantum development where agility, repeatability, and secure backend access are critical. Whether working in research environments, building enterprise-grade quantum solutions, or designing novel quantum algorithms, developers can now concentrate on high-value tasks without being slowed down by infrastructure setup challenges.
This package performs the following:
- Loads environment variables from config file (e.g.
.env) to configure your IBM Quantum account plan and make thebackendobject available within your quantum application code for reuse in real-time. - Detects your active plan (Open, Standard, Premium, Dedicated) and sets up the correct channel/instance.
- It has functions to save your account using its (
qiskit_smart), to verify QPU resources using (qpu_verify,is_verified), and retrieve a ready-to-use backend using (connector()). Presents you with the least-busy backend to run your quantum application code in realtime instead of you using simulators.
🐍 Software built and maintained by Dr. Jeffrey Chijioke-Uche, IBM Quantum Ambassador & Research Scientist.
📋 Features & API
These functions are available after you import the module:
from qiskit_connector import (
connector,
plan_type
)
-
connector()
Primary Integration Point: Seamlessly initializes your IBM Quantum account, selects the optimal QPU (or the first available device for open/paid plans), and emits a clear diagnostics summary. It returns a fully configuredbackendobject that you can immediately pass to Qiskit’s sampler, estimator, transpiler, or any circuit execution API—so you can focus on your quantum workflows rather than connection boilerplate. -
plan_type()
Subscription Plan Resolver: Automatically evaluates your environment configuration (via.envor system variables) to identify whether you’re operating under the Open Plan or a Paid Plan. This guarantees that your code consistently targets the correct IBM Quantum service tier, eliminating manual plan management and minimizing configuration drift.
🔧 Installation
pip install qiskit-connector
This will also pull in functionalities powered by:
qiskit>=2.0.0
and any other Qiskit dependencies. (Qiskit 1.x is not supported).
🗂️ Environment Variable Setup
🔐 Security Practice: Do not check-in .env or environment variable config file or any environment variable file into version control. Add it to your .gitignore. During development, create a file named .env at your project root. The connector will automatically load it.Use the template below as the content of your .env file or variable config file.
# GENERAL PURPOSE
#--------------------------------------------
IQP_API_TOKEN="<PROVIDE_YOUR_API_TOKEN>"
# Channels:
#------------------------------------------
OPEN_PLAN_CHANNEL="<PROVIDE_YOUR_CHANNEL>"
PAID_PLAN_CHANNEL="<PROVIDE PAID PLAN CHANNEL>" # After July 1, 2025, use ibm_cloud for Paid Plans.
# API Access:
#-------------------------------------
IQP_API_URL=<PROVIDE_YOUR_API_URL>
IQP_RUNTIME_API_URL=<PROVIDE_YOUR_RUNTIME_API_URL>
# Quantum Url:
# The API URL. Defaults to https://cloud.ibm.com (when channel=ibm_cloud)
# The API URL:Default to: https://auth.quantum.ibm.com/api (when channel=ibm_quantum)"
#-------------------------------------
CLOUD_API_URL=<PROVIDE_YOUR_CLOUD_API_URL>
QUANTUM_API_URL="<PROVIDE_YOUR_QUANTUM_API_URL>"
# Instance:
#-------------------------------------
OPEN_PLAN_INSTANCE="<PROVIDE_YOUR_OPEN_PLAN_INSTANCE>"
PAID_PLAN_INSTANCE="<PROVIDE_YOUR_PAID_PLAN_INSTANCE>"
# Default (Open plan) - free
#----------------------------------------
OPEN_PLAN_NAME="open"
# Optional (Upgrade) - Standard
#-----------------------------------------
STANDARD_PLAN_NAME="standard"
# Optional (Upgrade) - Premium
#-----------------------------------------
PREMIUM_PLAN_NAME="premium"
# Optional (Upgrade) - Dedicated
#-----------------------------------------
DEDICATED_PLAN_NAME="dedicated"
# Switch "on" one plan:
#--------------------------------------------------------------------------------------------------
OPEN_PLAN="on" # [Default & switched on]
STANDARD_PLAN="off"
PREMIUM_PLAN="off"
DEDICATED_PLAN="off"
⚠️ Only one of
OPEN_PLAN,STANDARD_PLAN,PREMIUM_PLAN, orDEDICATED_PLANmay be set to "on" at a time.
📖 Usage
Open Plan (default free tier) and Paid Plan
from qiskit_connector import connector, plan_type
from qiskit_ibm_runtime import SamplerV2 as Sampler, Session
# QPU execution mode by plan: Use of 'backend' object.
current = plan_type()
backend = connector()
if current == "Open Plan": # session not supported
sampler = Sampler(mode=backend)
print("Your Plan",current)
print("Least Busy QPU:", backend.name)
if isinstance(backend, IBMBackend):
print("This is a real & live QPU device")
else:
print("This is a simulator")
print(f"\n")
elif current == "Paid Plan": # supports session
with Session(backend=backend.name) as session:
sampler = Sampler(mode=session)
print("Your Plan",current)
print("Least Busy QPU:", backend.name)
if isinstance(backend, IBMBackend):
print("This is a real & live QPU device")
else:
print("This is a simulator")
print(f"\n")
else:
raise ValueError(f"Unknown plan type: {current}")
# --- do other things below with backend, quantum circuit, sampler & transpilation ------
Sample Output
[✓] Quantum environment variables loaded successfully!
--------------------------------------------------------------------------------
[⚛] Connected [Open Plan] -> Realtime Least Busy QPU: ibm_torino
--------------------------------------------------------------------------------
Available QPUs (Open Plan):
- ibm_brisbane
- ibm_sherbrooke
- ibm_torino
Default QPU: ibm_torino
Qubit Version: 2
Number Qubits: 133
--------------------------------------------------------------------------------
Your Plan: Open Plan
Least Busy QPU: ibm_torino
This is a real & live QPU device
#-------- remaining code below ------
📜 Citation & Reference
Qiskit Connector software invention was inspired by IBM Research on Quantum Computing Qiskit Software, which led the authoring, design, development of Qiskit Connector based on the persistent reearch studies and tests carried out by Dr. Jeffrey Chijioke-Uche(IBM Quantum Ambassador & Research Scientist) in the lab. This software is expected to continue to metamorphose with the help and work of existing quantum computing academic scholarly & peer reviewed research at different levels in the Information Technology industry. If you use Qiskit for Quantum computing, please cite this software as per the provided file.
📜 Software Author & Publisher
Dr. Jeffrey Chijioke-Uche
IBM Computer Scientist
IBM Quantum Ambassador & Research Scientist
IEEE Senior Member (Computational Intelligence)
📜 License
This project uses the Open-source
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_connector-2.1.2.tar.gz.
File metadata
- Download URL: qiskit_connector-2.1.2.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0c6f22bc4470c2023e59778228eedf427f56071c7dd370ec19305215340cc2c
|
|
| MD5 |
6db82cedf2383d09576ffc9aca669dc8
|
|
| BLAKE2b-256 |
ef1f5a75b2b7b255e335e1d3bfc559e07479c63854d03569e80aac6157993129
|
Provenance
The following attestation bundles were made for qiskit_connector-2.1.2.tar.gz:
Publisher:
workflow.yml on schijioke-uche/qiskit-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qiskit_connector-2.1.2.tar.gz -
Subject digest:
c0c6f22bc4470c2023e59778228eedf427f56071c7dd370ec19305215340cc2c - Sigstore transparency entry: 205697247
- Sigstore integration time:
-
Permalink:
schijioke-uche/qiskit-connector@d5d9f83fbb66db4142a2fb93eab802f7f9a5f97b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/schijioke-uche
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@d5d9f83fbb66db4142a2fb93eab802f7f9a5f97b -
Trigger Event:
push
-
Statement type:
File details
Details for the file qiskit_connector-2.1.2-py3-none-any.whl.
File metadata
- Download URL: qiskit_connector-2.1.2-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c89afcafc1170c7be6b6d0bd0a7ce659424b59f42227241d0dbbf85802f17d90
|
|
| MD5 |
4e738fd1eed16ab79508a285df35bf82
|
|
| BLAKE2b-256 |
fdc0428ae11af294db58ca72b546e48236ee2847123145d37dc6f6e2fc4c5250
|
Provenance
The following attestation bundles were made for qiskit_connector-2.1.2-py3-none-any.whl:
Publisher:
workflow.yml on schijioke-uche/qiskit-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qiskit_connector-2.1.2-py3-none-any.whl -
Subject digest:
c89afcafc1170c7be6b6d0bd0a7ce659424b59f42227241d0dbbf85802f17d90 - Sigstore transparency entry: 205697249
- Sigstore integration time:
-
Permalink:
schijioke-uche/qiskit-connector@d5d9f83fbb66db4142a2fb93eab802f7f9a5f97b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/schijioke-uche
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@d5d9f83fbb66db4142a2fb93eab802f7f9a5f97b -
Trigger Event:
push
-
Statement type: