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

Replace solve #2120

Merged
merged 14 commits into from
Mar 15, 2023
Merged

Replace solve #2120

merged 14 commits into from
Mar 15, 2023

Conversation

tamakoshi2001
Copy link
Contributor

@tamakoshi2001 tamakoshi2001 commented Mar 14, 2023

Checklist
Thank you for contributing to QuTiP! Please make sure you have finished the following tasks before opening the PR.

  • Please read Contributing to QuTiP Development
  • Contributions to qutip should follow the pep8 style.
    You can use pycodestyle to check your code automatically
  • Please add tests to cover your changes if applicable.
  • If the behavior of the code has changed or new feature has been added, please also update the documentation in the doc folder, and the notebook. Feel free to ask if you are not sure.
  • Include the changelog in a file named: doc/changes/<PR number>.<type> 'type' can be one of the following: feature, bugfix, doc, removal, misc, or deprecation (see here for more information).

Delete this checklist after you have completed all the tasks. If you have not finished them all, you can also open a Draft Pull Request to let the others know this on-going work and keep this checklist in the PR description.

Description
Deleted _solve and use _data.solve.

Related issues or PRs
#2109

Copy link
Member

@Ericgig Ericgig left a comment

Choose a reason for hiding this comment

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

The Q_ops elements are originally _data.Data and transformed into ndarray with to_array. You could just remove that call and not need the _data.Dense.

For the failing tests, please add method="lsqr" to the _data.solve call. The 1e-15j is probably too small. I will take a look into it later.

@coveralls
Copy link

Coverage Status

Coverage: 75.414% (-0.02%) from 75.43% when pulling 4edf627 on tamakoshi2001:replace_solve into afd160b on qutip:master.

@tamakoshi2001
Copy link
Contributor Author

tamakoshi2001 commented Mar 15, 2023

@Ericgig Hi. I added lsqr and all tests succeeded.

Copy link
Member

@Ericgig Ericgig left a comment

Choose a reason for hiding this comment

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

Thank you.

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.

None yet

3 participants