Cove - A Practical Quantum Computer Programming Framework
OperationToffoli Method (Indexes)
NamespacesCove.BaseIQuantumRegisterOperationToffoli(array<Int32>[]()[])
Perform the Toffoli (controlled controlled not) operation to the register.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister OperationToffoli(
	int[] Indexes
)
Function OperationToffoli ( _
	Indexes As Integer() _
) As IQuantumRegister
IQuantumRegister^ OperationToffoli(
	array<int>^ Indexes
)
Parameters
Indexes (array< Int32 >[]()[])
The indexes of the qubits that the operation applies to. The first two indexes are the control and the third is the target.
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.
SizeMismatchExceptionThrown if there are not three elements in the Indexes array.
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)