🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsAnytype Announces Next-Generation Anytwo Platform(11.09.2026 um 21:27 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
⚠️ Malware / Trojaner / VirenVorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf(11.09.2026 um 09:35 Uhr)
🕵️ SicherheitslückenMicrosoft geht endlich eines der nervigsten Probleme von Windows 11 an(11.09.2026 um 11:58 Uhr)
💾 IT Security ToolsSysinternals Suite(11.09.2026 um 12:00 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsAnytype Announces Next-Generation Anytwo Platform(11.09.2026 um 21:27 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
⚠️ Malware / Trojaner / VirenVorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf(11.09.2026 um 09:35 Uhr)
🕵️ SicherheitslückenMicrosoft geht endlich eines der nervigsten Probleme von Windows 11 an(11.09.2026 um 11:58 Uhr)
💾 IT Security ToolsSysinternals Suite(11.09.2026 um 12:00 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 2 Min Lesezeit
0

Quantum computing basics in Python, without the hype

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Quantum computing is buried under hype, but the basics are concrete: a qubit is a vector, a gate is a matrix, and you can simulate small quantum circuits in plain Python with NumPy. You do not need a quantum computer to understand how one works.






A qubit is a vector



A classical bit is 0 or 1. A qubit is a combination of both, written as a 2-element vector of amplitudes:




CODE
import numpy as np
zero = np.array([1, 0]) # |0>
one = np.array([0, 1]) # |1>
# a superposition: equal parts |0> and |1>
plus = np.array([1, 1]) / np.sqrt(2)






The amplitudes are not probabilities directly; their squared magnitudes are. For plus, each squared amplitude is 1/2, so measuring gives 0 or 1 with equal chance. That is superposition: the qubit holds both possibilities until measured.






A gate is a matrix



Quantum gates are matrices that transform the qubit's vector. The Hadamard gate creates superposition; the X gate is a quantum NOT:




CODE
H = np.array([[1, 1], [1, -1]]) / np.sqrt(2)
X = np.array([[0, 1], [1, 0]])

H @ zero # -> the plus state, superposition from |0>
X @ zero # -> |1>, a bit flip






Applying a gate is just matrix-vector multiplication. A circuit is a sequence of these multiplications. That is the entire computational model, simulable with NumPy.






Measurement



Measurement collapses the superposition to a definite 0 or 1, with probability equal to the squared amplitude. Simulating it is sampling:




CODE
def measure(state):
probs = np.abs(state) ** 2
return np.random.choice(len(state), p=probs)






Run it many times on the plus state and you get roughly half 0s and half 1s. This is the part that feels strange: the outcome is genuinely probabilistic, and reading the qubit destroys the superposition.






Why it matters



With multiple qubits you get entanglement and a state space that grows exponentially (n qubits need 2^n amplitudes), which is the source of quantum computing's potential power for specific problems like search (Grover's algorithm) and factoring. Simulating small cases in Python is exactly how people build intuition before touching real hardware, and it shows you both the promise and the limits without the marketing.






Build it yourself



The physics with Python track covers quantum mechanics and simulation from scratch, building qubits, gates, measurement, and algorithms in NumPy, all graded in your browser. The first project is free.



Quantum computing is reachable. Simulate a few qubits and the ideas become concrete, hype removed.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Anytype Announces Next-Generation Anytwo Platform
1 Quelle
Windows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Quantum computing basics in Python, without the hype

Thematisch verwandte Begriffe: Quantum, computing, basics, Python · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...