Back to News
quantum-computing
MY FIRST IBM CODE!!
Reddit r/QuantumComputing (RSS)
Loading...
1 min read
0 likes
⚡ Quantum Brief
A Reddit user successfully executed their first quantum computing code using IBM’s Qiskit framework, demonstrating foundational quantum operations in a simple 2-qubit circuit.
The code applies a Hadamard gate to create superposition on qubit 0, followed by a CNOT gate to entangle it with qubit 1, producing a Bell state—a key benchmark for quantum correlation.
Simulation via Qiskit Aer yielded near-equal results for states |00⟩ and |11⟩ (~500 counts each over 1,000 shots), confirming expected entanglement behavior in an ideal noise-free environment.
This public post highlights growing accessibility of quantum programming tools, as hobbyists and beginners now experiment with core concepts like superposition and entanglement using open-source frameworks.
The submission underscores the educational value of cloud-based quantum simulators, enabling hands-on learning without requiring physical hardware access.

Summarize this article with:
from qiskit import QuantumCircuit from qiskit_aer import AerSimulator #Commnets are in my local lang (just avoid) # 1. 2 qubit ka circuit banao qc = QuantumCircuit(2) # 2. Gate lagao (Superposition and Entanglement) qc.h(0) # Hadamard gate qc.cx(0, 1) # CNOT gate qc.measure_all() # Result check karne ke liye # 3. Simulator pe run karo sim = AerSimulator() result = sim.run(qc, shots=1000).result() print(result.get_counts()) # Output aayega: {'00': ~500, '11': ~500} so this is my first code , just wanna push here lol... submitted by /u/Every-Panda-1017 [link] [comments]
Tags
quantum-programming
quantum-hardware
Source Information
Source: Reddit r/QuantumComputing (RSS)
