cirq.Pauli

class cirq.Pauli(index: int, name: str)[source]

Represents the Pauli gates.

This is an abstract class with no public subclasses. The only instances
of private subclasses are the X, Y, or Z Pauli gates defined below.
__init__(index: int, name: str) → None[source]

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

Methods

by_index(index)
by_relative_index(p, relative_index)
commutes_with(other)
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.
phased_pauli_product(other)
relative_index(second) Relative index of self w.r.t.
third(second)
validate_args(qubits) Checks if this gate can be applied to the given qubits.
wrap_in_linear_combination(coefficient, …)