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
754 stars 191 forks source link

Missing negative sign in docs for sf.ops.S2gate #550

Closed akirakyle closed 3 years ago

akirakyle commented 3 years ago

On line 1887 of ops.py a minus sign is missing in the RHS expression. It should be e^{i\phi} a_1^\dagger a_2^\dagger - e^{-i\phi} a_1 a_2.

nquesada commented 3 years ago

Thanks for spotting this typo @akirakyle ! It is now addressed in [#551].