Perform the Fredkin operation (controlled swap).
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IQuantumRegister OperationFredkin()
Public Function OperationFredkin As IQuantumRegister
public: virtual IQuantumRegister^ OperationFredkin() sealed
Return Value
A reference to this register after the operation has been applied.
Exceptions
Exception | Condition |
---|---|
SizeMismatchException | Thrown if this is not a register of 3 qubits |