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

Stage1 MVP Converter Class #266

Closed
wants to merge 18 commits into from

Conversation

sylviemonet
Copy link
Contributor


Context: Add the converter class to traverse different representation classes for states.

Description of the Change: With the converter, states are able to change its representations.

Benefits: The use of representation is more flexible.

Possible Drawbacks:

Related GitHub Issues:

@sylviemonet sylviemonet added the WIP work in progress label Jul 27, 2023
@sylviemonet sylviemonet marked this pull request as draft August 8, 2023 14:14
@sylviemonet sylviemonet removed the WIP work in progress label Aug 10, 2023
bargmann_dm = self._wignerdm_to_bargmanndm(wigner_dm=wigner_dm)

return BargmannKet(
bargmann_dm.data.A[N:, N:], bargmann_dm.data.b[N:], math.sqrt(bargmann_dm.data.c)
Copy link
Collaborator

Choose a reason for hiding this comment

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

wigner ket has no global phase information to preserve here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we miss that information from the wignerdm to bargmanndm and it asked for extra codes to get the global phase part. Are we going to add it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

if it's not too much work, yes, it would be good to have it

Copy link
Collaborator

@ziofil ziofil left a comment

Choose a reason for hiding this comment

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

See comments, happy to do another round after this one

@ziofil ziofil closed this Dec 7, 2023
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