What is a quantum computer? Explained with a simple example.
by YK Sugi
Hi everyone!
The other day, I visited D-Wave Systems in Vancouver, Canada. Its a company that makes cutting-edge quantum computers.
I got to learn a lot about quantum computers there, so Id like to share some of what I learned there with you in this article.
The goal of this article is to give you an accurate intuition of what a quantum computer is using a simple example.
This article will not require you to have prior knowledge of either quantum physics or computer science to be able to understand it.
Okay, lets get started.
Edit (Feb 26, 2019): I recently published a video about the same topic on my YouTube channel. I would recommend watching it (click here) before or after reading this article because I have added some additional, more nuanced arguments in the video.
Here is a one-sentence summary of what a quantum computer is:
There is a lot to unpack in this sentence, so let me walk you through what it is exactly using a simple example.
To explain what a quantum computer is, Ill need to first explain a little bit about regular (non-quantum) computers.
Now, a regular computer stores information in a series of 0s and 1s.
Different kinds of information, such as numbers, text, and images can be represented this way.
Each unit in this series of 0s and 1s is called a bit. So, a bit can be set to either 0 or 1.
A quantum computer does not use bits to store information. Instead, it uses something called qubits.
Each qubit can not only be set to 1 or 0, but it can also be set to 1 and 0. But what does that mean exactly?
Let me explain this with a simple example. This is going to be a somewhat artificial example. But its still going to be helpful in understanding how quantum computers work.
Now, suppose youre running a travel agency, and you need to move a group of people from one location to another.
To keep this simple, lets say that you need to move only 3 people for now Alice, Becky, and Chris.
And suppose that you have booked 2 taxis for this purpose, and you want to figure out who gets into which taxi.
Also, suppose here that youre given information about whos friends with who, and whos enemies with who.
Here, lets say that:
And suppose that your goal here is to divide this group of 3 people into the two taxis to achieve the following two objectives:
Okay, so this is the basic premise of this problem. Lets first think about how we would solve this problem using a regular computer.
To solve this problem with a regular, non-quantum computer, youll need first to figure out how to store the relevant information with bits.
Lets label the two taxis Taxi #1 and Taxi #0.
Then, you can represent who gets into which car with 3 bits.
For example, we can set the three bits to 0, 0, and 1 to represent:
Since there are two choices for each person, there are 2*2*2 = 8 ways to divide this group of people into two cars.
Heres a list of all possible configurations:
A | B | C0 | 0 | 00 | 0 | 10 | 1 | 00 | 1 | 11 | 0 | 01 | 0 | 11 | 1 | 01 | 1 | 1
Using 3 bits, you can represent any one of these combinations.
Now, using a regular computer, how would we determine which configuration is the best solution?
To do this, lets define how we can compute the score for each configuration. This score will represent the extent to which each solution achieves the two objectives I mentioned earlier:
Lets simply define our score as follows:
(the score of a given configuration) = (# friend pairs sharing the same car) - (# enemy pairs sharing the same car)
For example, suppose that Alice, Becky, and Chris all get into Taxi #1. With three bits, this can be expressed as 111.
In this case, there is only one friend pair sharing the same car Alice and Becky.
However, there are two enemy pairs sharing the same car Alice and Chris, and Becky and Chris.
So, the total score of this configuration is 1-2 = -1.
With all of this setup, we can finally go about solving this problem.
With a regular computer, to find the best configuration, youll need to essentially go through all configurations to see which one achieves the highest score.
So, you can think about constructing a table like this:
A | B | C | Score0 | 0 | 0 | -10 | 0 | 1 | 1 <- one of the best solutions0 | 1 | 0 | -10 | 1 | 1 | -11 | 0 | 0 | -11 | 0 | 1 | -11 | 1 | 0 | 1 <- the other best solution1 | 1 | 1 | -1
As you can see, there are two correct solutions here 001 and 110, both achieving the score of 1.
This problem is fairly simple. It quickly becomes too difficult to solve with a regular computer as we increase the number of people in this problem.
We saw that with 3 people, we need to go through 8 possible configurations.
What if there are 4 people? In that case, well need to go through 2*2*2*2 = 16 configurations.
With n people, well need to go through (2 to the power of n) configurations to find the best solution.
So, if there are 100 people, well need to go through:
This is simply impossible to solve with a regular computer.
How would we go about solving this problem with a quantum computer?
To think about that, lets go back to the case of dividing 3 people into two taxis.
As we saw earlier, there were 8 possible solutions to this problem:
A | B | C0 | 0 | 00 | 0 | 10 | 1 | 00 | 1 | 11 | 0 | 01 | 0 | 11 | 1 | 01 | 1 | 1
With a regular computer, using 3 bits, we were able to represent only one of these solutions at a time for example, 001.
However, with a quantum computer, using 3 qubits, we can represent all 8 of these solutions at the same time.
There are debates as to what it means exactly, but heres the way I think about it.
First, examine the first qubit out of these 3 qubits. When you set it to both 0 and 1, its sort of like creating two parallel worlds. (Yes, its strange, but just follow along here.)
In one of those parallel worlds, the qubit is set to 0. In the other one, its set to 1.
Now, what if you set the second qubit to 0 and 1, too? Then, its sort of like creating 4 parallel worlds.
In the first world, the two qubits are set to 00. In the second one, they are 01. In the third one, they are 10. In the fourth one, they are 11.
Similarly, if you set all three qubits to both 0 and 1, youd be creating 8 parallel worlds 000, 001, 010, 011, 100, 101, 110, and 111.
This is a strange way to think, but it is one of the correct ways to interpret how the qubits behave in the real world.
Now, when you apply some sort of computation on these three qubits, you are actually applying the same computation in all of those 8 parallel worlds at the same time.
So, instead of going through each of those potential solutions sequentially, we can compute the scores of all solutions at the same time.
With this particular example, in theory, your quantum computer would be able to find one of the best solutions in a few milliseconds. Again, thats 001 or 110 as we saw earlier:
A | B | C | Score0 | 0 | 0 | -10 | 0 | 1 | 1 <- one of the best solutions0 | 1 | 0 | -10 | 1 | 1 | -11 | 0 | 0 | -11 | 0 | 1 | -11 | 1 | 0 | 1 <- the other best solution1 | 1 | 1 | -1
In reality, to solve this problem, you would need to give your quantum computer two things:
Given these two things, your quantum computer will spit out one of the best solutions in a few milliseconds. In this case, thats 001 or 110 with a score of 1.
Now, in theory, a quantum computer is able to find one of the best solutions every time it runs.
However, in reality, there are errors when running a quantum computer. So, instead of finding the best solution, it might find the second-best solution, the third best solution, and so on.
These errors become more prominent as the problem becomes more and more complex.
So, in practice, you will probably want to run the same operation on a quantum computer dozens of times or hundreds of times. Then pick the best result out of the many results you get.
Even with the errors I mentioned, the quantum computer does not have the same scaling issue a regular computer suffers from.
When there are 3 people we need to divide into two cars, the number of operations we need to perform on a quantum computer is 1. This is because a quantum computer computes the score of all configurations at the same time.
When there are 4 people, the number of operations is still 1.
When there are 100 people, the number of operations is still 1. With a single operation, a quantum computer computes the scores of all 2 ~= 10 = one million million million million million configurations at the same time.
As I mentioned earlier, in practice, its probably best to run your quantum computer dozens of times or hundreds of times and pick the best result out of the many results you get.
However, its still much better than running the same problem on a regular computer and having to repeat the same type of computation one million million million million million times.
Special thanks to everyone at D-Wave Systems for patiently explaining all of this to me.
D-Wave recently launched a cloud environment for interacting with a quantum computer.
If youre a developer and would like actually to try using a quantum computer, its probably the easiest way to do so.
Its called Leap, and its at https://cloud.dwavesys.com/leap. You can use it for free to solve thousands of problems, and they also have easy-to-follow tutorials on getting started with quantum computers once you sign up.
Footnote:
Read more:
What is a quantum computer? Explained with a simple example.
- How a quantum computer can be used to actually steal your bitcoin in '9 minutes' - CoinDesk - April 19th, 2026 [April 19th, 2026]
- Quantum stocks on pace for a massive week after Nvidia debuts AI models to boost the tech - CNBC - April 19th, 2026 [April 19th, 2026]
- 3 Best Quantum Computing Stocks to Buy in April 2026, According to Analysts - TipRanks - April 19th, 2026 [April 19th, 2026]
- Why Quantum Computing Stock Was Blasting Higher This Week - Yahoo Finance - April 19th, 2026 [April 19th, 2026]
- Quantum-informed AI improves long-term turbulence forecasts while using far less memory - Phys.org - April 19th, 2026 [April 19th, 2026]
- Quantum Frontiers: Stony Brook Researchers Chart the Future of Technology - SBU News - April 19th, 2026 [April 19th, 2026]
- Quantum Jamming Explores the Truly Fundamental Principles of Nature - Quanta Magazine - April 19th, 2026 [April 19th, 2026]
- University of Illinois Renews Quantum Tech Partnership With IBM - govtech.com - April 19th, 2026 [April 19th, 2026]
- Oxford scientists achieve quantum gate teleportation between two quantum supercomputers - The Brighter Side of News - April 19th, 2026 [April 19th, 2026]
- Ferguson invests in Snohomish County to make it the Quantum Valley of the West - Lynnwood Times - April 19th, 2026 [April 19th, 2026]
- Alice & Bob Surpasses Hiring Targets Ahead of Schedule as Quantum Workforce Grows - HPCwire - April 19th, 2026 [April 19th, 2026]
- How IonQ Became the Most Exciting Name in Quantum Computing This Week - inc.com - April 19th, 2026 [April 19th, 2026]
- How a quantum computer can be used to actually steal your bitcoin in '9 minutes' - Cryptonews.net - April 19th, 2026 [April 19th, 2026]
- India built a fully indigenous quantum computer in just four months. But what exactly can it do, and does it actually stand up against what the US,... - April 19th, 2026 [April 19th, 2026]
- Bitcoin miners are dealing with this triple-threat. Im a seven worried, says mining CEO - dlnews.com - April 19th, 2026 [April 19th, 2026]
- The Korea Quantum Trade: Why Seoul Produced the Biggest Stock Moves on NVIDIA's Ising Launch - The Quantum Insider - April 19th, 2026 [April 19th, 2026]
- 3 Screaming Buys for the Upcoming AI-Quantum Supercycle - The Motley Fool - April 19th, 2026 [April 19th, 2026]
- Satoshi Nakamoto is one of the richest people in the world, but a proposed update could lock his Bitcoin away forever - dlnews.com - April 19th, 2026 [April 19th, 2026]
- A $2M quantum prize went to cancer-treatment research on IBM - Stock Titan - April 19th, 2026 [April 19th, 2026]
- Recent advances push Big Tech closer to the Q-Day danger zone - Ars Technica - April 19th, 2026 [April 19th, 2026]
- NVIDIA Launches Ising, the Worlds First Open AI Models to Accelerate the Path to Useful Quantum Computers - NVIDIA Newsroom - April 17th, 2026 [April 17th, 2026]
- Quantum computing stocks are back on the rise. Heres why IONQ, QBTS, RGTI, and QUBT are up - Fast Company - April 17th, 2026 [April 17th, 2026]
- How IBM Quantum is enabling healthcare and biology research - IBM - April 17th, 2026 [April 17th, 2026]
- Key quantum computing stock jumps 20% in a day, heres why - thestreet.com - April 17th, 2026 [April 17th, 2026]
- QuEras Yuval Boger on Quantum Timelines, Neutral-Atom Systems, and the Hybrid Future - MeriTalk - April 17th, 2026 [April 17th, 2026]
- Why Quantum Computing Stock Was Blasting Higher This Week - The Motley Fool - April 17th, 2026 [April 17th, 2026]
- Quantum Computing Advanced Packaging Market to 2035 Driven by Scaling Qubit Counts in Processors - IndexBox - April 17th, 2026 [April 17th, 2026]
- Quantum Fourier transform reaches 52 qubits, shattering the previous 27-qubit record - Phys.org - April 17th, 2026 [April 17th, 2026]
- Israel Is Winning the Quantum Race. It May Not Finish It - The Times of Israel - April 17th, 2026 [April 17th, 2026]
- University of Illinois and IBM renew quantum technology partnership at new Chicago headquarters - Chicago Tribune - April 17th, 2026 [April 17th, 2026]
- Quantum Computing's Crypto Threat Is Getting Realand Investors Are Piling In - MarketBeat - April 17th, 2026 [April 17th, 2026]
- Pulsar Helium: "Blue Gold" And Its Role In Quantum Computing (OTCMKTS:PSRHF) - Seeking Alpha - April 17th, 2026 [April 17th, 2026]
- Analysts Are Bullish on These 3 Quantum Computing Stocks Including One Youve Never Heard Of - Yahoo Finance - April 17th, 2026 [April 17th, 2026]
- Quantum photonics roadmap how Xanadu and PsiQuantum are looking to transfer qubits through beams of light - Tom's Hardware - April 17th, 2026 [April 17th, 2026]
- Quantum Computing Stocks Are Surging. New Models From Nvidia Are Helping Drive the Rally. - Investopedia - April 17th, 2026 [April 17th, 2026]
- IBM and University of Illinois Extend Discovery Accelerator Institute to Link Quantum and HPC Systems - HPCwire - April 17th, 2026 [April 17th, 2026]
- 15 months after crippling quantum computing stocks, Nvidia has sent the industry back into the stratosphere - Sherwood News - April 17th, 2026 [April 17th, 2026]
- VPNs Will Be Useless On A Quantum Internet Your Location Can Always Be Known - IFLScience - April 17th, 2026 [April 17th, 2026]
- UMD ARLIS Breaks Ground on $65M Facility to Support Applied Quantum and Intelligence Missions - HPCwire - April 17th, 2026 [April 17th, 2026]
- Moth Bets Quantum Computing Will Reach Consumers by Next World Quantum Day - The Quantum Insider - April 17th, 2026 [April 17th, 2026]
- BTQ Technologies Advances Quantum Reliability at Scale with First General Theory of Error Correction for Permutation-Invariant Codes - PR Newswire - April 17th, 2026 [April 17th, 2026]
- Famed investor Andrew Left says Nvidia has already crowned the big quantum stock winner - AOL.com - April 17th, 2026 [April 17th, 2026]
- Should You Buy Sell or Hold IonQ at $42 Is the Quantum Rally Back? - 24/7 Wall St. - April 17th, 2026 [April 17th, 2026]
- Quantum Clock Is Ticking: Colton Dillion on Building the Worldwide Quantum Computer Before Crypto Breaks - CCN.com - April 17th, 2026 [April 17th, 2026]
- IonQ, Nvidia Make Strides on World Quantum Day. Whats Lifting the Stocks. - Barron's - April 14th, 2026 [April 14th, 2026]
- Prediction: This Will Be Rigetti Computing's Stock Price in 1 Year - The Motley Fool - April 14th, 2026 [April 14th, 2026]
- D-Wave CEO Brings Commercial Quantum Computing to the Center of Global Economic and Technology Discussions at Semafor World Economy and QED-C Quantum... - April 14th, 2026 [April 14th, 2026]
- Quantum Computing vs Classical Computing Whats the Real Difference - The Quantum Insider - April 14th, 2026 [April 14th, 2026]
- How Columbus is leading the way on World Quantum Day - The Columbus Dispatch - April 14th, 2026 [April 14th, 2026]
- What Quantum Technology is and Why it Matters - The Quantum Insider - April 14th, 2026 [April 14th, 2026]
- Global Quantum Computing Market to Double by 2028, Reaching $3 Billion in Revenue, QED-C State of the Global Quantum Industry 2026 Report Finds - The... - April 14th, 2026 [April 14th, 2026]
- IQM Introduces AI-Based Calibration for Scalable Quantum Systems - The Quantum Insider - April 14th, 2026 [April 14th, 2026]
- France bets 500 million that quantum computing is the tech race Europe can finally win - The Next Web - April 14th, 2026 [April 14th, 2026]
- Bull and Equal1 Partner to Accelerate Hybrid Quantum-HPC Integration in Europe - HPCwire - April 14th, 2026 [April 14th, 2026]
- Nvidia slaps forehead: AI, thats what quantum needs! - theregister.com - April 14th, 2026 [April 14th, 2026]
- Today is World Quantum Day. Heres why it matters more than you think - Fast Company - April 14th, 2026 [April 14th, 2026]
- Bull and Equal1 Partner on Hybrid Quantum and HPC Integration - The Quantum Insider - April 14th, 2026 [April 14th, 2026]
- Intersection of humanities and quantum physics discussed during URIs World Quantum Day - The University of Rhode Island - April 14th, 2026 [April 14th, 2026]
- Rigetti Computing vs. IonQ: Diverging Trends in Quarterly Revenue - The Motley Fool - April 14th, 2026 [April 14th, 2026]
- Curious about quantum? Check out training options from ISC2, IBM, AWS and more - Network World - April 14th, 2026 [April 14th, 2026]
- Quantum computing is a once-in-a-lifetime opportunity for Canada. Here's how we can grow the industry at home - Financial Post - April 14th, 2026 [April 14th, 2026]
- Quantum-HPC convergence moves from theory to mission - SiliconANGLE - April 14th, 2026 [April 14th, 2026]
- Quantum Computing (NASDAQ:QUBT) Trading Up 11% - Here's Why - MarketBeat - April 14th, 2026 [April 14th, 2026]
- Quantum-Day Reality Check: Debunking the Quantum Threat to Crypto - CCN.com - April 14th, 2026 [April 14th, 2026]
- Gauge theory could give quantum error correction a boost - Physics World - April 14th, 2026 [April 14th, 2026]
- Guest Post: The Global Quantum Race is Here And Politicians Must Keep Up - The Quantum Insider - April 14th, 2026 [April 14th, 2026]
- IonQ, Rigetti, D-Wave and Nvidia Rise on World Quantum Day. What's Lifting the Stocks. - Moomoo - April 14th, 2026 [April 14th, 2026]
- IonQ Soars 18%, D-Wave Climbs 15%, Rigetti Gains 12%: Is the Quantum Super-Cycle Back in Full Force? - 24/7 Wall St. - April 14th, 2026 [April 14th, 2026]
- IQM Advances AI-Driven Agentic Calibration, Opening Quantum Computing to the Enterprise With NVIDIA Ising - PA Media - April 14th, 2026 [April 14th, 2026]
- The Best Quantum Computing Stocks to Buy Today - The Motley Fool - April 12th, 2026 [April 12th, 2026]
- Quantum Computing Is Beginning to Take Shape Here Are Three Recent Breakthroughs - Discover Magazine - April 12th, 2026 [April 12th, 2026]
- How Sensitive Are The Computers Of The Future? - Eurasia Review - April 12th, 2026 [April 12th, 2026]
- The Quantum Computing ETF That Could Be Bigger Than AI, and 2 Tech Funds Riding the Same Wave - 24/7 Wall St. - April 12th, 2026 [April 12th, 2026]
- Quantum Computing Threat to Bitcoin: Google Warns of Accelerated Timeline - News and Statistics - IndexBox - April 12th, 2026 [April 12th, 2026]
- Is Rigetti Computing's New 2-Qubit Gate Fidelity Record a Reason to Buy the Stock? - Yahoo Finance - April 12th, 2026 [April 12th, 2026]
- Quantum XChanges Eddy Zervigon on Q-Day, PQC Readiness, and How Federal CIOs Can Start the Migration Now - MeriTalk - April 12th, 2026 [April 12th, 2026]
- Guest Post: The UK's Quantum Ambitions Will Fail Without The Components to Make Them Real - The Quantum Insider - April 12th, 2026 [April 12th, 2026]
- The Quantum Computing ETF That Could Be Bigger Than AI, and 2 Tech Funds Riding the Same Wave - AOL.com - April 12th, 2026 [April 12th, 2026]
- Quantum threat looms far beyond Bitcoin, says Grayscale - thestreet.com - April 12th, 2026 [April 12th, 2026]
- How Should We Prepare for the Looming Quantum Encryption Apocalypse? - Gizmodo - April 12th, 2026 [April 12th, 2026]