horqrux icon indicating copy to clipboard operation
horqrux copied to clipboard

[BUG] PSR with repeated parameters incorrect

Open atiyo opened this issue 5 months ago • 0 comments

Same problem as https://github.com/pasqal-io/pyqtorch/issues/217, i.e. if a single parameter is used mutiple times in a circuit, the resulting PSR gradient is incorrect.

However, the fix in https://github.com/pasqal-io/pyqtorch/pull/219 can't be straightfowardly applied to horqrux.

atiyo avatar Sep 12 '24 09:09 atiyo