-
Notifications
You must be signed in to change notification settings - Fork 67
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
Use CSR as default for expand_operator #227
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a small test for this? E.g. check that a Dense operator really is expanded to a CSR? Otherwise looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test.
Why were the qiskit tests removed?
Deleting |
And maybe I should make the same change to the function in qutip-v5 . |
I would say yes. Ideally the two functions should remain the same. |
15c4f1d
to
3b9d6dd
Compare
@Ericgig Does the change look good to you? I'll make the same PR to the main qutip |
I am fine with setting csr as the default type to |
Transform the qobj to CSR only if it is Dense, incase more data types are introduced in the future.
3b9d6dd
to
ea6d7f7
Compare
Use CSR as default for expand_operator
Transform the qobj to CSR only if it is Dense, in case more data types are introduced in the future.