def transform_qubits(
        self, qubit_map: dict[cirq.Qid, cirq.Qid] | Callable[[cirq.Qid], cirq.Qid]
    ) -> Self:
        """Returns the same moment, but with different qubits.

        Args:
           qubit_map: A function or a dict mapping each current qubit into a
                      desired new qubit.

        Returns:
            The receiving moment but with qubits transformed by the given
                function.
        """
        return self.__class__(op.transform_qubits(qubit_map) for op in self.operations)
Returns the same moment, but with different qubits.

        Args:
           qubit_map: A function or a dict mapping each current qubit into a
                      desired new qubit.

        Returns:
            The receiving moment but with qubits transformed by the given
                function.
        
cirq-core/cirq/circuits/moment.py