Pictures of quantum computers show either a small chip or a tall metal structure hung with cables. Both belong to the same machine, and neither is the whole of it: most of the bulk exists to keep a small number of qubits undisturbed and to communicate with them. The principles of the computation are covered in what is quantum computing, and the differences from an ordinary computer in quantum vs classical computers.
What does a quantum computer consist of?
Four layers work together:
- Quantum processor (QPU). The component that holds the qubits. Depending on the technology, these are superconducting circuits on a chip, individual ions or atoms held in place by electric fields or laser light, or particles of light.
- Protective environment. Qubits lose their state when heat, stray fields or vibration disturb them. A superconducting chip is mounted in a dilution refrigerator, which cools it to a small fraction of a degree above absolute zero. Ions and neutral atoms are instead held in a vacuum chamber, where lasers cool and position them.
- Control electronics. Instruments that generate the precisely timed microwave or laser pulses that act on the qubits, and that amplify and digitise the faint signals returned when the qubits are measured.
- Classical computer and software stack. Software translates the user’s program into pulse sequences suited to the specific processor, schedules the runs, collects the results and processes them.
How does a computation run from start to finish?
A computation follows the same steps on almost every machine:
- Prepare. Every qubit is set to a known starting state, normally 0.
- Apply the operations. On a gate-model machine the control electronics play a sequence of quantum gates, which together form a circuit: they put qubits into superposition, entangle them and arrange the interference that the algorithm relies on. A quantum annealer has no gates; it follows an annealing schedule, changing the system gradually from an easy starting configuration to one that encodes the problem.
- Measure. Each qubit is read out and gives a 0 or a 1. The quantum state is gone after this step.
- Repeat. The same sequence is run again, typically hundreds or thousands of times. Each run is called a shot.
- Post-process. The classical computer turns the collected bit strings into a result: a histogram, an average value or the best solution found.
Steps 1 to 3 must fit within the short time for which the qubits keep their quantum state, which limits the length of a circuit.
Why is the answer probabilistic?
A measurement does not reveal the full quantum state. It returns one bit string, chosen at random with probabilities that the circuit has shaped. A good algorithm makes the right answers far more likely than the wrong ones, but seldom certain, so a single shot proves little.
Repetition turns random single outcomes into dependable statistics, much as an opinion poll does: one respondent says little about a country, a thousand give a usable estimate. The comparison fails in one respect: a person polled already had an opinion, whereas a qubit in superposition has no definite value until it is measured.
Hardware noise adds a second source of scatter today. Gates are slightly inaccurate and qubits are disturbed during the run, so some shots are simply wrong.
How do people use a quantum computer in practice?
Mostly from a distance. A user writes a program on an ordinary computer with a software development kit, sends it over the internet to a provider, waits in a queue and receives the measurement results. Access through the cloud is the norm because the machines are expensive to build and need specialist staff to keep them calibrated. Some research centres and companies do install a machine on their own premises.
The same tools usually include simulators, classical programs that imitate a small quantum computer, so that a circuit can be tested before it is sent to real hardware. Practical work is also mostly hybrid: a classical program does the bulk of the task and calls the quantum processor for the steps it may be suited to.
What can today’s machines do, and what can they not?
Current machines can run short circuits well enough for research, teaching, tests of algorithms and error-correction methods, and pilot projects on reduced versions of industrial problems.
They cannot yet run long computations, because errors accumulate with every operation; running Shor’s algorithm against real cryptographic keys is far out of reach. Nor has any machine shown a clear, repeatable advantage over the best classical methods on a commercially relevant problem. The expected remedy is quantum error correction, which combines many physical qubits into one more reliable logical qubit; experiments have confirmed the principle, but machines of the required size have yet to be built.
How Q&Co can help
Q&Co works on both sides of the machine: it develops quantum software and hybrid algorithms, advises on quantum hardware selection and designs superconducting QPUs. If you want to know which kind of machine, if any, fits your problem, contact us.