Register Gate1 Method A Sandcastle Documented Class Library

Performs any arbitrary unitary operation on target qubit. The operation is described by unitary matrix of complex numbers, as follows:

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

public void Gate1(
	Complex[,] matrix,
	int target,
	Nullable<int> control = null
)

Parameters

matrix
Type:  Complex 
The 2x2 matrix of complex numbers, which describes the unitary operation.
target
Type: System Int32
The position of target qubit in register (0 indicates the Least Significant Bit).
control (Optional)
Type: System Nullable Int32 
Optional argument. If given, the method performs controlled unitary operation. This argument destribes the control qubit's position.
See Also