CNOT
CNOT(integer site0, integer site1) -> OperatorNamed
Returns a spin-1/2 OperatorNamed for the CNOT (controlled-NOT) gate, taking two individual site indices.
Parameters
- site0: The control qubit site index.
- site1: The target qubit site index.
Example
var cnot1 = CNOT(0, 1)