The measurement register is displayed as a binary string, following the convention that the least significant bit is the rightmost bit and the most significant bit is the leftmost bit. The leftmost bit is for the qubit with the highest index. When shown in histograms, the rightmost bit is for the measured qubit with the lowest index (q). So, q corresponds to qubit 0 and b corresponds to the measurement outcome of measurements on q. The index used for addressing the qubit register and the binary register are identical. The binary register is often referred to as the measurement register.Īll entries in the binary register are initialized to zero.Įntries in the binary register can be used to control your quantum algorithm e.g. The binary register is used to store the outcomes of qubit measurements, the so-called declared states. As an example: qubits 5 creates a qubit register for 5 qubits PLUS a binary register with 5 entries. When you create a qubit register with the qubits instruction a binary register is created with the same number of entries as the qubit register.
0 Comments
Leave a Reply. |