def loss(weights, a):
    new_circuit = qtransform(circuit, a)
    res = new_circuit(weights)
    res2 = circuit(jnp.sin(weights))
    return (res + res2)
def loss(weights, a):
    new_circuit = qtransform(circuit, a)
    res = new_circuit(weights)
    res2 = circuit(jnp.sin(weights))
    return (res + res2)