def METHOD_NAME(
    executor: Callable[[QPROGRAM], QuantumResult],
) -> Callable[[QPROGRAM], float]:
    val = mitigate_executor(
        executor,
        check_operators,
        code_hamiltonian,
        observable,
        pauli_string_to_expectation_cache,
    )
    return val