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

[:stop_sign: DO NOT MERGE] User-facing qubit allocation and free prototype #1560

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

paul0403
Copy link
Member

@paul0403 paul0403 commented Mar 7, 2025

python3 dynwires_play.py
-----------------------
cat:  [1.00000000e+00 6.29030417e-34]
gdb --args python3 dynwires_play.py 
------------------
(gdb) b RuntimeCAPI.cpp:367
// change this line accordingly if you want to experiment; 
// I set it to before `__catalyst__rt__qubit_release_array__impl` starts deallocating qubits
(gdb) r
// gdb running
(gdb) print *qubit_array_ptr
$1 = std::vector of length 1, capacity 1 = {3} // dealloc of aux
(gdb) c
// gdb running
(gdb) print *qubit_array_ptr
$2 = std::vector of length 3, capacity 3 = {0, 1, 2} // dealloc of main circuit

Context:

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant