Cove - A Practical Quantum Computer Programming Framework
OperationCNot Method (ControlIndex, TargetIndex)
NamespacesCove.LocalSimulationQuantumRegisterOperationCNot(Int32, Int32)
Apply the CNot operation to the register.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister OperationCNot(
	int ControlIndex,
	int TargetIndex
)
Public Function OperationCNot ( _
	ControlIndex As Integer, _
	TargetIndex As Integer _
) As IQuantumRegister
public:
virtual IQuantumRegister^ OperationCNot(
	int ControlIndex, 
	int TargetIndex
) sealed
Parameters
ControlIndex (Int32)
Index of the qubit which will be the control.
TargetIndex (Int32)
Index of the qubit which will be the target.
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if either of the indexes are invalid for this register.
DuplicateIndexesExceptionThrown if the ControlIndex and TargetIndex specify the same qubit.

Assembly: Cove.LocalSimulation (Module: Cove.LocalSimulation) Version: 1.0.0.0 (1.0.0.0)