qiboteam / qibo

A full-stack framework for quantum computing.
https://qibo.science
Apache License 2.0
294 stars 60 forks source link

`QCNN` backend issues #1362

Open BrunoLiegiBastonLiegi opened 5 months ago

BrunoLiegiBastonLiegi commented 5 months ago

The QCNN doesn't allow to pass a backend, but always makes use of the GlobalBackend https://github.com/qiboteam/qibo/blob/0d86ec5901b920c6ca1626777ed1e4957106828a/src/qibo/models/qcnn.py#L12.

In the tests, indeed, only the GlobalBackend is tested which, by chance, was working (I'm guessing the numpy one was used). Some quick test I ran showed that the TensorflowBackend might have problems with it, and probably other backends as well.