Skip to content

Add delay loop and TDM module for Gaussian backend#37

Merged
sansiro77 merged 35 commits intoTuringQ:mainfrom
Hugh-888:dev-tdm2
Sep 27, 2024
Merged

Add delay loop and TDM module for Gaussian backend#37
sansiro77 merged 35 commits intoTuringQ:mainfrom
Hugh-888:dev-tdm2

Conversation

@Hugh-888
Copy link
Collaborator

@Hugh-888 Hugh-888 commented Sep 11, 2024

Update details

1. Support non-adjacent BS gate

image

2. Support adding delay loop in Gaussian backend using circ.delay in QumodeCircuit and QumodeCircuitTDM module.

2.1 Support multiple delay loops acting on the corresponding wires

image

Using circ.draw(unroll=True) to check the equivalent circuit after forward.
image

3. Able to generate cluster state using delay loop, such as EPR, GHZ state, by using data encoding.

image

image

@sansiro77 sansiro77 self-requested a review September 11, 2024 07:10
@sansiro77 sansiro77 self-assigned this Sep 11, 2024
@sansiro77 sansiro77 added the enhancement New feature or request label Sep 11, 2024
Copy link
Contributor

@sansiro77 sansiro77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用self.operators_tdmself.measurements_tdm来保存每个时刻展开后的线路,并做forward和measure

Copy link
Contributor

@sansiro77 sansiro77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我重构了一下代码,也考虑了TDM线路相加的情况进行了优化

Copy link
Contributor

@sansiro77 sansiro77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我们延时线里的mode的标号顺序与Strawberry Fields是反的,我下一个commit里会改为与Strawberry Fields的约定一致,即序号从小到大就对应时间从前往后。只要把构建BS时对应的mode序号从-1变为0,shift_by的顺序也反一下

Copy link
Contributor

@sansiro77 sansiro77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@sansiro77 sansiro77 changed the title Add delay loop and support forward in Gaussian backend Add delay loop and TDM module for Gaussian backend Sep 27, 2024
@sansiro77 sansiro77 merged commit 272129d into TuringQ:main Sep 27, 2024
@Hugh-888 Hugh-888 deleted the dev-tdm2 branch September 27, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants