horqrux
horqrux copied to clipboard
[BUG] PSR with repeated parameters incorrect
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.