Add delay loop and TDM module for Gaussian backend#37
Merged
sansiro77 merged 35 commits intoTuringQ:mainfrom Sep 27, 2024
Merged
Add delay loop and TDM module for Gaussian backend#37sansiro77 merged 35 commits intoTuringQ:mainfrom
sansiro77 merged 35 commits intoTuringQ:mainfrom
Conversation
… to the unfold circuit
… to the unfold circuit
sansiro77
reviewed
Sep 13, 2024
Contributor
sansiro77
left a comment
There was a problem hiding this comment.
使用self.operators_tdm和self.measurements_tdm来保存每个时刻展开后的线路,并做forward和measure
sansiro77
reviewed
Sep 25, 2024
Contributor
sansiro77
left a comment
There was a problem hiding this comment.
我重构了一下代码,也考虑了TDM线路相加的情况进行了优化
sansiro77
reviewed
Sep 26, 2024
Contributor
sansiro77
left a comment
There was a problem hiding this comment.
我们延时线里的mode的标号顺序与Strawberry Fields是反的,我下一个commit里会改为与Strawberry Fields的约定一致,即序号从小到大就对应时间从前往后。只要把构建BS时对应的mode序号从-1变为0,shift_by的顺序也反一下
sansiro77
approved these changes
Sep 27, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Update details
1. Support non-adjacent BS gate
2. Support adding delay loop in Gaussian backend using
circ.delayinQumodeCircuitandQumodeCircuitTDMmodule.2.1 Support multiple delay loops acting on the corresponding wires
Using

circ.draw(unroll=True)to check the equivalent circuit after forward.3. Able to generate cluster state using delay loop, such as EPR, GHZ state, by using data encoding.