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

New Design For General Decomposition Function #106

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

purva-thakre
Copy link
Contributor

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.

@purva-thakre purva-thakre mentioned this pull request Nov 9, 2021
10 tasks
@nathanshammah
Copy link
Member

Thanks @purva-thakre, great to see this coming over!

]

return gate_key_dict

Copy link
Contributor Author

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.

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 this pull request may close these issues.

None yet

2 participants