An available type of observable for a measurement in this software is currently only the type: with where is a number written by using binary numbers ( ) and are computational basis vectors of qubits whose labels are specified by a user.
M (bit labels, );* The ``bit labels'' is a string in the style of ``1-6'' (qubit 1 to qubit 6) and/or ``1 3 5'' (qubit 1, 3, and 5). is the string of the binary values to be measured for the qubits of ``bit labels''. You may type like this:
M (1-8, 1 0 0 1 0 1 1 1);The qubits that are not measured will properly transit to the state after the measurement.
> init 0 0; > H(1); CN(1,2); > showb; 0.707107|00> + 0.707107|11> > M(1,0); > showb; 1|00>
M(1);instead of
M(1,0);
.