Not

The classical logical NOT operator is used to perform a classical NOT operation on the binary register or part of the binary register.

In the following example the instruction x q[0:1] will bring both qubits in the \lvert 1 \rangle state. After measurement of the qubits, the binary register will read 11, which can be checked in the raw data file by the display_binary command on line 5. Line 6 flips the binary register value for qubit 0, which can be checked by the second display_binary instruction. The final state of the measurement register will be 10.