cirq.PhasedXPowGate

class cirq.PhasedXPowGate(*, phase_exponent: Union[float, sympy.core.symbol.Symbol], exponent: Union[float, sympy.core.symbol.Symbol] = 1.0, global_shift: float = 0.0)[source]

A gate equivalent to the circuit ───Z^-p───X^t───Z^p───.

__init__(*, phase_exponent: Union[float, sympy.core.symbol.Symbol], exponent: Union[float, sympy.core.symbol.Symbol] = 1.0, global_shift: float = 0.0) → None[source]
Parameters:
  • phase_exponent – The exponent on the Z gates conjugating the X gate.
  • exponent – The exponent on the X gate conjugated by Zs.
  • global_shift – How much to shift the operation’s eigenvalues at exponent=1.

Methods

controlled_by(*control_qubits) Returns a controlled version of this gate.
num_qubits() The number of qubits this gate acts on.
on(*qubits) Returns an application of this gate to the given qubits.
on_each(*targets) Returns a list of operations apply this gate to each of the targets.
validate_args(qubits) Checks if this gate can be applied to the given qubits.
wrap_in_linear_combination(coefficient, …)

Attributes

exponent The exponent on the central X gate conjugated by the Z gates.
phase_exponent The exponent on the Z gates conjugating the X gate.