This reverts commit 9d8fe40ace7495b707894ef760c2592197a9e27b.
Context:
PR #351 implemented the displacement operation using Laguerre Polynomials instead of the previously used recursion relations.
Description of the Change:
This PR reverts The Walrus to use the recursion relations for the displacement operator instead of the Laguerre Polynomials, the reason being that the new change breaks operations in Strawberry Fields as evidenced in SF PR #725.
Benefits:
Given the strong coupling between Strawberry Fields and The Walrus, this PR will ensure a consistent state of development between the libraries and avoids breaking changes that will eventually propagate to the users.
Possible Drawbacks:
The displacement gate on The Walrus and Strawberry Fields will be unstable for large values of the arguments/cutoff.
This reverts commit 9d8fe40ace7495b707894ef760c2592197a9e27b.
Context: PR #351 implemented the displacement operation using Laguerre Polynomials instead of the previously used recursion relations.
Description of the Change: This PR reverts The Walrus to use the recursion relations for the displacement operator instead of the Laguerre Polynomials, the reason being that the new change breaks operations in Strawberry Fields as evidenced in SF PR #725.
Benefits: Given the strong coupling between Strawberry Fields and The Walrus, this PR will ensure a consistent state of development between the libraries and avoids breaking changes that will eventually propagate to the users.
Possible Drawbacks: The displacement gate on The Walrus and Strawberry Fields will be unstable for large values of the arguments/cutoff.
Related GitHub Issues: SF PR #725