cirq.SingleQubitGate.on_each

SingleQubitGate.on_each(*targets) → Union[cirq.ops.raw_types.Operation, Iterable[Any]][source]

Returns a list of operations apply this gate to each of the targets.

Parameters:*targets – The qubits to apply this gate to.
Returns:Operations applying this gate to the target qubits.
Raises:ValueError if targets are not instances of Qid.