cirq.RotXGate

class cirq.RotXGate(*, half_turns: Union[cirq.value.symbol.Symbol, float, NoneType] = None, rads: Union[float, NoneType] = None, degs: Union[float, NoneType] = None)[source]

Fixed rotation around the X axis of the Bloch sphere.

__init__(*, half_turns: Union[cirq.value.symbol.Symbol, float, NoneType] = None, rads: Union[float, NoneType] = None, degs: Union[float, NoneType] = None) → None[source]

Initializes the gate.

At most one angle argument may be specified. If more are specified, the result is considered ambiguous and an error is thrown. If no angle argument is given, the default value of one half turn is used.

Parameters:
  • half_turns – The relative phasing of X’s eigenstates, in half_turns.
  • rads – The relative phasing of X’s eigenstates, in radians.
  • degs – The relative phasing of X’s eigenstates, in degrees.

Methods

extrapolate_effect(factor)
inverse()
is_parameterized() Whether the effect is parameterized.
known_qasm_output(qubits, …], args) Returns lines of QASM output representing the gate on the given qubits or None if a simple conversion is not possible.
matrix()
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.
text_diagram_info(args) Describes how to draw something in a text diagram.
trace_distance_bound() A maximum on the trace distance between this effect’s input/output.
try_cast_to(desired_type, ext) Turns this value into the desired type, if possible.
validate_args(qubits) Checks if this gate can be applied to the given qubits.
with_parameters_resolved_by(param_resolver) Resolve the parameters in the effect.

Attributes

half_turns