Register Hadamard Method A Sandcastle Documented Class Library

Applies the Hadamard gate to the target qubit. The unitary matrix for this operation is:

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

public void Hadamard(
	int target,
	Nullable<int> control = null


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 applies a controlled Hadamard gate. This argument destribes the control qubit's position.
See Also