google / qhbm-library

Quantum Hamiltonian-Based Models built on TensorFlow Quantum
https://qhbm-library.readthedocs.io/en/latest/
Apache License 2.0
40 stars 15 forks source link

Fidelity for new style QHBMs #187

Closed zaqqwerty closed 2 years ago

zaqqwerty commented 2 years ago

Resolves #142

Also removes three qubit case for VQT test to speed up CI.

zaqqwerty commented 2 years ago

Need to add a slightly larger tolerance, got this in the fidelity test:

E       Max absolute difference: 1.5521027e-06
E       Max relative difference: 3.3777965e-06
E        x: array(0.4595+0.j, dtype=complex64)
E        y: array(0.459502-8.595689e-08j, dtype=complex64)