cirq.SingleQubitCliffordGate

class cirq.SingleQubitCliffordGate(*, _rotation_map: Dict[cirq.ops.pauli_gates.Pauli, cirq.ops.clifford_gate.PauliTransform], _inverse_map: Dict[cirq.ops.pauli_gates.Pauli, cirq.ops.clifford_gate.PauliTransform])[source]

Any single qubit Clifford rotation.

__init__(*, _rotation_map: Dict[cirq.ops.pauli_gates.Pauli, cirq.ops.clifford_gate.PauliTransform], _inverse_map: Dict[cirq.ops.pauli_gates.Pauli, cirq.ops.clifford_gate.PauliTransform]) → None[source]

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

Methods

commutes_with(gate_or_pauli, …)
commutes_with_pauli(pauli)
commutes_with_single_qubit_gate(gate)
Tests if the two circuits would be equivalent up to global phase:
controlled_by(*control_qubits) Returns a controlled version of this gate.
decompose_rotation() Returns ((first_rotation_axis, first_rotation_quarter_turns), …)
equivalent_gate_before(after)
Returns a SingleQubitCliffordGate such that the circuits
from_double_map(pauli_map_to, …)
Returns a SingleQubitCliffordGate for the
from_pauli(pauli, sqrt)
from_quarter_turns(pauli, quarter_turns)
from_single_map(pauli_map_to, …)
Returns a SingleQubitCliffordGate for the
from_xz_map(x_to, bool], z_to, bool])
Returns a SingleQubitCliffordGate for the specified transforms.
merged_with(second)
Returns a SingleQubitCliffordGate such that the circuits
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.
transform(pauli)
validate_args(qubits) Checks if this gate can be applied to the given qubits.
wrap_in_linear_combination(coefficient, …)

Attributes

H
I
X
X_nsqrt
X_sqrt
Y
Y_nsqrt
Y_sqrt
Z
Z_nsqrt
Z_sqrt