qiboteam / qiboml

Quantum Machine Learning using Qibo
Apache License 2.0
9 stars 3 forks source link

Upstream+downstream derivative test #23

Open alecandido opened 5 months ago

alecandido commented 5 months ago

Add a test that checks that:

expectation = lambda circuit, hamiltonian, parameters: ...
f1(expectation(c, h, f2(x)))

can be derived on automatically on x in every supported framework (assuming f1 and f2 to have derivative defined in the framework, like np.log...)