Perform the Fredkin operation (controlled swap).
| C# | Visual Basic | Visual C++ |
public IQuantumRegister OperationFredkin( int[] Indexes )
Public Function OperationFredkin ( _ Indexes As Integer() _ ) As IQuantumRegister
public: virtual IQuantumRegister^ OperationFredkin( array<int>^ Indexes ) sealed
- Indexes (array< Int32 >[]()[])
- Indexes of the qubits to perform the operation on. The first is the control, the second and third are the ones to swap.
A reference to this register after the operation has been applied.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if the indexes specified do not
exist in the register. |
| DuplicateIndexesException | Thrown if the indexes specified
refer to the same qubit. |
| NotImplementedException | This method is not yet
implemented. |