
Declaration Syntax
public OperationToffoli(
int FirstControlIndex,
int SecondControlIndex,
int TargetIndex
)
Public Sub New ( _
FirstControlIndex As Integer, _
SecondControlIndex As Integer, _
TargetIndex As Integer _
)
public:
OperationToffoli(
int FirstControlIndex,
int SecondControlIndex,
int TargetIndex
)

Parameters
- FirstControlIndex (Int32)
- The index of the first control qubit.
- SecondControlIndex (Int32)
- The index of the second control qubit.
- TargetIndex (Int32)
- The index of the target qubit. The Not operation
will be applied to this qubit if the control indexes are |1>.

Exceptions
Exception | Condition |
---|
ArgumentOutOfRangeException | Thrown if any
of the parameters are less than 0.
|
DuplicateIndexesException | Thrown if the same index is specified
for more than one parameter.
|
Assembly:
Cove.LocalSimulation (Module: Cove.LocalSimulation) Version: 1.0.0.0 (1.0.0.0)