Constructor overloaded to also specify the control and target
qubits at construction.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public OperationCNot( int ControlIndex, int TargetIndex )
Public Sub New ( _ ControlIndex As Integer, _ TargetIndex As Integer _ )
public: OperationCNot( int ControlIndex, int TargetIndex )
Parameters
- ControlIndex (Int32)
- The index in the register that will be the control qubit.
- TargetIndex (Int32)
- The index in the register that will be the target qubit