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

Assertion failure and python abort when adding duplicate register #790

Closed
cqc-alec opened this issue Mar 17, 2023 · 0 comments · Fixed by #791
Closed

Assertion failure and python abort when adding duplicate register #790

cqc-alec opened this issue Mar 17, 2023 · 0 comments · Fixed by #791

Comments

@cqc-alec
Copy link
Collaborator

from pytket import Circuit, Qubit, Bit
circ = Circuit()
circ.add_qubit(Qubit("a", 0))
circ.add_bit(Bit("a", 1))

Result:

[2023-03-17 13:27:50] [tket] [critical] Assertion '!reg_info || (reg_info.value() == correct_info)' (/root/.conan/data/tket/1.0.55/tket/stable/build/b3fe2dd8cea3a35f00ed1eabd660e74f6798b3fd/Circuit/basic_circ_manip.cpp : add_bit : 428) failed.  Aborting.
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant