OperationFredkin Constructor (ControlIndex, FirstSwapIndex, SecondSwapIndex)
Cove - A Practical Quantum Computer Programming Framework
OperationFredkin Constructor (ControlIndex, FirstSwapIndex, SecondSwapIndex)
NamespacesCove.LocalSimulationOperationFredkinOperationFredkin(Int32, Int32, Int32)
Overload the constructor to also set the target indexes at construction
Declaration Syntax
C#Visual BasicVisual C++
public OperationFredkin(
	int ControlIndex,
	int FirstSwapIndex,
	int SecondSwapIndex
)
Public Sub New ( _
	ControlIndex As Integer, _
	FirstSwapIndex As Integer, _
	SecondSwapIndex As Integer _
)
public:
OperationFredkin(
	int ControlIndex, 
	int FirstSwapIndex, 
	int SecondSwapIndex
)
Parameters
ControlIndex (Int32)
The control index
FirstSwapIndex (Int32)
The first swap index
SecondSwapIndex (Int32)
The second swap index
Exceptions
ExceptionCondition
DuplicateIndexesExceptionThrown if any of the indexes are duplicates.
ArgumentOutOfRangeExceptionThrown if any of the indexes specified are less than 0.

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