Skip to content

Conversation

@albertomercurio
Copy link
Member

@albertomercurio albertomercurio commented Oct 26, 2025

Checklist

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

  • Please read Contributing to Quantum Toolbox in Julia.
  • Any code changes were done in a way that does not break public API.
  • Appropriate tests were added and tested locally by running: make test.
  • Any code changes should be julia formatted by running: make format.
  • All documents (in docs/ folder) related to code changes were updated and able to build locally by running: make docs.
  • (If necessary) the CHANGELOG.md should be updated (regarding to the code changes) and built by running: make changelog.

Request for a review 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.

Description

In this PR, I add the support for arbitrary precision computations, for example using arrays of BigFloat type or similar. This allows to do simulations when values smaller than $10^{-14}$ are involved in the computation.

I have tested it to the following use cases:

  • Schrodinger equation (sesolve)
  • Master equation (mesolve)
  • Sparse eigenvalue problem (eigsolve(...) or eigenstates(A, sparse=true...))

For the eigenvalues, the user need to import a package that defines a method for te following functions

  • schur!
  • ordschur!

I found GenericSchur.jl to work well, even without writing an extension.

In the next PRs I will write some documentation, as I think it is a very important feature that other packages don't have.

@albertomercurio albertomercurio added Skip ChangeLog Skip changelog update check in PR and removed Skip ChangeLog Skip changelog update check in PR labels Oct 26, 2025
Copy link
Member

@ytdHuang ytdHuang left a comment

Choose a reason for hiding this comment

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

LGTM!

@albertomercurio albertomercurio merged commit e47620e into qutip:main Oct 27, 2025
17 of 19 checks passed
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