cirq.SingleQubitCliffordGate¶
-
class
cirq.SingleQubitCliffordGate(*, _rotation_map: Dict[cirq.ops.pauli.Pauli, cirq.ops.clifford_gate.PauliTransform], _inverse_map: Dict[cirq.ops.pauli.Pauli, cirq.ops.clifford_gate.PauliTransform])[source]¶ Any single qubit Clifford rotation.
-
__init__(*, _rotation_map: Dict[cirq.ops.pauli.Pauli, cirq.ops.clifford_gate.PauliTransform], _inverse_map: Dict[cirq.ops.pauli.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:decompose_rotation()Returns ((first_rotation_axis, first_rotation_quarter_turns), …) equivalent_gate_before(after)Returns a SingleQubitCliffordGate such that the circuitsfrom_double_map(pauli_map_to, …)Returns a SingleQubitCliffordGate for thefrom_pauli(pauli, sqrt)from_quarter_turns(pauli, quarter_turns)from_single_map(pauli_map_to, …)Returns a SingleQubitCliffordGate for thefrom_xz_map(x_to, bool], z_to, bool])Returns a SingleQubitCliffordGate for the specified transforms.merged_with(second)Returns a SingleQubitCliffordGate such that the circuitson(*qubits)Returns an application of this gate to the given qubits. transform(pauli)validate_args(qubits)Checks if this gate can be applied to the given qubits. Attributes
HIXX_nsqrtX_sqrtYY_nsqrtY_sqrtZZ_nsqrtZ_sqrt-