def METHOD_NAME(backend):
    c = tc.Circuit(2)
    for _ in range(3):
        c.rx(range(2), theta=0.4)
        c.cnot(0, 1)
    def execute(circuit):
        value = circuit.expectation_ps(z=[0])
        return value
    def execute2(circuit):
        key = tc.backend.get_random_state(42)
        count = circuit.sample(
            batch=1000, allow_state=True, format_="count_dict_bin", random_generator=key
        )
        return count
    _ = apply_rc(circuit=c, executor=execute, num_to_average=6, simplify=False)
    _ = apply_rc(
        circuit=c, executor=execute2, num_to_average=6, simplify=True, iscount=True
    )
    # generate a circuit with rc
    _ = qem.rc_circuit(c)