Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite topological order issues in Duostra #39

Closed
chinyi0523 opened this issue Dec 10, 2023 · 0 comments
Closed

Rewrite topological order issues in Duostra #39

chinyi0523 opened this issue Dec 10, 2023 · 0 comments
Assignees
Labels
enhancement Functionality or UX improvement, or new but easy-to-implement functionalities.

Comments

@chinyi0523
Copy link
Contributor

chinyi0523 commented Dec 10, 2023

Duostra Mappers require ordered id gates

For some reason, after zx2qc sometimes the Duostra mapper will segfault as of v0.6.2. Here's the dofile, also available in tests/conversion/duostra/v0.6.2-bug.dof:

device read benchmark/topology/casablanca.layout
// This qcir won't fail
qcir qubit add 3
qcir gate add h 0
qcir gate add h 1 --prepend
qcir gate add cz 0 2 --prepend
qcir gate add cz 1 2 --prepend
qcir gate add h 0 --prepend
qcir gate add h 1 --prepend
qcir gate add h 2 --prepend
qcir gate add h 2 --prepend
qcir print -d
duostra -c
// This one will, even though these two are supposedly the same circuit???
qcir new
qcir qubit add 3
qcir gate add cx 2 1
qcir gate add cx 2 0
qc2zx
zxopt
zx2qc
qcir print -d
duostra -c

quit -f

@chinyi0523 chinyi0523 added the enhancement Functionality or UX improvement, or new but easy-to-implement functionalities. label Dec 10, 2023
@chinyi0523 chinyi0523 self-assigned this Dec 10, 2023
@JoshuaLau0220 JoshuaLau0220 mentioned this issue Dec 10, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Functionality or UX improvement, or new but easy-to-implement functionalities.
Projects
None yet
Development

No branches or pull requests

2 participants