惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
J
Java Code Geeks
博客园_首页
Google Online Security Blog
Google Online Security Blog
Hugging Face - Blog
Hugging Face - Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
Intezer
P
Palo Alto Networks Blog
V
Vulnerabilities – Threatpost
雷峰网
雷峰网
O
OpenAI News
SecWiki News
SecWiki News
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
N
News | PayPal Newsroom
Project Zero
Project Zero
Forbes - Security
Forbes - Security
IT之家
IT之家
A
Arctic Wolf
WordPress大学
WordPress大学
Jina AI
Jina AI
T
Tor Project blog
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
博客园 - 聂微东
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy International News Feed
Cloudbric
Cloudbric
G
GRAHAM CLULEY
博客园 - 叶小钗
H
Hacker News: Front Page
腾讯CDC
量子位
Help Net Security
Help Net Security
人人都是产品经理
人人都是产品经理
C
Cyber Attacks, Cyber Crime and Cyber Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
爱范儿
爱范儿
L
Lohrmann on Cybersecurity
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recorded Future
Recorded Future
C
CERT Recently Published Vulnerability Notes

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Why Quantum Computers Are Faster — the Answer Isn't Parallelism
Mathias Leon · 2026-04-20 · via DEV Community

A qubit isn't a bit with randomness — it's a rotating arrow on a sphere. A quantum gate is a rotation of that arrow. A quantum algorithm is one global transformation that reshapes the whole solution landscape.

The headline everyone has read in a press release — "quantum computers try all possibilities in parallel" — is dangerously misleading. A measurement would just return one random answer anyway. So "parallel" on its own is useless. The actual trick is subtler, more beautiful, and the point of this post.

This is a condensed, tutorial-style version of a longer, interactive piece on ki-mathias.de — the full version has four interactive React demos (Bloch sphere, circuit builder, measurement simulator, Qiskit playground) and a 9-minute companion video. Everything here is runnable in Qiskit 1.x. The quantum-computing repo contains the notebooks.


1. A qubit, for real

At the hardware level, a qubit is always a two-level quantum system. There are several competing technologies in 2026 — superconducting circuits (Google, IBM), trapped ions (IonQ), neutral atoms (QuEra), photons (PsiQuantum) — but let's pick one and stay concrete: the superconducting qubit, because that's where most of today's qubits live.

A superconducting qubit is essentially a quantized electrical oscillator. You take an LC circuit — a coil and a capacitor, just like in an old radio — cool it to about 10 millikelvin (colder than intergalactic space), and add a special component called a Josephson junction. This junction is two superconductors separated by a thin insulating barrier. Brian Josephson predicted in 1962 that bound electron pairs (Cooper pairs) can quantum-mechanically tunnel through this barrier — Nobel Prize 1973.

The Josephson junction bends the energy ladder. Without it, you'd get a harmonic oscillator with equally spaced levels — a microwave pulse tuned to excite |0⟩→|1⟩ would also kick |1⟩→|2⟩. With it, the rungs get closer together as you go up, and you can address the lowest transition selectively. That selectivity is what turns a quantum oscillator into a usable qubit.

The two lowest levels, |0⟩ and |1⟩, form the qubit. Their energy gap corresponds to a microwave frequency around 5 GHz — that's the frequency of the pulses we'll use to manipulate the qubit.


2. Amplitudes, not probabilities

Every quantum state is a superposition

|ψ⟩ = α |0⟩ + β |1⟩

Enter fullscreen mode Exit fullscreen mode

where α and β are complex numbers — amplitudes. The Born rule (Max Born, 1926, Nobel 1954) says the probability of measuring state |0⟩ is |α|² and |1⟩ is |β|², with |α|² + |β|² = 1.

Crucially, amplitudes can be negative or complex — unlike probabilities, they can cancel each other out. That's interference, and it's the whole point.

A Hadamard gate H turns |0⟩ into a perfectly balanced superposition:

H |0⟩ = (1/√2) (|0⟩ + |1⟩)

Enter fullscreen mode Exit fullscreen mode

Here's the proof that amplitudes aren't classical probabilities: apply H twice to |0⟩. Each individual H puts you in a 50/50 superposition. A classical coin would still give 50/50 after a second flip. The qubit? Goes back to |0⟩. Deterministic.

Why? Because two H matrices multiply to the identity. Physically: the amplitude for |0⟩ coming from the |0⟩-branch adds constructively with the one from the |1⟩-branch; the amplitudes for |1⟩ cancel. Exactly the kind of destructive cancellation classical probabilities can't do.


3. The whole secret, one sentence

Before we look at an algorithm, the mental model has to shift.

Old picture: quantum computers try all possibilities in parallel. Wrong.

New picture: a quantum algorithm is one global linear transformation on a 2^n-amplitude vector, carefully designed so that wrong answers destructively cancel and the right one constructively amplifies.

Classical searches. Quantum shapes.

This isn't just poetry. Every quantum gate, expressed as a matrix, is 2^n × 2^n — it acts on the entire state vector at once. Ten qubits → a 1024 × 1024 matrix per gate. This is not parallel trial-and-error; it's a global transformation of a high-dimensional probability field.

If you've touched linear algebra before, there's an even tighter way to say this: a quantum algorithm is a chain of unitary operations whose eigenstates align with the answer we're looking for. What starts spread across all directions gets pushed onto the right axis with each iteration. Quantum computation is eigenstate amplification.


4. Grover, step by step

The cleanest place to see this in action is Grover's algorithm (1996), which finds a marked entry in an unsorted database of size N in O(√N) steps versus O(N) classically. Let's walk through N = 8 — three qubits.

