SetIndexes Method (ControlIndex, TargetIndex)
Cove - A Practical Quantum Computer Programming Framework
SetIndexes Method (ControlIndex, TargetIndex)
NamespacesCove.LocalSimulationOperationCNotSetIndexes(Int32, Int32)
Set the control and target indexes when this operation is applied.
Declaration Syntax
C#Visual BasicVisual C++
public IOperationCNot SetIndexes(
	int ControlIndex,
	int TargetIndex
)
Public Function SetIndexes ( _
	ControlIndex As Integer, _
	TargetIndex As Integer _
) As IOperationCNot
public:
virtual IOperationCNot^ SetIndexes(
	int ControlIndex, 
	int TargetIndex
) sealed
Parameters
ControlIndex (Int32)
Index of the control qubit, must be >= 0.
TargetIndex (Int32)
Index of the target qubit, must be >= 0.
Return Value
A reference to this operation after this method has been performed.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if either of the parameters is less than 0.
DuplicateIndexesExceptionThrown if the same index is specified for both parameters.

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