Register CNot Method A Sandcastle Documented Class Library

Performs a controlled not operation (C-NOT Gate). The target bit gets inverted if the control bit is enabled. The operation can be written as the unitary operation matrix:

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

public void CNot(
	int target,
	int control
)

Parameters

target
Type: System Int32
The position of target qubit in register (0 indicates the Least Significant Bit).
control
Type: System Int32
The position of control qubit in register (0 indicates the Least Significant Bit).
See Also