OperationToffoli Method (FirstControlIndex, SecondControlIndex, TargetIndex)
Cove - A Practical Quantum Computer Programming Framework
OperationToffoli Method (FirstControlIndex, SecondControlIndex, TargetIndex)
NamespacesCove.BaseIQuantumRegisterOperationToffoli(Int32, Int32, Int32)
Apply the Toffoli (controlled controlled not) operation to the register.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister OperationToffoli(
	int FirstControlIndex,
	int SecondControlIndex,
	int TargetIndex
)
Function OperationToffoli ( _
	FirstControlIndex As Integer, _
	SecondControlIndex As Integer, _
	TargetIndex As Integer _
) As IQuantumRegister
IQuantumRegister^ OperationToffoli(
	int FirstControlIndex, 
	int SecondControlIndex, 
	int TargetIndex
)
Parameters
FirstControlIndex (Int32)
Index of the first control qubit.
SecondControlIndex (Int32)
Index of the second control qubit.
TargetIndex (Int32)
Index of the target qubit.
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if any of the indexes are out of range.
DuplicateIndexesExceptionThrown if the indexes specified refer to the same qubit.

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