Cove - A Practical Quantum Computer Programming Framework
OperationFredkin Method (ControlIndex, XIndex, YIndex)
NamespacesCove.BaseIQuantumRegisterOperationFredkin(Int32, Int32, Int32)
Perform the Fredkin operation (controlled swap).
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister OperationFredkin(
	int ControlIndex,
	int XIndex,
	int YIndex
Function OperationFredkin ( _
	ControlIndex As Integer, _
	XIndex As Integer, _
	YIndex As Integer _
) As IQuantumRegister
IQuantumRegister^ OperationFredkin(
	int ControlIndex, 
	int XIndex, 
	int YIndex
ControlIndex (Int32)
Index of the control qubit.
XIndex (Int32)
qubit to swap
YIndex (Int32)
qubit to swap
Return Value
A reference to this register after the operation has been applied.
IndexOutOfRangeExceptionThrown if the indexes specified do not exist in the register.
DuplicateIndexesExceptionThrown if the indexes specified refer to the same qubit.

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