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.
- Encryption That Protects Your Bank Account Could Fall to a Quantum Computer in 3 Days, Study Suggests - ScienceAlert - November 5th, 2026 [November 5th, 2026]
- Quantum computer errors slashed by more than 50% with single check - Interesting Engineering - November 5th, 2026 [November 5th, 2026]
- Japan Just Powered Up a Quantum Computer Built From Single Atomsand It May Not Need a Giant Freezer to Run - Popular Mechanics - November 3rd, 2026 [November 3rd, 2026]
- This Brilliant Quantum Computing Stock Could Double in a Year - Yahoo Finance - November 1st, 2026 [November 1st, 2026]
- Our estimate for factoring RSA-2048 with cat qubits: pushing the frontier between size and speed - Alice & Bob - November 1st, 2026 [November 1st, 2026]
- Prediction: This Is the Quantum Computing Stock Most Likely to Still Be Standing in 2030 - The Motley Fool - November 1st, 2026 [November 1st, 2026]
- This Brilliant Quantum Computing Stock Could Double in a Year - The Motley Fool - November 1st, 2026 [November 1st, 2026]
- Quantum: 12.9% of technology signals are already at operational level - EU Science Hub - November 1st, 2026 [November 1st, 2026]
- 3 Quantum Computing Stocks to Buy Before They Soar in 2027 - The Motley Fool - November 1st, 2026 [November 1st, 2026]
- Are These 3 Quantum Computing Stocks Worth Buying Before 2027? - Yahoo Finance - November 1st, 2026 [November 1st, 2026]
- Are These 3 Quantum Computing Stocks Worth Buying Before 2027? - The Motley Fool - November 1st, 2026 [November 1st, 2026]
- This Brilliant Quantum Computing Stock Could Double in a Year - AOL.com - November 1st, 2026 [November 1st, 2026]
- The Quantum Threat Is Closer Than Finance Thinks - Crowdfund Insider - November 1st, 2026 [November 1st, 2026]
- The Continuum+: Who will capture the quantum advantage? - Simmons & Simmons - November 1st, 2026 [November 1st, 2026]
- Coinbase Is Racing to Quantum-Proof Bitcoin Before It Has To - Startup Fortune - November 1st, 2026 [November 1st, 2026]
- 3 Quantum Computing Stocks to Buy Before They Soar in 2027 - The Globe and Mail - November 1st, 2026 [November 1st, 2026]
- Coinbase CEO Brian Armstrong Says Quantum Computing Is a Bigger Threat to Crypto Than AI: When, Not If - Benzinga - November 1st, 2026 [November 1st, 2026]
- intelligence bets on quantum with deal for Israeli software startup Classiq - The Jerusalem Post - October 28th, 2026 [October 28th, 2026]
- Quantum Computings Energy Bill Is Coming, and We Havent Priced It In - EE Times - October 28th, 2026 [October 28th, 2026]
- The Genesis Mission and the Future of the Future of Computing - Issues in Science and Technology - October 28th, 2026 [October 28th, 2026]
- Intels $2.3 Billion Bet on a Quantum Future is a Decade in the Making - The Next Platform - October 28th, 2026 [October 28th, 2026]
- Giving quantum computers a way to pick up where they left off - Florida International University - October 28th, 2026 [October 28th, 2026]
- Guest Post: The Next Threat to Encryption May Not Need a Quantum Computer - The Quantum Insider - October 28th, 2026 [October 28th, 2026]
- How EPB and IonQ Use Quantum to Optimize the Power Grid - IonQ - October 28th, 2026 [October 28th, 2026]
- We're a Step Closer to Quantum Computers That Can Correct Their Own Mistakes - ScienceAlert - October 28th, 2026 [October 28th, 2026]
- Fairfax Schools to Bring Quantum Computing to K-12 - GovTech - October 28th, 2026 [October 28th, 2026]
- Quantum computing and the burden of proof - Computing UK - October 28th, 2026 [October 28th, 2026]
- Can Classiq Make Intel the Cadence of Quantum Computing? - The Futurum Group - October 28th, 2026 [October 28th, 2026]
- Uncovering the Hidden Disorder in Silicon Quantum Computers - Department of Energy (.gov) - October 28th, 2026 [October 28th, 2026]
- Beyond Binary Quantum Computing: Exploring Higher-Dimensional Qudits - The Quantum Insider - October 28th, 2026 [October 28th, 2026]
- SoftBank teams up with five Japanese firms to build quantum-based platform - Light Reading - October 28th, 2026 [October 28th, 2026]
- Intel Just Bought the Quantum Toolbox, Not the Magic Box - Money Morning - October 28th, 2026 [October 28th, 2026]
- D-Wave partners with LG CNS to advance quantum use cases in Asia - Seeking Alpha - October 28th, 2026 [October 28th, 2026]
- Quantum Computing Inc. Announces Participation in Upcoming November Investor Conferences - PR Newswire - October 28th, 2026 [October 28th, 2026]
- Dell brings post-quantum cryptography to the root of trust - SiliconANGLE - October 28th, 2026 [October 28th, 2026]
- Google Just Solved a Major Quantum Computing Problem. Heres Why Investors Still Have a 10-Year Wait. - Yahoo Finance - October 28th, 2026 [October 28th, 2026]
- LG CNS and D-Wave Announce Strategic Relationship to Advance Quantum Optimization Adoption in South Korea - Yahoo Finance - October 28th, 2026 [October 28th, 2026]
- D-Wave Quantum delivers first annealing quantum computer to Italy as part of SQT deal (QBTS:NASDAQ) - Seeking Alpha - October 17th, 2026 [October 17th, 2026]
- IonQ tumbles as it buys cybersecurity firm Elisity in $1.3B all-stock deal (IONQ:NYSE) - Seeking Alpha - October 12th, 2026 [October 12th, 2026]
- IonQ to acquire cybersecurity firm Elisity in an all-stock deal for up to $1.3 billion - CNBC - October 12th, 2026 [October 12th, 2026]
- Tuning the Field: Notes from the NYC Quantum Summit - New York University - October 12th, 2026 [October 12th, 2026]
- Scientists make major step towards fixing the big problem with quantum computers - The Independent - October 12th, 2026 [October 12th, 2026]
- IonQ Agrees to Buy Elisity in Cybersecurity Deal Worth Up to $1.3 Billion - The Quantum Insider - October 12th, 2026 [October 12th, 2026]
- A Practical Path to Post-Quantum Readiness in Operational Technology - Foundation for Defense of Democracies - October 12th, 2026 [October 12th, 2026]
- DARPA selects IBM and IonQ for next phase in development of fault-tolerant quantum computer - Seeking Alpha - October 12th, 2026 [October 12th, 2026]
- Can Quantum Computers Break Bitcoin? An Ethereum Researcher Just Told Big Holders to Prepare for Bunker Mode - 24/7 Wall St. - October 12th, 2026 [October 12th, 2026]
- Why IonQ Is Betting Big on Quantum Cybersecurity With $1.3 Billion Elisity Acquisition - Barron's - October 12th, 2026 [October 12th, 2026]
- Quantum computing is already here - Fast Company - October 6th, 2026 [October 6th, 2026]
- U.S. GAO - Quantum Computing: Federal Actions Needed to Prepare for Emerging Cyber Threat - U.S. Government Accountability Office (.gov) - October 6th, 2026 [October 6th, 2026]
- Bank of America Put a $60 Price Target on IonQ. The Quantum Bet Is Picking Up Speed. - Barchart.com - October 6th, 2026 [October 6th, 2026]
- Quantum Computing Inc. to Attend the Maxim Growth Summit 2026 - PR Newswire - October 6th, 2026 [October 6th, 2026]
- Quantinuum partners with University of Western Australia to expand quantum computing access - Data Center Dynamics - October 6th, 2026 [October 6th, 2026]
- Infleqtion and Partners Build Optical Cavity Prototype to Shrink Quantum Sensors - HPCwire - October 6th, 2026 [October 6th, 2026]
- University of Arkansas, D-Wave to partner on quantum computing project - Talk Business & Politics - October 6th, 2026 [October 6th, 2026]
- planqc and LOGIQC Selected for Germanys Quantum Computing Competition - The Quantum Insider - October 6th, 2026 [October 6th, 2026]
- Xanadu Soars 16% on Multi-Year GlobalFoundries Deal to Deliver Quantum Computing at Scale - TIKR.com - October 6th, 2026 [October 6th, 2026]
- Rigetti Computing vs. D-Wave Quantum: Which Quantum Computing Stock Is the Better Buy? - The Motley Fool - October 6th, 2026 [October 6th, 2026]
- A quantum company's CEO and CFO will be available for one-on-one meetings in New York on Oct. 13. - Stock Titan - October 6th, 2026 [October 6th, 2026]
- Rigetti Computing vs. D-Wave Quantum: Which Quantum Computing Stock Is the Better Buy? - Yahoo Finance - October 6th, 2026 [October 6th, 2026]
- Why accessible software is the cornerstone of useful quantum computers - SDxCentral - October 6th, 2026 [October 6th, 2026]
- Second QDA Forum Focuses on Real-World Deployments And Progress of Quantum Computing - The Quantum Insider - October 6th, 2026 [October 6th, 2026]
- Quantum interactions may have locked early universe's fields into existing energy states - Phys.org - October 6th, 2026 [October 6th, 2026]
- Quantinuum and The University of Western Australia Partner to Advance Australia's Quantum Capability - PR Newswire - October 6th, 2026 [October 6th, 2026]
- QuantumGate and NEC GCC Partner on Post-Quantum Security in the UAE - The Quantum Insider - October 6th, 2026 [October 6th, 2026]
- FormFactor And 2 Other Quantum Computing Stocks To Own - Simply Wall Street - October 6th, 2026 [October 6th, 2026]
- Silicon Quantum Computing Named to Fast Companys 2026 Next Big Things in Tech List - Macau Business - October 6th, 2026 [October 6th, 2026]
- D-Wave partners with University of Arkansas for research into supply chain-based quantum applications - Data Center Dynamics - October 6th, 2026 [October 6th, 2026]
- Top 3 Quantum Computing Stocks To Watch In October 2026 - Yahoo Finance - October 6th, 2026 [October 6th, 2026]
- Nu Quantum CEO on the $15B Q-day networking proposition - SDxCentral - October 6th, 2026 [October 6th, 2026]
- Researchers and students at a Western Australian university will get access to a quantum computer. - Stock Titan - October 6th, 2026 [October 6th, 2026]
- D-Wave and University of Arkansas Launch Quantum Supply Chain Initiative - The Quantum Insider - October 6th, 2026 [October 6th, 2026]
- IQM receives Buy rating due to its on-prem quantum computer shipments: TD Cowen - Seeking Alpha - October 4th, 2026 [October 4th, 2026]
- First quantum computer to be rolled out from Amaravati by February 1, says Andhra CM as he announces Rs 500 cr deeptech fund with PanIIT - Fortune... - October 4th, 2026 [October 4th, 2026]
- Japan's Full-Stack Quantum Computer That Works At Room Temperature Has Just Gone Live, Powered By 50 Qubits - IFLScience - October 4th, 2026 [October 4th, 2026]
- A quantum computer operated in space for the first time: what it was used for and what problem it could solve - El Cronista - October 4th, 2026 [October 4th, 2026]
- Quantum computings dark horse just proved it can go universal - ScienceDaily - September 26th, 2026 [September 26th, 2026]
- Japan switches on its first full-stack room-temperature quantum computer - Live Science - September 26th, 2026 [September 26th, 2026]
- How Useful Is A Quantum Computer? Now We Have A Benchmark To Assess Just That - iflscience.com - September 26th, 2026 [September 26th, 2026]
- Chinas Qingxing Raises Nearly 100 Million Yuan to Develop Quantum-Inspired AI - The Quantum Insider - September 26th, 2026 [September 26th, 2026]
- Quantum Computers Just Recreated How Matter Was Born In The Big Bang - HotHardware - September 26th, 2026 [September 26th, 2026]