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.
- Q-Day is almost here. It could unleash a cybersecurity crisis far worse than Y2K - CNN - May 17th, 2026 [May 17th, 2026]
- Why Quantum Computing Stock Skyrocketed This Week - AOL.com - May 17th, 2026 [May 17th, 2026]
- Meet the Quantum Computing Stock That Could Crush IonQ in 2026 - The Motley Fool - May 17th, 2026 [May 17th, 2026]
- Illinois Wesleyan to Launch First-of-its-Kind Interdisciplinary Undergraduate Quantum Science and Engineering Program - Illinois Wesleyan University - May 17th, 2026 [May 17th, 2026]
- Prediction: This Quantum Computing Stock Will Be Up More Than 20% by the End of 2026 - The Motley Fool - May 17th, 2026 [May 17th, 2026]
- Did Chinese scientists simulate what could be the end of the universe? - South China Morning Post - May 17th, 2026 [May 17th, 2026]
- This Quantum Computing Company Has Every Big Tech Firm Quietly Paying Attention - The Motley Fool - May 17th, 2026 [May 17th, 2026]
- 'Q-Day': The Internet's Worst Nightmare Is Coming as Quantum Computers Threaten to Break All Encryption - International Business Times UK - May 17th, 2026 [May 17th, 2026]
- Exploring IonQ: A Tech Stock Unrelated to the AI Market Boom - News and Statistics - IndexBox - May 17th, 2026 [May 17th, 2026]
- Why IonQ Stock Surged This Week - The Motley Fool - May 17th, 2026 [May 17th, 2026]
- Quantum Computing Inc. (NASDAQ:QUBT) Receives Average Rating of "Hold" from Analysts - MarketBeat - May 17th, 2026 [May 17th, 2026]
- This Quantum Computing Stock Went Public in March. History Says It Could Be a Massive Buy. - The Motley Fool - May 17th, 2026 [May 17th, 2026]
- Xanadu Quantum Revenue Increases Fourfold. Why the Stock Is Falling. - Barron's - May 17th, 2026 [May 17th, 2026]
- Meet the Quantum Computing Stock That Could Crush IonQ in 2026 - AOL.com - May 17th, 2026 [May 17th, 2026]
- Does Chinas Jiuzhang 4.0 computer herald the age of quantum supremacy? - South China Morning Post - May 16th, 2026 [May 16th, 2026]
- 3 things you need to know about quantum computers, from an expert - New Scientist - May 16th, 2026 [May 16th, 2026]
- D-Wave Quantum Stock Surges 4,550% -- This Quantum Computing Play Could Be the Next Big Thing - The Motley Fool - May 16th, 2026 [May 16th, 2026]
- China Unveils Jiuzhang 4.0: The Photonic Quantum Computer Defying the Laws of Speed - Bitcoin News - May 16th, 2026 [May 16th, 2026]
- This Quantum Computing Company Is Already Making Waves in Industry - The Motley Fool - May 16th, 2026 [May 16th, 2026]
- Indiana's place in the quantum computer race: What tech giants want and what experts say - WTHR - May 16th, 2026 [May 16th, 2026]
- Preparing for Q-Day: How Organizations Can Secure Their Systems From the Quantum Cyberthreat - ExecutiveBiz - May 16th, 2026 [May 16th, 2026]
- Fujitsu and Science Tokyo Launch Research Hub for Quantum Hardware Advancement and Talent Development - HPCwire - May 16th, 2026 [May 16th, 2026]
- Quantum Computing Hype: Will the Nvidia of the Future Come from Germany? - DER SPIEGEL - The German View - May 16th, 2026 [May 16th, 2026]
- Our new initiative to apply quantum science and AI to the life sciences - blog.google - May 16th, 2026 [May 16th, 2026]
- Quantum Computing Stock Shock: IonQ, Rigetti, D-Wave, and Quantum Computing Inc. Fall 6% to 9% - 24/7 Wall St. - May 16th, 2026 [May 16th, 2026]
- Quantum computing stocks are rising again: How long will the rally last for QUBT, D-Wave, IonQ, and Rigetti? - Fast Company - May 16th, 2026 [May 16th, 2026]
- Quantum Computing Stock Shock: IonQ, Rigetti, D-Wave, and Quantum Computing Inc. Fall 6% to 9% - AOL.com - May 16th, 2026 [May 16th, 2026]
- Future Perspectives: Key Trends Shaping the Neutral Atom Quantum Computer Market Up to 2030 - openPR.com - May 16th, 2026 [May 16th, 2026]
- NSF Announces $1.5 Billion X-Labs Initiative to Pursue Generational Breakthrough Science Efforts - The Quantum Insider - May 16th, 2026 [May 16th, 2026]
- IQM and Real Asset Acquisition Corp. Announce Public Filing of Form F-4 Registration Statement with the SEC - Business Wire - May 16th, 2026 [May 16th, 2026]
- Nvidia, Microsoft, and IBM are pursuing 3 very different quantum strategies. Here's how they compare - qz.com - May 16th, 2026 [May 16th, 2026]
- Quantum Computing soars after posting better-than-expected Q1 sales - Sherwood News - May 16th, 2026 [May 16th, 2026]
- Why Quantum Computing Stock Ripped Higher Today - The Motley Fool - May 16th, 2026 [May 16th, 2026]
- Observation of the Acoustic Purcell Effect in Diamond Nanostructures - Quantum Computing Report - May 16th, 2026 [May 16th, 2026]
- Rigetti Computing vs. IonQ: Which Quantum Computing Stock Has Better Revenue Momentum? - The Globe and Mail - May 16th, 2026 [May 16th, 2026]
- Why to Bet on Quantum Computing ETFs Now - Yahoo Finance - May 9th, 2026 [May 9th, 2026]
- Live 'quantum network' being tested in New York overcoming key hurdles could bring us closer to an 'unhackable' internet - Live Science - May 9th, 2026 [May 9th, 2026]
- IonQ: The Top Quantum Computing Stock for a Once-in-a-Generation Investment Opportunity - Yahoo Finance - May 9th, 2026 [May 9th, 2026]
- IBM is modeling the universe with quantum computing - IBM Research - May 9th, 2026 [May 9th, 2026]
- Where Will IonQ Stock Be in 1 Year? - The Motley Fool - May 9th, 2026 [May 9th, 2026]
- Cleveland Clinic, RIKEN, and IBM Model a 12,635-Atom Protein the Largest Known to Be Simulated with Quantum Computers - IBM Newsroom - May 9th, 2026 [May 9th, 2026]
- IonQ: The Top Quantum Computing Stock for a Once-in-a-Generation Investment Opportunity - The Motley Fool - May 9th, 2026 [May 9th, 2026]
- Ready or Not, AI-Assisted Quantum Computing Is Here - radioworld.com - May 9th, 2026 [May 9th, 2026]
- IonQ: The Top Quantum Computing Stock for a Once-in-a-Generation Investment Opportunity - AOL.com - May 9th, 2026 [May 9th, 2026]
- The Cost of Waiting on Quantum Computing May Be Higher Than You Think, Researchers Tell Business Leaders - The Quantum Insider - May 9th, 2026 [May 9th, 2026]
- Quantums bold promise: What business leaders need to know - McKinsey & Company - May 9th, 2026 [May 9th, 2026]
- The Hidden Quantum Computing Play Inside Nvidia's AI Strategy That Most Investors Are Missing - The Motley Fool - May 9th, 2026 [May 9th, 2026]
- Q-CTRL Delivers 3,000x Speedup in Materials Discovery for the Energy Sector with Quantum Computing - The Quantum Insider - May 9th, 2026 [May 9th, 2026]
- Quantum moves from promise to practice at IBM Think 2026 - TechTarget - May 9th, 2026 [May 9th, 2026]
- D-Wave Executives to Government: Quantum Isnt Coming Its Already Here - MeriTalk - May 9th, 2026 [May 9th, 2026]
- Quantum Motion raised $160m to support commercialization of its silicon-based quantum computing technology - Data Center Dynamics - May 9th, 2026 [May 9th, 2026]
- Quantum Motion raises $160M for silicon-based quantum computers that fit in a server rack - Resilience Media - May 9th, 2026 [May 9th, 2026]
- PQC: Everything you wanted to know about post-quantum cryptography but were afraid to ask - STMicroelectronics - May 9th, 2026 [May 9th, 2026]
- Quantum Computing Is Closer Than We Think. Are We Ready? - Mexico Business News - May 9th, 2026 [May 9th, 2026]
- DCVC and Kembara lead $160M round for Quantum Motion to build quantum computers on everyday silicon chips - Tech Funding News - May 9th, 2026 [May 9th, 2026]
- Bitcoins post-quantum migration will be harder than Taproot and needs to start now, Project Eleven CEO says - CoinDesk - May 9th, 2026 [May 9th, 2026]
- Qubitcore raises $9.6M to advance ion-trap quantum computing - Evertiq - May 9th, 2026 [May 9th, 2026]
- Rigetti Computing Q1 earnings on deck: What to expect - MSN - May 9th, 2026 [May 9th, 2026]
- Quantum Computing Surge Raises Alarms Over Security, Prophecy and the Future of Global Systems - Charisma Magazine Online - May 9th, 2026 [May 9th, 2026]
- Buying D-Wave Quantum Stock? 3 Things You Should Know First. - The Motley Fool - May 9th, 2026 [May 9th, 2026]
- Quantum Computers to Break Encryption in 2027 - Cybersecurity Insiders - May 9th, 2026 [May 9th, 2026]
- Quantinuums IPO filing tests investor patience with quantum computing - Startup Fortune - May 9th, 2026 [May 9th, 2026]
- Quantum computing is tech hype bosses can safely ignore - The Times - May 5th, 2026 [May 5th, 2026]
- Nvidia Just Stunned the Quantum Computing Market. What Does This Mean for IonQ, D-Wave, and Rigetti? - The Motley Fool - May 5th, 2026 [May 5th, 2026]
- Quantum computing moves closer to drug discovery with enzyme study - Financial Times - May 5th, 2026 [May 5th, 2026]
- Cleveland Clinic, RIKEN, and IBM Model a 12635-Atom Protein the Largest Known to Be Simulated with Quantum Computers - Cleveland Clinic - May 5th, 2026 [May 5th, 2026]
- Hold On Tight! Quantum Computing Leader IonQ Is About to Rocket Higher - 24/7 Wall St. - May 5th, 2026 [May 5th, 2026]
- Quantinuum and BMW Group Expand Landmark Quantum Computing Collaboration with New Multi-Year Partnership - Quantinuum - May 5th, 2026 [May 5th, 2026]
- Harvard Researchers: Quantum Computing Advancing Faster Than Expected - The Quantum Insider - May 5th, 2026 [May 5th, 2026]
- QuantWare Raises $176M as It Builds KiloFab and Targets Utility-Scale Quantum Processors - HPCwire - May 5th, 2026 [May 5th, 2026]
- The 50-year quest to create a quantum spin liquid may finally be over - New Scientist - May 5th, 2026 [May 5th, 2026]
- This Quantum Newcomer Just Posted Earnings. Meet Horizon, the Industrys First Public Software Play. - Barron's - May 5th, 2026 [May 5th, 2026]
- Grove School computer engineer Samah Saeed wins NSF CAREER Award - The City College of New York - May 5th, 2026 [May 5th, 2026]
- Quantum Computing Is Coming for Your PasswordsHeres What to Do Before That Happens - NTD News - May 5th, 2026 [May 5th, 2026]
- China Just Released A Quantum Tool: Allows You To Calculate Multiple Realities At Once - All That's Interesting - May 5th, 2026 [May 5th, 2026]
- Dana Criswell: Your Bank Account and the Quantum Threat: How Safe Is Your Money Online? - The Local Voice - May 5th, 2026 [May 5th, 2026]
- Quantum Art Advances Wave Propagation Modeling with Quantum Methods - The Quantum Insider - May 5th, 2026 [May 5th, 2026]
- Magnon Research Advance could Pave the Way for Mini Quantum Computers - The Quantum Insider - May 5th, 2026 [May 5th, 2026]
- QuantWare Raises $178 Million to Build Quantum Processors at an Industrial Scale - The Quantum Insider - May 5th, 2026 [May 5th, 2026]
- Dana Criswell: Bitcoin and the Quantum Question: Understanding a Risk That Isnt Here Yet - The Local Voice - May 5th, 2026 [May 5th, 2026]