@staticmethod
def _clifford_application_payload(clifford, pauli):
    """
        Prepares a JSON payload for conjugating a Pauli by a Clifford.

         See :py:func:`apply_clifford_to_pauli`.

        :param Program clifford: A Program that consists only of Clifford operations.
        :param PauliTerm pauli: A PauliTerm to be acted on by clifford via conjugation.
        :return: The JSON payload, with keys "clifford" and "pauli".
        """
    indices_and_terms = zip(*list(pauli.operations_as_set()))
    return {'clifford': clifford.out(), 'pauli': list(indices_and_terms)}
