Skip to content

Qaoa energy order#38

Open
danlkv wants to merge 2 commits intodevfrom
qaoa_energy_order
Open

Qaoa energy order#38
danlkv wants to merge 2 commits intodevfrom
qaoa_energy_order

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