SwapExtension Swap Method (QuantumComputer, Register, Register, RegisterRef)A Sandcastle Documented Class Library
The controlled Swap. Swaps the values of two given qubits, if the control qubit is set.

Namespace: Quantum.Operations
Assembly: Quantum (in Quantum.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void Swap(
	this QuantumComputer comp,
	Register r1,
	Register r2,
	RegisterRef control
)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type QuantumComputer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also