← Quantum Store · Guides · Lessons · Glossary · Packages · About · Türkçe
IBM Quantum
Qiskit starter package
Official source: Qiskit/qiskit
Download ZIP (free)A getting-started guide for Qiskit, IBM's open-source quantum SDK, and a tested Bell state example that runs on the local simulator.
What is Qiskit?
Qiskit is the quantum software development kit developed by IBM and the most widely used open-source one in the world. It lets you build quantum circuits in Python, run them on local simulators and send them to IBM Quantum hardware.
When to use it
- If you are just starting quantum programming (Qiskit has the widest range of learning material).
- If you need to adapt circuits to different hardware (transpile).
- If you want to work on IBM's cloud quantum computers (needs the
qiskit-ibm-runtimepackage and a free IBM Quantum account).
The example in this package
bell_durumu.py entangles two qubits (Hadamard + CNOT) and measures them 1000
times with StatevectorSampler. You should see only 00 and 11: the two
qubits always give the same result.
Next steps
- Draw the circuit with
qc.draw("mpl")(pip install matplotlib). - Translate the circuit into a real device's gate set with
transpile(). - Open an IBM Quantum account and run on real hardware with
qiskit-ibm-runtime.
Installation and running
pip install qiskit
python bell_durumu.py
Tested with: qiskit 2.5.2, Python 3.12.
Official source
- Repository: Qiskit/qiskit
- Latest release: 2.5.2 — 13 August 2026
- Licence: Apache-2.0
- Stars: 7,886
- Default branch commit when the catalogue was built:
73ef434bb460(12 October 2026)
Links
Package contents
bell_durumu.pyREADME.en.md— this fileREADME.md— the same guide in TurkishLICENSE— the licence of the files in this packageKAYNAK.json— a machine-readable summary of the official sourceUPSTREAM-LICENSE.txt— the licence text of the official project
Licence
The example code and the guide in this package were written by the Quantum Store editors and are MIT licensed. The project it uses is subject to its own licence (Apache-2.0).
Quantum Store — https://hakanerdogan.com/en
Example code
The example shipped in the package, run and checked. Comments and printed messages are in Turkish; the code is the same in any language. Everything is in the ZIP.
bell_durumu.py
"""Qiskit ile Bell durumu: iki kübitlik devre kur, yerel simülatörde örnekle.
Çalıştırma:
pip install qiskit
python bell_durumu.py
"""
from qiskit import QuantumCircuit
from qiskit.primitives import StatevectorSampler
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()
print(qc.draw(output="text"))
result = StatevectorSampler(seed=7).run([qc], shots=1000).result()
counts = result[0].data.meas.get_counts()
print("Ölçüm sayıları:", dict(sorted(counts.items())))
# Bell durumunda iki kübit her zaman aynı sonucu verir: yalnızca 00 ve 11.
assert set(counts) <= {"00", "11"}, counts
print("Tamam: yalnızca 00 ve 11 ölçüldü (dolanıklık).")
Related concepts
- Qubit · A qubit is the basic unit of information in a quantum computer: measured, it gives 0 or 1, but before measurement it can be in a superposition of both.
- Superposition · Superposition is the quantum state in which a qubit, before it is measured, holds the states 0 and 1 together with definite amplitudes.
- Quantum measurement · Quantum measurement ends a qubit’s superposition and returns 0 or 1, with the result chosen at random according to the amplitudes.
- Quantum entanglement · Entanglement means several qubits share a joint quantum state, so their measurement results are correlated even when the qubits are far apart.
- Quantum interference · Quantum interference is the way amplitudes add up like waves, raising the probability of some results and cancelling others to zero.
- Quantum gate · A quantum gate is a basic operation that reversibly changes the state of one or more qubits; quantum programs are sequences of gates.
- Hadamard gate (H) · The Hadamard gate is a single-qubit quantum gate that turns a qubit in |0⟩ into an equal superposition of 0 and 1.
- CNOT gate · The CNOT (controlled-NOT) gate is a two-qubit gate that flips the target qubit when the control qubit is 1; it is the basic tool for creating entanglement.
- Quantum circuit · A quantum circuit is a quantum program made of gates applied to qubits in order, followed by measurements.
- Bell state · A Bell state is one of four special states in which two qubits are entangled in the simplest and strongest way; the best known gives only 00 or 11 when measured.
- Grover’s algorithm · Grover’s algorithm finds a marked item among N unsorted items in about √N steps, a quadratic speed-up over classical search.
- Shor’s algorithm · Shor’s algorithm factors large numbers exponentially faster than known classical methods, which is why it threatens RSA encryption.
- VQE (variational quantum eigensolver) · VQE is a hybrid quantum algorithm that approximates the ground-state energy of a molecule by tuning a parameterised quantum circuit in a classical optimisation loop.
- QAOA (quantum approximate optimisation algorithm) · QAOA combines parameterised quantum circuits with classical optimisation to search for approximate solutions to combinatorial optimisation problems such as MaxCut.
- Quantum teleportation · Quantum teleportation is a protocol that transfers the unknown state of a qubit to another qubit using a shared entangled pair and two classical bits.
- Qiskit · Qiskit is IBM’s open-source Python library for quantum programming; it lets you build circuits, run them on simulators and send them to IBM quantum computers.
- Bloch sphere · The Bloch sphere is a geometric picture that shows every state of a single qubit as a point on the surface of a sphere: the north pole is |0⟩, the south pole |1⟩.
- Deutsch–Jozsa algorithm · The Deutsch–Jozsa algorithm is one of the first quantum algorithms: it decides with certainty, in a single query, whether a function is constant or balanced.
- Bernstein–Vazirani algorithm · The Bernstein–Vazirani algorithm finds the hidden bit string s inside a function f(x) = s·x in a single query, instead of the n queries needed classically.
- Quantum Fourier transform (QFT) · The quantum Fourier transform (QFT) computes the discrete Fourier transform of the amplitudes with H and controlled-phase gates; it underlies period finding and phase estimation.
- Quantum phase estimation (QPE) · Quantum phase estimation (QPE) reads the phase a gate adds to one of its eigenstates as a binary number in counting qubits, using phase kickback and the inverse Fourier transform.