pasqal-io / pyqtorch

PyTorch-based state vector simulator
https://pasqal-io.github.io/pyqtorch/
Apache License 2.0
45 stars 15 forks source link

[Refactor] Deprecate DiagonalObservable #211

Open chMoussa opened 4 months ago

chMoussa commented 4 months ago

Wrt #201, remove DiagonalObservable and use a property that keeps track of the diagonalily of the individual blocks when they are composed of Z, I or N and a version of apply_operator specific for diagonal operations. This can be used throughout PyQ for applying diagonal evolutions, and also for applying diagonal gates like CPHASE.

dominikandreasseitz commented 3 months ago

great idea!