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

Add ABADecomposer class #226

Conversation

rturrado
Copy link
Contributor

Add ABADecomposer class.
Change XYXDecomposer and ZYZDecomposer classes to subclass from ABADecomposer.

TODO: generalise ABADecomposer.get_decomposition_angles.
TODO: fix test_xyx_decomposer tests.

rturrado added 2 commits June 12, 2024 10:41
Change ZYZDecomposer class to be a subclass of ABADecomposer.

TODO: generalise ABADecomposer.get_decomposition_angles.
TODO: add XYX decomposer.
TODO: add tests.
TODO: fix test_xyx_decomposer tests.
@rturrado rturrado requested a review from juanboschero June 12, 2024 09:09
# alpha == pi, math.tan(alpha / 2) is not defined.

p: float
if abs(nz) < ATOL:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is still hardcoded for ny and nz angles

Copy link
Collaborator

Choose a reason for hiding this comment

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

In order to make it dynamic (i.e gate_list function) I feel like a similar integration to PR #98 would be required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @juanboschero, this was my original PR. If you read the description, it says that it simply introduces the ABADecomposer, but then you have to generalize the get_decomposition_angles method.

@juanboschero juanboschero deleted the 98-pr-aba-decomposer branch June 17, 2024 10:11
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