Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to fix #38 by implementing two-mode summing unitary.
Hi, Andrew! Thank you for your help and guidance! I am not sure why I landed to page 123 😅 of https://journals.aps.org/prl/pdf/10.1103/PhysRevLett.88.09790. As you suggestion, I need to follow the information given much earlier in the paper!
The SUM gate can be realized using beamsplitter and squeeze, following the Bloch-Messiah decomposition:
Therefore, we can use the already implemented operators$-\pi/2$
squeeze
andbeamsplitter
and use them to implement thetwosumgate
. The name follows the convention of similar totwosqueeze
. I hope that this attempt is better than the previous attempt at least 😅beamsplitter
appears to not have the parameter to extra phase shift to I have excludedEdit:
I was wondering whether the following can be implemented as a test to check whether the correctness of approach. It seems that excluding extra phase$\phi$ of $\pi$ in $BS(\theta, \phi)$ changes the symplectic matrix 😅. According to 199, the two mode squeeze can be written after Bloch- Messiah decomposition as
which can be written as excluding extra phase$\phi$ of $\pi$ in $BS(\theta, \phi)$ :
The current approach appears to be incorrect. I initially thought we could use the Bloch-Messiah decomposition for the two-sum gate and then leverage it to implement the gate. 😅