GTorlai / PastaQ.jl

Package for Simulation, Tomography and Analysis of Quantum Computers
Apache License 2.0
142 stars 23 forks source link

Resolve index ordering in QPT gradients #233

Closed GTorlai closed 2 years ago

GTorlai commented 2 years ago

The index ordering (which is usually not an issue) creates some clashing when using the optimizer to update a variational tensor network. This is cause by transforming the variational tensors into dense arrays to be passed to the optimizers, with the problem being the gradients and the model not having the same ordering, thus resulting into updating the wrong tensor elements.

mtfishman commented 2 years ago

Could you explain the issue in a bit more detail? Is this particular to the Flux optimizers?