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

Reformatting NLocal Circuit #202

Conversation

01110011011101010110010001101111
Copy link
Collaborator

Similar to #187, breaking NLocal layers into separate layers.

@01110011011101010110010001101111 01110011011101010110010001101111 changed the base branch from main to dev October 14, 2023 23:04
@01110011011101010110010001101111 01110011011101010110010001101111 marked this pull request as ready for review October 21, 2023 01:46
Copy link
Collaborator

@Hanrui-Wang Hanrui-Wang left a comment

Choose a reason for hiding this comment

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

reviewed

@Hanrui-Wang
Copy link
Collaborator

Is this PR ready to merge? I think we need add some tests to the functions.

@01110011011101010110010001101111
Copy link
Collaborator Author

Gotcha, I’ll go ahead and add some tests!

@01110011011101010110010001101111
Copy link
Collaborator Author

Just as an FYI, I ended up deviating from comparing the unitaries for these NLocal layers and instead checked if the gates were correct since the NLocal circuits extend BlueprintCircuits in Qiskit and both use parameters. (This is a bit of a todo for me to dive a bit deeper into the comparison of a TQ parameter and Qiskit Parameter.) I have a ton of different configurations for TwoLocal tested and a few for the others.

Something we can discuss next time is formatting choices. Currently, the NLocal circuits take as input an architecture dictionary (similar to the other layers), but Qiskit just takes in the wires. I think this change should be fine to make. In addition, Qiskit’s NLocal circuits are actual circuits whereas ours are layers which can be applied to circuits.

@01110011011101010110010001101111 01110011011101010110010001101111 marked this pull request as ready for review November 25, 2023 00:55
Copy link
Collaborator

@Hanrui-Wang Hanrui-Wang left a comment

Choose a reason for hiding this comment

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

reviewed

@Hanrui-Wang
Copy link
Collaborator

Thank you GenericP3rson for your contributions!

@Hanrui-Wang Hanrui-Wang merged commit 09e95aa into mit-han-lab:dev Dec 11, 2023
4 of 7 checks passed
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.

2 participants