cirq.Rot11Gate

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

Phases the |11> state of two adjacent qubits by a fixed amount.

A ParameterizedCZGate guaranteed to not be using the parameter key field.

__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 – Relative phasing of CZ’s eigenstates, in half_turns.
  • rads – Relative phasing of CZ’s eigenstates, in radians.
  • degs – Relative phasing of CZ’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.
phase_by(phase_turns, qubit_index) Returns a phased version of the effect.
qubit_index_to_equivalence_group_key(index) Returns a key that differs between non-interchangeable qubits.
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