cirq.GateOperation

class cirq.GateOperation(gate: cirq.ops.raw_types.Gate, qubits: Sequence[cirq.ops.raw_types.QubitId])[source]

An application of a gate to a collection of qubits.

gate

The applied gate.

qubits

A sequence of the qubits on which the gate is applied.

__init__(gate: cirq.ops.raw_types.Gate, qubits: Sequence[cirq.ops.raw_types.QubitId]) → None[source]

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

Methods

default_decompose()
extrapolate_effect(factor)
inverse()
is_parameterized()
known_qasm_output(args)
matrix()
phase_by(phase_turns, qubit_index)
text_diagram_info(args)
trace_distance_bound()
transform_qubits(func, …) Returns the same operation, but with different qubits.
try_cast_to(desired_type, extensions) Turns this value into the desired type, if possible.
with_gate(new_gate)
with_parameters_resolved_by(param_resolver)
with_qubits(*new_qubits)

Attributes

gate
qubits