Cove - A Practical Quantum Computer Programming Framework
NegatedCNot Method (ControlIndex, TargetIndex)
NamespacesCove.BaseIQuantumAlgorithmsNegatedCNot(Int32, Int32)
Returns the operations to perform the negated CNot. The normal CNot operation flips the target qubit when the control is 1, otherwise no change is made. This (the negated) flips the target when the control is 0 instead of 1.
Declaration Syntax
C#Visual BasicVisual C++
List<IQuantumOperation> NegatedCNot(
	int ControlIndex,
	int TargetIndex
)
Function NegatedCNot ( _
	ControlIndex As Integer, _
	TargetIndex As Integer _
) As List(Of IQuantumOperation)
List<IQuantumOperation^>^ NegatedCNot(
	int ControlIndex, 
	int TargetIndex
)
Parameters
ControlIndex (Int32)
Index of the control qubit.
TargetIndex (Int32)
Index of the target qubit.
Return Value
The operations to performt he negated CNot.
Exceptions
ExceptionCondition
DuplicateIndexesExceptionThrown if the control and target indexes are the same.
ArgumentOutOfRangeExceptionThrown if either parameter is less than 0.

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