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.
- Watch Beyond AI: Inside the Global Quantum Computer Race - Bloomberg.com - November 18th, 2025 [November 18th, 2025]
- What Quantum Computer Makers Will Be Showing at SC25 - HPCwire - November 18th, 2025 [November 18th, 2025]
- Quantum Computing (QUBT) Stock Surges On Q3 Earnings, Company To Unveil Neurawave Computer This Week - Benzinga - November 18th, 2025 [November 18th, 2025]
- First full simulation of 50-qubit universal quantum computer achieved - Phys.org - November 11th, 2025 [November 11th, 2025]
- D-Wave (NYSE: QBTS) Advantage2TM Quantum Computer Now Available for U.S. Government Applications at Davidson Technologies - TradingView - November 11th, 2025 [November 11th, 2025]
- Superconducting Pairing Correlations Measured on Quantum Computer in Three Regimes of Fermi-Hubbard Models - Quantum Zeitgeist - November 11th, 2025 [November 11th, 2025]
- 'This is easily the most powerful quantum computer on Earth': Scientists unveil Helios, a record-breaking quantum system - Live Science - November 10th, 2025 [November 10th, 2025]
- Helios-1: New quantum computer is on the path to unravelling superconductivity - New Scientist - November 10th, 2025 [November 10th, 2025]
- Princeton puts quantum computing on the fast track with new qubit - Princeton University - November 7th, 2025 [November 7th, 2025]
- Here's How Hot Quantum Stocks Have Been LatelyAnd What to Know About Them - Investopedia - November 7th, 2025 [November 7th, 2025]
- SkyWater Technology and QuamCore Announce Collaboration to Fabricate Digital Superconducting Controller for Scalable Quantum Computing - Business Wire - November 7th, 2025 [November 7th, 2025]
- Quantum computing jolted by DARPA decision on most viable companies - Fast Company - November 7th, 2025 [November 7th, 2025]
- Quantum Could Be Techs Next Big Thing. But for Investors, Its All About Timing. - The Wall Street Journal - November 7th, 2025 [November 7th, 2025]
- Silicon Quantum Computing Selected by DARPA to Advance into 2nd Stage of Quantum Benchmarking Initiative - HPCwire - November 7th, 2025 [November 7th, 2025]
- Beyond the Hype: Quantum Computers Start Solving Real Problems - USC Viterbi School of Engineering - November 7th, 2025 [November 7th, 2025]
- Alumnus, leader in quantum computing to deliver inaugural joint colloquium - W&M News - November 7th, 2025 [November 7th, 2025]
- IBM Advances to Next Phase of DARPA Quantum Benchmarking Initiative - PR Newswire - November 7th, 2025 [November 7th, 2025]
- Universal Coupler Promises to Cut the Costs of Photonic Quantum Computers | Business | Nov 2025 - Photonics Spectra - November 7th, 2025 [November 7th, 2025]
- Atom Computing selected by DARPA for the next stage of exploring near-term utility-scale quantum computing with neutral atoms - PR Newswire - November 7th, 2025 [November 7th, 2025]
- Quantum Computing Explained: Unlocking the Future of Quantum Technology and Its Impact - Tech Times - November 7th, 2025 [November 7th, 2025]
- IBM Gets Selected for Stage B of DARPAs Quantum Computing Initiative - TipRanks - November 7th, 2025 [November 7th, 2025]
- Quantum computing: What's all the hype about? - marketplace.org - November 7th, 2025 [November 7th, 2025]
- Quantum Motion Selected by DARPA for Second Phase of the Quantum Benchmarking Initiative - insidehpc.com - November 7th, 2025 [November 7th, 2025]
- DARPAs Quantum Benchmarking Initiative targets utility-scale quantum by 2033 - TechInformed - November 7th, 2025 [November 7th, 2025]
- This Is the Smartest Stock to Buy to Take Advantage of the Quantum Computing Revolution -- and It Isn't IonQ, Rigetti Computing, or D-Wave Quantum -... - November 7th, 2025 [November 7th, 2025]
- Target This Quantum Computing Stock Before Another Rally - Forbes - November 7th, 2025 [November 7th, 2025]
- Singapores National Quantum Office and Quantinuum Forge Strategic Partnership to Accelerate Quantum Computing - The Quantum Insider - November 7th, 2025 [November 7th, 2025]
- SkyWater partners with QuamCore to advance quantum computing - Evertiq - November 7th, 2025 [November 7th, 2025]
- SkyWater Technology And QuamCore Announce Collaboration to Fabricate Digital Superconducting Controller For Scalable Quantum Computing - The Quantum... - November 7th, 2025 [November 7th, 2025]
- Canadas Nord Quantique Selected for 2nd Phase of DARPA Quantum Benchmarking Initiative - HPCwire - November 7th, 2025 [November 7th, 2025]
- Why People Confuse AI with Quantum Computing and Why You Should Care - Investopedia - November 7th, 2025 [November 7th, 2025]
- Exclusive | The Next Big Quantum Computer Has Arrived - The Wall Street Journal - November 7th, 2025 [November 7th, 2025]
- DARPAs Quantum Benchmarking Initiative (QBI) Advances with Eleven Teams Moving to Stage B - Quantum Computing Report - November 7th, 2025 [November 7th, 2025]
- Behold Helios, the Most Powerful Quantum Computer on the Planet - oodaloop.com - November 7th, 2025 [November 7th, 2025]
- The Next Big Quantum Computer Has Arrived - oodaloop.com - November 7th, 2025 [November 7th, 2025]
- Government showcases UK quantum computing pledge - Computer Weekly - November 7th, 2025 [November 7th, 2025]
- Behold Helios, the Most Powerful Quantum Computer on the Planet - Gizmodo - November 7th, 2025 [November 7th, 2025]
- Quantum Computing Stocks: Q3 Earnings Preview - Investor's Business Daily - November 3rd, 2025 [November 3rd, 2025]
- Quantum computers reveal that the wave function is a real thing - New Scientist - November 3rd, 2025 [November 3rd, 2025]
- You Won't Believe What Elon Musk Just Said About Quantum Computing (Spoiler Alert: It's Good News) - Nasdaq - November 3rd, 2025 [November 3rd, 2025]
- The US government announces strategic 'prosperity deals' with Japan and South Korea to 'drive breakthroughs' in AI, quantum computing, and more - PC... - November 3rd, 2025 [November 3rd, 2025]
- Are Quantum Computing Stocks in a Bubble? - The Motley Fool - November 3rd, 2025 [November 3rd, 2025]
- Quantum technology is coming to the real world - Financial Times - November 3rd, 2025 [November 3rd, 2025]
- The Donald Trump Administration May Want Stakes in Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum -- and That May Be Terrible... - November 3rd, 2025 [November 3rd, 2025]
- IBM Stock Is Outperforming Nvidia's This Year. Are Shares a Buy? - The Motley Fool - November 3rd, 2025 [November 3rd, 2025]
- An Epic Reversal Is Coming for Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum, Based on a Time-Tested Indicator - The Motley... - November 3rd, 2025 [November 3rd, 2025]
- Saturday Citations: Test flight of the X-59; a confounding quantum calculation; the universe is not simulated - Phys.org - November 3rd, 2025 [November 3rd, 2025]
- What will change in 2026? Brazil will have its first quantum computer, coming from China with a US$10 million investment. - CPG Click Petrleo e Gs - November 3rd, 2025 [November 3rd, 2025]
- Cloud platforms keep breaking down, and this time its quantum - Cybernews - November 3rd, 2025 [November 3rd, 2025]
- Time to Invest in Quantum Computing Stocks - Cabot Wealth Network - November 3rd, 2025 [November 3rd, 2025]
- Imperial Researchers Win Top Prizes For Quantum-AI Advances - Quantum Zeitgeist - November 3rd, 2025 [November 3rd, 2025]
- Quantum Circuits Harnesses Power of Data to Deliver New Class of Advanced Quantum Computing Solutions with NVIDIA - HPCwire - November 3rd, 2025 [November 3rd, 2025]
- NVIDIA Bridges Classical and Quantum Computing with NVQLink | Business | Oct 2025 - Photonics Spectra - November 3rd, 2025 [November 3rd, 2025]
- 3 Reasons to Buy This Under-the-Radar Quantum Computing Stock Today - Yahoo Finance - October 28th, 2025 [October 28th, 2025]
- What's the Best Quantum Computing Stock to Buy? It Just Became Crystal Clear (Hint: It's Not IonQ). - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- 3 Reasons to Buy This Under-the-Radar Quantum Computing Stock Today - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- Move Over, IonQ, Rigetti Computing, and D-Wave Quantum -- There's a Much Smarter Way to Invest in the Quantum Computing Revolution - Nasdaq - October 28th, 2025 [October 28th, 2025]
- Without Question, These Are the 2 Safest Quantum Computing Stocks to Buy (Hint: Not Rigetti Computing) - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- UC Merced Leads National Effort to Unlock Quantum Secrets of Twisty Molecules - University of California, Merced - October 28th, 2025 [October 28th, 2025]
- Quantum computer demonstrates controlled advantage over supercomputer for the first time - warpnews.org - October 28th, 2025 [October 28th, 2025]
- Quantum Computing Stocks D-Wave, IonQ, and Rigetti Talk With Trump Administration About Equity Stakes. Is It Time to Buy? - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- IBM Stock Surges 8% As It Expands Quantum Computing Capabilities with AMD Chip - TIKR.com - October 28th, 2025 [October 28th, 2025]
- Without Question, These Are the 2 Safest Quantum Computing Stocks to Buy (Hint: Not Rigetti Computing) - Nasdaq - October 28th, 2025 [October 28th, 2025]
- Electrons can now be controlled to build smarter quantum devices - Interesting Engineering - October 28th, 2025 [October 28th, 2025]
- Google announces a breakthrough that could bring quantum computing into everyday life - Dagens.com - October 28th, 2025 [October 28th, 2025]
- Quantum computing may be tech investings next big thing, but picking winners is a challenge - The Globe and Mail - October 28th, 2025 [October 28th, 2025]
- Move Over, IonQ, Rigetti Computing, and D-Wave Quantum -- There's a Much Smarter Way to Invest in the Quantum Computing Revolution - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- Think It's Too Late to Buy IonQ Stock? Here's the 1 Reason Why There's Still Time. - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- QTUM: Capturing The Synergistic Relationship Between Quantum Computing And AI - Seeking Alpha - October 28th, 2025 [October 28th, 2025]
- IonQ (IONQ): Evaluating Valuation After U.S. Government Interest and Quantum Computing Breakthroughs - simplywall.st - October 28th, 2025 [October 28th, 2025]
- Tech in 2035: The Future of AI, Quantum, and Space Innovation - DirectIndustry e-Magazine - October 28th, 2025 [October 28th, 2025]
- Commentary: China is closing the quantum technology gap - CNA - October 26th, 2025 [October 26th, 2025]
- How quantum computing could become the next frontier in national security - MarketWatch - October 26th, 2025 [October 26th, 2025]
- IBM says conventional AMD chips can run quantum computing error correction algorithm - Reuters - October 26th, 2025 [October 26th, 2025]
- Exclusive | Trump Administration in Talks to Take Equity Stakes in Quantum-Computing Firms - The Wall Street Journal - October 26th, 2025 [October 26th, 2025]
- This Quantum Computing Stock Is Up 3,000% Over the Last Year, and the CEO Just Cashed Out. Are Retail Investors Fueling a Bubble? - AOL.com - October 26th, 2025 [October 26th, 2025]
- AMD Stock Surges on IBM Quantum Partnership and Major AI Deals - CoinCentral - October 26th, 2025 [October 26th, 2025]
- Quantum Teleportation Was Achieved Over The Internet For The First Time - Currently.com - October 26th, 2025 [October 26th, 2025]
- IBM's boffins run a nifty quantum error-correction algorithm on standard AMD FPGAs, and it is' 10 times faster than what is needed' research propels... - October 26th, 2025 [October 26th, 2025]
- Googles quantum computer just achieved a massive breakthrough: Verifiable Quantum Advantage - Chrome Unboxed - October 26th, 2025 [October 26th, 2025]