Skip to content
🔷

IonQ

आधिकारिक Qiskit प्रोवाइडर के ज़रिए IonQ के ट्रैप्ड-आयन क्वांटम कंप्यूटरों तक सीधी पहुँच। मुफ़्त नॉइज़-रहित क्लाउड सिम्युलेटर, नॉइज़-मॉडल सिमुलेशन, और असली Aria व Forte QPU तक प्रति-शॉट भुगतान वाली पहुँच।

Qiskit प्रोवाइडरमुफ़्त सिम्युलेटरअसली QPUट्रैप्ड-आयन

IonQ SDK क्या है?

qiskit-ionq, IonQ का आधिकारिक Qiskit प्रोवाइडर है — यह आपको मानक Qiskit सिंटैक्स से सर्किट बनाने और उन्हें बिना किसी AWS या Azure खाते के सीधे IonQ के Quantum Cloud पर चलाने देता है। आदर्श (नॉइज़-रहित) सिम्युलेटर मुफ़्त है। एक नॉइज़-मॉडल सिम्युलेटर असली हार्डवेयर के व्यवहार की नकल करता है। असली QPU शॉट्स का बिल प्रति-शॉट लगाया जाता है।

आदर्श सिम्युलेटर
नॉइज़-रहित, क्लाउड-होस्टेड
मुफ़्त
नॉइज़ी सिम्युलेटर
असली हार्डवेयर नॉइज़ का मॉडल
मुफ़्त
असली QPU
Aria, Forte हार्डवेयर
प्रति-शॉट भुगतान

यदि आप पहले से Amazon Braket या Azure Quantum का उपयोग कर रहे हैं, तो उन प्लेटफ़ॉर्म के ज़रिए भी IonQ हार्डवेयर तक पहुँचा जा सकता है।

इंस्टॉलेशन और सेटअप

terminal
pip install qiskit-ionq

# Get a free API key at cloud.ionq.com (new accounts include trial credits)
export IONQ_API_KEY=your_api_key

मुफ़्त क्लाउड सिम्युलेटर

यह बैकएंड ionq_simulator IonQ द्वारा होस्ट किया गया एक नॉइज़-रहित स्टेटवेक्टर सिम्युलेटर है। यह मुफ़्त है और इसे बस एक API कुंजी चाहिए — कोई AWS या Azure खाता नहीं, कोई लोकल कंप्यूट नहीं।

ionq_simulator.py
from qiskit import QuantumCircuit
from qiskit_ionq import IonQProvider

provider = IonQProvider()  # reads IONQ_API_KEY from the environment

# Free, noiseless (ideal) simulator
backend = provider.get_backend("ionq_simulator")

# Build a Bell state circuit
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])

job = backend.run(qc, shots=1000)
print(job.get_counts())  # {'00': ~500, '11': ~500}

नॉइज़-मॉडल सिमुलेशन

असली हार्डवेयर पर शॉट्स खर्च करने से पहले, एक विशिष्ट IonQ सिस्टम की नकल करने वाले नॉइज़ मॉडल से वही सर्किट चलाएँ। यह मुफ़्त सिम्युलेटर बैकएंड पर ही रहता है, इसलिए आप बिना किसी लागत के एरर-मिटिगेशन रणनीतियों को सत्यापित कर सकते हैं।

ionq_noisy_sim.py
from qiskit import QuantumCircuit
from qiskit_ionq import IonQProvider

provider = IonQProvider()
backend = provider.get_backend("ionq_simulator")

qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])

# Model the noise profile of a real IonQ system on the free simulator
job = backend.run(qc, shots=1000, noise_model="aria-1")
print(job.get_counts())

असली QPU हार्डवेयर

IonQ के ट्रैप्ड-आयन सिस्टम उच्च गेट फ़िडेलिटी और ऑल-टू-ऑल क्यूबिट कनेक्टिविटी देते हैं, जिससे ग्रिड-कनेक्टेड हार्डवेयर की तुलना में सर्किट को कम SWAP-भारी रूटिंग की ज़रूरत होती है। असली QPU एक्सेस का बिल प्रति-शॉट लगाया जाता है — कोई बड़ा जॉब सबमिट करने से पहले अपना शॉट बजट और IonQ की मौजूदा कीमतें जाँच लें।

ionq_hardware.py
from qiskit import QuantumCircuit
from qiskit_ionq import IonQProvider

provider = IonQProvider()

# Aria: 25 algorithmic qubits, trapped-ion, all-to-all connectivity
aria = provider.get_backend("ionq_qpu.aria-1")

# Forte: newer generation, higher fidelity
forte = provider.get_backend("ionq_qpu.forte-1")

qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])

# Check current queue and calibration data before submitting
print(aria.calibration())

# Submit (real QPU shots are billed per-shot — check cloud.ionq.com/pricing)
job = aria.run(qc, shots=100)
print(job.get_counts())

Keep exploring

💡

Also available via HLQuantum

Want to run the same circuit on multiple backends without rewriting your code? HLQuantum abstracts this SDK (and 5 others) behind a single unified API.

python
import hlquantum as hlq

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

# One line to switch between any backend
result = hlq.run(qc, shots=1024)              # auto-detect
result = hlq.run(qc, shots=1024, backend="ionq")  # explicit