A quantum processor is a delicate laboratory instrument. Many types work only inside refrigerators or vacuum chambers, need frequent calibration and are looked after by specialist staff. Very few organisations own one. Almost everyone else, from students to research groups and companies running pilots, uses quantum computers remotely, in the way they use other computing resources in the cloud.
What does a quantum cloud service offer?
Offers differ, but most include the following:
- Real quantum processors, often several of them with different sizes and properties. Some platforms give access to hardware from several manufacturers in one place.
- Simulators, which are classical programs that calculate what a quantum processor would return.
- Software development kits for writing and submitting programs. These are usually open-source Python libraries, described in our article on quantum programming.
- Sometimes hybrid solvers, which accept a problem and divide the work between classical and quantum resources on the provider’s side. The idea is the same as in hybrid algorithms.
IBM, for example, offers cloud access to its superconducting processors, and D-Wave offers its quantum annealers through a cloud service called Leap.
How does a job run?
- You write the program: a circuit, or an optimisation problem for an annealer.
- You choose a backend, the simulator or processor that will execute the job.
- You submit the job. The software first compiles the circuit for the chosen processor and then sends it over the internet.
- You wait. Processors are shared, so the job joins a queue.
- The processor runs the circuit many times and measures the qubits at the end of every run.
- You receive the results: a table showing how often each string of 0s and 1s was measured. Your own classical code analyses it.
Hybrid algorithms repeat this loop many times, with a classical optimiser adjusting the circuit between rounds. If every round has to queue again, waiting dominates the total time, so some services offer ways of keeping the rounds of one job together.
Simulator or real hardware: which should you use?
| Simulator | Real processor | |
|---|---|---|
| What it is | A classical program that computes the behaviour of ideal or modelled qubits | Physical qubits in the provider’s facility |
| Best for | Developing and debugging, small circuits, training | Seeing the effect of real noise, benchmarking, circuits too large to simulate |
| Limit | Memory and time grow exponentially with the number of qubits | Noise, queues and cost per use |
The sensible order is to develop on a simulator and move to hardware once the program is known to be correct. A simulator can include a noise model, but only the real machine shows how a method copes with the errors of a particular processor. The choice of processor matters as well, because qubit technologies differ in speed, connectivity and error rates.
What should you check before choosing a service?
- Cost model. Charges may be based on processor time, on the number of jobs and repetitions, or on a subscription or reserved access. Simulators and limited introductory access are often cheap or free. Hybrid algorithms can consume far more runs than expected, so estimate usage before starting.
- Queue times. Waiting varies with demand and with the machine, and processors are regularly taken offline for calibration and maintenance.
- Data sensitivity. The program and its input data leave your network. Check in which country they are processed, how long they are stored and whether this is compatible with your data-protection and confidentiality obligations. In many cases the quantum processor needs only an abstract mathematical form of the problem, not the business data behind it.
- Lock-in. Prefer open-source, hardware-neutral software kits and common circuit formats such as OpenQASM, and keep the formulation of the problem separate from provider-specific code. The same work can then be run elsewhere.
When is an on-premises system worth considering?
Installing a quantum computer on site is considered mainly by research centres, national programmes and organisations that need dedicated access, must keep data and operations inside their own facilities, or want to build hardware expertise. It brings substantial obligations: suitable space, cooling and shielding, specialist staff, and a machine that may be overtaken by newer generations within a few years.
For most companies the cloud is the reasonable place to begin, as discussed in our article on where to start with quantum computing.
How Q&Co can help
Q&Co supports organisations with quantum hardware selection, applied quantum computing pilots and training. If you would like help in choosing a platform or setting up a first pilot, contact us.