XanaduAI / strawberryfields

Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
https://strawberryfields.ai
Apache License 2.0
747 stars 186 forks source link

Gaussian Compilers Primitive and Decomposition definitions need to be fixed #593

Closed federico0112 closed 3 years ago

federico0112 commented 3 years ago

Issue description

Gaussian compilers currently define measurement operations as primitives, which should not be the case. Furthermore, Gaussian state decompositions are defined in the Gaussian compilers decomposition, which is not ideal.

nquesada commented 3 years ago

It seemed like good idea to make explicit that a compiler only operates on operation and not measurements and preparations, but this is too overzealous. For the moment we will allow compiler to still have these operations.