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.
- This Quantum Computing Stock Is Poised for a Sharp Selloff in the Second Half of 2026 - Yahoo Finance - July 11th, 2026 [July 11th, 2026]
- Oratomic raises $300M to build a viable quantum computer that needs only 20K qubits - TechCrunch - July 11th, 2026 [July 11th, 2026]
- Quantum computing wielded to create extremely rare material critical to nuclear fusion - Live Science - July 11th, 2026 [July 11th, 2026]
- Quantum computing is coming. It will deliver extraordinary benefits - Washington Examiner - July 11th, 2026 [July 11th, 2026]
- Quantum computers are coming for crypto. The industry is racing to prepare - CTech - July 11th, 2026 [July 11th, 2026]
- Atom Computings Kristen Pudenz: Error Correction Is Bringing Quantums Future Into Focus - MeriTalk - July 11th, 2026 [July 11th, 2026]
- SEALSQ and Quobly Execute $5M Commercial Accord to Embed Post-Quantum Cryptography in Silicon Quantum Processors - Quantum Computing Report - July 11th, 2026 [July 11th, 2026]
- 1 Incredible Quantum Computing Stock That Could Make Investors a Fortune - The Motley Fool - July 11th, 2026 [July 11th, 2026]
- 'The Quantum Revolution: A Guide for Allied Policymakers' - by CWP alum Eyck Freymann | - Columbia-Harvard China and the World Program - July 11th, 2026 [July 11th, 2026]
- How to pack a problem: Now with 90% less baggage - University of Tennessee at Chattanooga - July 11th, 2026 [July 11th, 2026]
- QUDORA Partners with QAI to Bring Ion-Trap Quantum Computing to South Korea - HPCwire - July 11th, 2026 [July 11th, 2026]
- Peter Shors algorithm could break the internet but he's not worried - New Scientist - July 11th, 2026 [July 11th, 2026]
- Fort Lewis College is making quantum computing and nanotechnology big with use of grant - Front - The Journal - July 11th, 2026 [July 11th, 2026]
- ORNL, IBM, Cleveland Clinic Use Quantum Computing to Advance Tritium Research - ExecutiveGov - July 11th, 2026 [July 11th, 2026]
- Utah's Quantum Initiative Has a Plan: Inside the Third Roundtable's Draft Strategy - TechBuzz News - July 11th, 2026 [July 11th, 2026]
- Quantum Computing Outpaces Sector in a Year: Is the Stock Still a Buy? - TradingView - July 11th, 2026 [July 11th, 2026]
- Heidelberg physicists just united two opposing quantum theories - ScienceDaily - July 11th, 2026 [July 11th, 2026]
- SEALSQ and Quobly Sign $5 Million Commercial Agreement to Integrate Post-Quantum Security into Next-Generation Silicon Quantum Computing Platforms -... - July 11th, 2026 [July 11th, 2026]
- Oak Ridge National Lab, Cleveland Clinic, and IBM Achieve First-Known Computations of Fusion Materials on a Quantum Computer - IBM Newsroom - July 7th, 2026 [July 7th, 2026]
- Oak Ridge National Lab, Cleveland Clinic, and IBM Achieve First-Known Computations of Fusion Materials on a Quantum Computer - PR Newswire - July 7th, 2026 [July 7th, 2026]
- Microsoft's claims over its quantum chip questioned in Nature article - BBC - June 26th, 2026 [June 26th, 2026]
- A new vision for quantum computing takes a big step forward, with new grant - YaleNews - June 26th, 2026 [June 26th, 2026]
- Uncertain quantum future presents existential threat to US military missions, DOD warns - DefenseScoop - June 26th, 2026 [June 26th, 2026]
- University of Maryland Grant Targets Quantum and AI Tools for Cancer Research - The Quantum Insider - June 26th, 2026 [June 26th, 2026]
- A Quantum Leap: The Technology Trying to Reinvent the Computer - marketscreener.com - June 26th, 2026 [June 26th, 2026]
- Meeting Trump's 2030 Quantum Deadline Will be Expensive, Complex - Dark Reading - June 26th, 2026 [June 26th, 2026]
- Trump Executive Orders Home in on Useful Quantum Computing - govtech.com - June 26th, 2026 [June 26th, 2026]
- Will operationalized quantum computing hit the public soon? - IT Brew - June 26th, 2026 [June 26th, 2026]
- Pentagon Sets Hard 2031 Deadline for Quantum-Resistant Encryption, Names Nuclear Command at Risk - Tech Times - June 26th, 2026 [June 26th, 2026]
- New R Street Study Warns U.S. Critical Infrastructure Is Running Out of Time to Prepare for Quantum Threats - R Street Institute - June 26th, 2026 [June 26th, 2026]
- The U.S. Government Is Betting Billions on Quantum Computing. These 3 Stocks Are the Biggest Winners. - The Motley Fool - June 26th, 2026 [June 26th, 2026]
- Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum Sent Shockwaves Through Wall Street With This $857 Million Warning - Yahoo... - June 26th, 2026 [June 26th, 2026]
- Trump Wants to Aggressively Fast Track Quantum Computing Projects - Yahoo Finance - June 26th, 2026 [June 26th, 2026]
- Trumps Orders Intended to Advance US Quantum Computing Industry - The Well News - June 26th, 2026 [June 26th, 2026]
- Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum Sent Shockwaves Through Wall Street With This $857 Million Warning - The Motley... - June 26th, 2026 [June 26th, 2026]
- The PQC Silicon Is Here Today for Tomorrows Quantum Threats - EE Times - June 26th, 2026 [June 26th, 2026]
- Texas A&M Supercomputer Named Most Powerful Among US Universities - HPCwire - June 26th, 2026 [June 26th, 2026]
- Executive orders lift Colorados quantum stocks and aspirations - Colorado Public Radio - June 24th, 2026 [June 24th, 2026]
- A new quantum computer sets a high watermark for accuracy are we on the verge of a big breakthrough? - The Conversation - June 24th, 2026 [June 24th, 2026]
- Bull and Alice & Bob Partner up to Bring Quantum Computers into HPC - The Quantum Insider - June 24th, 2026 [June 24th, 2026]
- Why Investors Are Finally Separating Quantum Computing Winners From Losers - 24/7 Wall St. - June 24th, 2026 [June 24th, 2026]
- With major conference in town, Mass. seeks to boost quantum computing efforts - The Boston Globe - June 24th, 2026 [June 24th, 2026]
- Quantum Computing Is Finally Here. But What Is It? - Bloomberg.com - June 24th, 2026 [June 24th, 2026]
- Trump signs executive orders to 'supercharge' quantum computing - ABC News - Breaking News, Latest News and Videos - June 24th, 2026 [June 24th, 2026]
- Trump Fast-Tracks Quantum Computing With New Executive Orders - Barron's - June 24th, 2026 [June 24th, 2026]
- Quantum computer furthers healthcare research at Cleveland Clinic - Spectrum News - June 24th, 2026 [June 24th, 2026]
- Chicago Missed the Tech Boom. Quantum Computing Gives It a Second Chance. - WSJ - June 24th, 2026 [June 24th, 2026]
- Quantum computing is often seen as a risk to bitcoin. Now Trump wants to develop it. - CoinDesk - June 24th, 2026 [June 24th, 2026]
- Trump Seeks to Boost Quantum Computing With New Executive Orders - WSJ - June 24th, 2026 [June 24th, 2026]
- The Mathematical Tools Trailblazing the Quantum Future - Simons Foundation - June 24th, 2026 [June 24th, 2026]
- D-Wave Quantum: Trumps Orders Make This Speculative Buy Worth Watching (NYSE:QBTS) - Seeking Alpha - June 24th, 2026 [June 24th, 2026]
- Executive orders seek to hasten quantum computingand guard against its use - Defense One - June 24th, 2026 [June 24th, 2026]
- Physicist reacts to Trump executive order calling for a quantum computer - NBC News - June 24th, 2026 [June 24th, 2026]
- 3 Quantum Computing Stocks With More Upside Than SpaceX - Yahoo Finance - June 24th, 2026 [June 24th, 2026]
- Quantum Computing Stocks Mixed Amid Trump Executive Orders, 2028 Target - Investor's Business Daily - June 24th, 2026 [June 24th, 2026]
- The US government wants a working quantum computer by 2028 and quantum-resistant encryption by 2031 - TechSpot - June 24th, 2026 [June 24th, 2026]
- Donald Trump Signs Quantum Computing Orders What Could It Mean for Bitcoin and XRP? - Yahoo Finance - June 24th, 2026 [June 24th, 2026]
- QuantWare and Maybell Partner to Maximize Compute-Per-Watt Performance of VIO-40K systems - The Quantum Insider - June 24th, 2026 [June 24th, 2026]
- Quantum computing is finally here. But what is it? - BusinessWorld Online - June 24th, 2026 [June 24th, 2026]
- White House Looks to Speed Up Transition to Quantum Computing with Pair of Executive Orders - PYMNTS.com - June 24th, 2026 [June 24th, 2026]
- The post-quantum EO is an important milestone. Now its time to get to work - The Cloudflare Blog - June 24th, 2026 [June 24th, 2026]
- Quantum Motion and NVIDIA Simplify Molecular Modeling on Quantum Computers - ForkLog - June 24th, 2026 [June 24th, 2026]
- The Path to Quantum Advantage Is Built on Readiness, Not Hype, IBM Report Suggests - The Quantum Insider - June 22nd, 2026 [June 22nd, 2026]
- Is the Dogecoin Burn Address Really Safe from Quantum Threat? - Cryptonews.net - June 22nd, 2026 [June 22nd, 2026]
- GCS highlights exascale, AI factories and hybrid computing at ISC 2026 - Scientific Computing World - June 22nd, 2026 [June 22nd, 2026]
- Amazon Says Commercially Useful Quantum Computers Are Moving Closer To Becoming a Reality - International Business Times - June 22nd, 2026 [June 22nd, 2026]
- QBTS vs. RGTI vs. IONQ: Which Quantum Computing Stock Could Deliver the Biggest Returns? - TipRanks - June 19th, 2026 [June 19th, 2026]
- Xanadu Quantum vs. IonQ: The Better Quantum Computing Stock Buy for 2026 - Yahoo Finance - June 19th, 2026 [June 19th, 2026]
- AMD Advances the Hybrid Future of Quantum Computing - AMD - June 19th, 2026 [June 19th, 2026]
- Algorand Wants to Be Quantum-Proof by 2027, Three Years Before the NSA - International Business Times - June 19th, 2026 [June 19th, 2026]
- Sooner than expected? Useful quantum error correction promised for 2028. - Ars Technica - June 19th, 2026 [June 19th, 2026]
- QuEra targets fault-tolerant quantum computing with new Libra system and expanded AWS partnership - New Electronics - June 19th, 2026 [June 19th, 2026]
- Atom Computing and Nu Quantum Partner to Scale Neutral Atom Quantum Computers - The Quantum Insider - June 19th, 2026 [June 19th, 2026]
- Quantum hyperdimensional computing can work 500 times faster than other methods - Phys.org - June 19th, 2026 [June 19th, 2026]
- Algorand Plans to Be Ready for Quantum Computing Threat by End of 2027 - Decrypt - June 19th, 2026 [June 19th, 2026]
- New Industry Study Finds Quantum Computing Has Entered a Capability Era, With Early Movers Building an Advantage Later Entrants Will Struggle to Close... - June 19th, 2026 [June 19th, 2026]
- Prediction: This Quantum Computing Stock Is Going to Plummet in the Second Half of 2026 - Yahoo Finance - June 19th, 2026 [June 19th, 2026]
- Cleveland Clinic & IBM Forum Charts AI And Quantum Impact On Detection - Quantum Zeitgeist - June 19th, 2026 [June 19th, 2026]
- Diraq Expands U.S. Presence with Palo Alto Office - The Quantum Insider - June 19th, 2026 [June 19th, 2026]
- Xanadu Quantum vs. IonQ: The Better Quantum Computing Stock Buy for 2026 - The Motley Fool - June 19th, 2026 [June 19th, 2026]