Cove - A Practical Quantum Computer Programming Framework
OperationSwap Method
NamespacesCove.LocalSimulationQuantumRegisterOperationSwap()()()
Apply the swap operation to the qubits in the register.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister OperationSwap()
Public Function OperationSwap As IQuantumRegister
public:
virtual IQuantumRegister^ OperationSwap() sealed
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
SizeMismatchExceptionThrown if the register does not contain two qubits.
DuplicateIndexesExceptionThrown if the indexes specified refer to the same qubit.

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