Register CPhaseShift Method A Sandcastle Documented Class Library

Performs a conditional phase kick (or phase shift) on the register's state by the angle PI / 2 ^ dist. The operation is represented by the unitary matrix:

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

public void CPhaseShift(
	int dist,
	int target,
	params int[] controls
)

Parameters

dist
Type: System Int32
Value of k in the angle of phase shift. The angle equals: PI / 2 ^ k.
target
Type: System Int32
The position of target qubit in register (0 indicates the Least Significant Bit).
controls
Type:  System Int32 
The positions of control qubits in register (0 indicates the Least Significant Bit).
See Also