cirq.PauliStringGateOperation

class cirq.PauliStringGateOperation(pauli_string: cirq.ops.pauli_string.PauliString)[source]
__init__(pauli_string: cirq.ops.pauli_string.PauliString) → None[source]

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

Methods

controlled_by(*control_qubits[, control_values])

Returns a controlled version of this operation. If no control_qubits

map_qubits(qubit_map)

Return an equivalent operation on new qubits with its Pauli string

transform_qubits(func)

Returns the same operation, but with different qubits.

validate_args(qubits)

Raises an exception if the qubits don’t match this operation’s qid

with_qubits(*new_qubits)

Returns the same operation, but applied to different qubits.

with_tags(*new_tags)

Creates a new TaggedOperation, with this op and the specified tags.

Attributes

gate

qubits

tags

Returns a tuple of the operation’s tags.

untagged

Returns the underlying operation without any tags.