Open BrunoLiegiBastonLiegi opened 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.
QCNN
GlobalBackend
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.
TensorflowBackend
The
QCNN
doesn't allow to pass a backend, but always makes use of theGlobalBackend
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 theTensorflowBackend
might have problems with it, and probably other backends as well.