Algorithmic cooling
A qubit (or quantum bit) is a unit of information that can be in a superposition of two states, denoted as formula_1 and formula_2. The general superposition can be written as formula_3where formula_4 and formula_5. If one measures the state of the qubit in the orthonormal basis composed of formula_1 and formula_2, one gets the result formula_1 with probability formula_9 and the result formula_2 with probability formula_11.
Quantum Computation Language
qureg x1[2]; // 2-qubit quantum register x1
qureg x2[2]; // 2-qubit quantum register x2
H(x1); // Hadamard operation on x1
H(x2[1]); // Hadamard operation on the first qubit of the register x2
Since the qcl interpreter uses qlib simulation library, it is possible to observe the internal state of the quantum machine during execution of the quantum program.