Skip to content

Conversation

@jimnel
Copy link
Contributor

@jimnel jimnel commented Apr 4, 2025

This PR adds tests for:

  • rotate
  • euler_rotate
  • get_angle
  • set_angle

All part of #26

@jimnel jimnel changed the title [Don't merge] Qbits tests (round 4) Qbits tests (round 4) Apr 8, 2025
@jimnel
Copy link
Contributor Author

jimnel commented Apr 9, 2025

Need to test that one can pass qse.Qbit objects in get_angles etc. Should also rename back to a1 etc.

Copy link
Collaborator

@rajarshitiwari rajarshitiwari left a comment

Choose a reason for hiding this comment

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

Go ahead with these changes.

Let x1, x2, x3 be the vectors describing the positions of the three
qubits. Then we calcule the angle between x1-x2 and x3-x2.
"""
return self.get_angles([[a1, a2, a3]], mic=mic)[0]
Copy link
Collaborator

Choose a reason for hiding this comment

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

See if in the original ASE, a1, a2, a3 were only treated as integer indices, or did it support them as Atom object as well

@rajarshitiwari rajarshitiwari merged commit 075b913 into main Apr 10, 2025
3 checks passed
@jimnel jimnel deleted the 26_add_qbits_tests_4 branch May 2, 2025 09:47
@jimnel jimnel restored the 26_add_qbits_tests_4 branch June 19, 2025 14:40
@jimnel jimnel deleted the 26_add_qbits_tests_4 branch June 30, 2025 12:37
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.

3 participants