Initiating a run
Running your algorithm on one of the available backends is initiated by clicking on the RUN
button. A popup window will appear that shows you:
- A selection for the file that needs to be executes (e.g. source file or a previously compiled file)
- The backend that shall be used for this experiment
- The name of the current experiment (can be changed by the user)
- The number of shots of this experiment (can be changed by the user)
Executing algorithms on a hardware backend
When you run a quantum algorithm on a hardware backend the list of quantum operations is limited by the set of operations that is supported by the backend and the topology of the chip. The list of allowed operations for the current backends can be found here.
For hardware backends, the number of qubits in your algorithm must always be set equal to the number of qubits on the chip, although you do not need to perform operations on all qubits.
All qubits will be initialized in the ground state or |0> state in the z-basis.
When you do not put any measure
statements at the end of your algorithm, by default all qubits will be measured in the z-direction. When you do close your algorithm with a measurement on one or more qubits, only those qubits will be measured and the result for non-measured qubits will be set to the default value of zero.
In most cases you will have to execute multiple shots in order to get some statistics on your measurement and to reduce the effects of decoherence, leakage, and control imperfections. On a hardware backend, when you execute N shots of your algorithm, all shots will be executed in succession. For each shot, the final measurements will be stored in the binary register and written to the raw data file, see displaying and downloading your results. The histogram will show the probability distribution of each state of the binary register.