cirq.PauliString

class cirq.PauliString(qubit_pauli_map: Optional[Mapping[cirq.ops.raw_types.Qid, cirq.ops.pauli_gates.Pauli]] = None, coefficient: Union[int, float, complex] = 1)[source]
__init__(qubit_pauli_map: Optional[Mapping[cirq.ops.raw_types.Qid, cirq.ops.pauli_gates.Pauli]] = None, coefficient: Union[int, float, complex] = 1) → None[source]

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

Methods

commutes_with(other)
controlled_by(*control_qubits) Returns a controlled version of this operation.
equal_up_to_coefficient(other)
from_single(qubit, pauli) Creates a PauliString with a single qubit.
get(key[, default])
items()
keys()
map_qubits(qubit_map, cirq.ops.raw_types.Qid])
pass_operations_over(ops, after_to_before) Determines how the Pauli string changes when conjugated by Cliffords.
to_z_basis_ops() Returns operations to convert the qubits to the computational basis.
transform_qubits(func, cirq.ops.raw_types.Qid]) Returns the same operation, but with different qubits.
values()
with_qubits(*new_qubits)
zip_items(other)
zip_paulis(other)

Attributes

coefficient
qubits