-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
New Design For General Decomposition Function #106
base: master
Are you sure you want to change the base?
Conversation
Thanks @purva-thakre, great to see this coming over! |
] | ||
|
||
return gate_key_dict | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a function to make all control values consistent before the partial gray code gets split into n-bit toffoli and the gate needing decomposition.
If the function is used before _split_partial_gray_code
then don't have to worry about searching for controls between the two split dictionaries.
This PR will complete unfinished work from GSoC 2021. Linking closed PR's just in case - (gen_method, gray_code, two_qubit_test)
Because of the issue of nested dictionary etc, a new function will be added for every list of gates.
For example, if all control values have to be controlled on 1 then this gate information will be in a separate list, if SWAP gates have to be used to make a gate controlled on last qubit then this gate information will be kept separate and so on. More details will be added as the functions and respective tests are added.