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

Allow returning eigenstates as an operator. #2338

Open
Ericgig opened this issue Feb 28, 2024 · 2 comments · May be fixed by #2351
Open

Allow returning eigenstates as an operator. #2338

Ericgig opened this issue Feb 28, 2024 · 2 comments · May be fixed by #2351

Comments

@Ericgig
Copy link
Member

Ericgig commented Feb 28, 2024

Problem Description

qobj.eigenstates() return the states as a list of kets, but it is something more useful to have them as a single operator where each state is a column.

Proposed Solution

Add a keyword argument (output_type?) which choose whether a list of kets or an operator is to be returned.
Eigenstates are computed as an operator, we then just have to skip the step that split them into kets.
The normalisation, phase fixing steps should still be completed.

Alternate Solutions

No response

Additional Context

Idea advanced in #2328.

@rochisha0
Copy link
Contributor

Can I work on this issue? @Ericgig

@Ericgig
Copy link
Member Author

Ericgig commented Mar 15, 2024

@rochisha0
Yes.

@rochisha0 rochisha0 linked a pull request Mar 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants