def on(self, *qubits: cirq.Qid) -> SingleQubitPauliStringGateOperation:
        """Returns an application of this gate to the given qubits.

        Args:
            *qubits: The collection of qubits to potentially apply the gate to.

        Raises:
            ValueError: If more than one qubit is acted upon.
        """
        if len(qubits) != 1:
            raise ValueError(f'Expected a single qubit, got <{qubits!r}>.')

        return pauli_string.SingleQubitPauliStringGateOperation(self, qubits[0])
Returns an application of this gate to the given qubits.

        Args:
            *qubits: The collection of qubits to potentially apply the gate to.

        Raises:
            ValueError: If more than one qubit is acted upon.
        
cirq-core/cirq/ops/pauli_gates.py