Setup. Three Hadamards on three qubits create the equal superposition: eight basis states, each with amplitude 1/√8. Measurement here is just an 8-sided die. Useless.

Step 1 — The oracle. A unitary circuit that recognizes the marked state (say, |101⟩) and flips its sign. After the oracle, |101⟩ has amplitude -1/√8, the other seven stay at +1/√8. Measuring still gives equal probability — the squared magnitudes are the same. But the phase information is hiding in the sign.

Step 2 — Diffusion. Geometrically, this is a single operation: reflect every amplitude about the mean of all amplitudes. The mean is about 0.24 before reflection (seven positives dominate over one negative). After reflection, the marked state jumps to about +2.12 / √8 (amplified dramatically), the others drop to about 0.18 / √8 (shrunk).

Visually, in bar-chart form:

Start       | | | | | | | |    (all equal positive)
After oracle| | | | | |▽| |    (one flipped negative)
After diff. ▁ ▁ ▁ ▁ ▁ █ ▁ ▁    (one big, others small)
Round 2     . . . . . ██ . .   (solution dominates ~95%)

Enter fullscreen mode Exit fullscreen mode

Step 3 — Repeat. One "Grover step" = oracle + diffusion. Optimal peak is around ⌊π/4 · √N⌋ iterations. For N = 8, that's 2 rounds. Then measure, and you get the marked state with > 94% probability.

Classical average: N/2 = 4 oracle queries. Grover: 2. The win grows: for N = 10⁹, classical needs ~500 million queries, Grover ~25,000.

Quadratic, not exponential — but enough to change everything about unsorted search. And the mechanism is exactly what we said: amplitudes being shaped, not possibilities being tried in parallel.


5. Your first quantum circuit: the Bell state in Qiskit

The "Hello World" of quantum computing. Two qubits, two gates, perfect correlation.

from qiskit import QuantumCircuit
from qiskit_aer import AerSimulator

qc = QuantumCircuit(2, 2)
qc.h(0)            # put q0 in superposition
qc.cx(0, 1)        # CNOT: flip q1 iff q0 is 1
qc.measure([0, 1], [0, 1])

sim = AerSimulator()
result = sim.run(qc, shots=1024).result()
counts = result.get_counts()
print(counts)
# {'00': ~512, '11': ~512}

Enter fullscreen mode Exit fullscreen mode

The Hadamard puts qubit 0 into (|0⟩ + |1⟩)/√2. The CNOT flips qubit 1 iff qubit 0 is 1. Applied to the superposition, you end up with

|Φ⁺⟩ = (1/√2) (|00⟩ + |11⟩)

Enter fullscreen mode Exit fullscreen mode

Measuring gives you |00⟩ 50% of the time, |11⟩ 50% — and never |01⟩ or |10⟩. That's entanglement. Measure one qubit, you instantly know the other — Einstein's "spooky action at a distance," experimentally confirmed (Aspect et al., Nobel 2022).

Running on real hardware is two more lines:

from qiskit_ibm_runtime import QiskitRuntimeService, SamplerV2
from qiskit import transpile

service = QiskitRuntimeService(channel="ibm_quantum_platform")
backend = service.least_busy(simulator=False, operational=True)

qc_t = transpile(qc, backend)
sampler = SamplerV2(mode=backend)
job = sampler.run([qc_t], shots=1024)
print(job.result()[0].data.meas.get_counts())

Enter fullscreen mode Exit fullscreen mode

Real hardware gives you noisy results — maybe 490 / 508 / 20 "garbage". That's decoherence and gate errors. The IBM Quantum Platform has a free tier with 10 minutes of QPU time per month on 100+ qubit systems.


6. Shor in one paragraph

Shor's algorithm (1994) uses the same shaping principle for a totally different problem. The key insight: factoring N reduces to finding the period of the sequence a, a², a³, ... mod N. Period-finding classically is nearly as hard as factoring itself — but quantum mechanically, you put qubits into a superposition over all x, compute aˣ mod N into a second register, and apply the Quantum Fourier Transform to the first register. The QFT converts a periodic amplitude distribution into a sharply peaked one — amplitudes that don't match the true period cancel destructively, matching ones amplify constructively. A single measurement returns, with high probability, a value from which the period can be reconstructed classically.

Same move as Grover, different shaping tool.


7. What does NOT get faster (honest bit, 2026)

  • No Quantum Excel. No Quantum ChatGPT. No "10,000× AI training speedup."
  • Quantum computers are special-purpose processors for problems whose structure interference can exploit. Training neural networks on classical data? No speedup.
  • Current hardware (Google Willow 105 qubits, IBM Heron, IonQ Tempo) is NISQ-era — noisy, no full error correction. For Shor on 2048-bit RSA, we need a few million error-corrected qubits. Conservative estimate: 2030s.
  • But: the post-quantum crypto migration is already happening (NIST standards ML-KEM, ML-DSA since 2024), because "harvest now, decrypt later" is a real threat.

8. Further reading + code


TL;DR

Classical computation is a path. Quantum computation is a field. The speedup comes not from running many computations in parallel, but from transforming the entire probability landscape in one shot — destructively cancelling wrong answers, amplifying the right one, before the measurement collapses everything to a single value.

Three concrete takeaways for any developer:

  1. |ψ⟩ = α|0⟩ + β|1⟩ — amplitudes, not probabilities. They can cancel.
  2. Every gate is a 2^n × 2^n unitary matrix acting on the whole state vector at once.
  3. Grover amplifies a marked state by reflecting amplitudes about their mean. Shor amplifies the right Fourier peak. Same principle, different shaping tools.

If you've got Python and 15 minutes, fork the repo above, run 01_bell_state.ipynb, and see your first entangled pair of qubits. It's less intimidating than it sounds.