cirq.PhaseGradientGate

class cirq.PhaseGradientGate(*, num_qubits: int, exponent: Union[float, sympy.core.basic.Basic])[source]

Phases each state |k⟩ out of n by e^(2piik/nexponent).

__init__(*, num_qubits: int, exponent: Union[float, sympy.core.basic.Basic])[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

controlled([num_controls, control_values, …])

Returns a controlled version of this gate. If no arguments are

num_qubits()

The number of qubits this gate acts on.

on(*qubits)

Returns an application of this gate to the given qubits.

validate_args(qubits)

Checks if this gate can be applied to the given qubits.

wrap_in_linear_combination([coefficient])