Cove - A Practical Quantum Computer Programming Framework
NegatedCNot Method (ControlIndex, TargetIndex)
NamespacesCove.LocalSimulationQuantumAlgorithmsNegatedCNot(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++
public List<IQuantumOperation> NegatedCNot(
	int ControlIndex,
	int TargetIndex
Public Function NegatedCNot ( _
	ControlIndex As Integer, _
	TargetIndex As Integer _
) As List(Of IQuantumOperation)
virtual List<IQuantumOperation^>^ NegatedCNot(
	int ControlIndex, 
	int TargetIndex
) sealed
ControlIndex (Int32)
Index of the control qubit.
TargetIndex (Int32)
Index of the target qubit.
Return Value
The operations to performt he negated CNot.
DuplicateIndexesExceptionThrown if the control and target indexes are the same.
ArgumentOutOfRangeExceptionThrown if either parameter is less than 0.

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