CNOT

Format:
CN (control bit labels, target bit labels);
The control bit labels is a string in the style of ``1-6'' (qubit 1 to qubit 6) and/or ``1 o3 5'' (qubit 1, o3, and 5). Here, ``o'' is used to specify a 0-control bit, i.e., ``o3'' means that the X gate is applied to the target bits under the condition that the bit 3 is 0 besides the condition of the other control bits. The target 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).



root
2004-11-07