GatesExtension PhaseKick Method A Sandcastle Documented Class Library

Performs a phase kick (or phase shift) on the the registers' state. The operation is represented by the unitary matrix:

The controlled version of this operation can be written as an other unitary matrix:

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

public static void PhaseKick(
	this QuantumComputer comp,
	double gamma,
	RegisterRef target,
	params RegisterRef[] controls
)

Parameters

comp
Type: Quantum QuantumComputer
The QuantumComputer instance.
gamma
Type: System Double
The phase value.
target
Type: Quantum RegisterRef
The reference to target qubit.
controls
Type:  Quantum RegisterRef 

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