qiboteam / qibo

A framework for quantum computing
https://qibo.science
Apache License 2.0
287 stars 58 forks source link

Cast samples to int32 #1415

Closed scarrazza closed 1 month ago

scarrazza commented 1 month ago

Attempt to fix #1412. In principle we could replace the default dtype in backends to something more useful (e.g. type(x)) however this is not trivial because this function was designed for state vectors. PS. I prefer to dtype=np.uint8 however torch does not like it.

Checklist:

scarrazza commented 1 month ago

Nevermind, I have just realized #1414.