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

Qaoa energy order #38

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Qaoa energy order #38

wants to merge 2 commits into from

Conversation

danlkv
Copy link
Owner

@danlkv danlkv commented Sep 1, 2021

No description provided.

@danlkv
Copy link
Owner Author

danlkv commented Sep 1, 2021

@cameton See here. qtensor.tools.qaoa_ordering

return g


def get_qaoa_exp_ordering(circuit: list, algo='greedy') -> list:
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cameton this function finds all the line graph vertices for qubit, then gets an ordering on the connectivity graph, then the order is constructed based on that super_order.

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.

1 participant