forked from qutip/QuantumToolbox.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix JET type stability warning in liouvillian function #8
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
Open
albertomercurio
wants to merge
365
commits into
main
Choose a base branch
from
dev/patch-4
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…anges (qutip#293) * add Makefile command for starting Vitepress locally * minor changes
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.27.0 to 1.27.3. - [Release notes](https://github.com/crate-ci/typos/releases) - [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md) - [Commits](crate-ci/typos@v1.27.0...v1.27.3) --- updated-dependencies: - dependency-name: crate-ci/typos dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
* fix repo link * modify qutip hyper-link * update bib * update footer and fix toc * fix latex `eqref`
* Fix documentation * fix typo
* fix bad link for API button in home page * fix spelling typo
* add allocations tests and clean time evolution tests * Format Document * Remove global tlist * Fix format
* try to fix several missing favicons in doc * fix indent
…qutip#311) * Working sesolve * add `inplace` keywork argument * add SciMLStructures and relax params type * Working mcsolve (no type-stability) * Fix type-instabilities for mcsolve * Add SciMLStructures.jl methods * Add callbacks helpers * Fix dsf_mcsolve * Remove ProgressBar from ODE parameters * Fix abstol and reltol extraction * Use Base allequal function * Remove expvals from TimeEvolutionParameters * Make NullParameters as default for params * Remove custom PresetTimeCallback * Update description of `inplace` argument * Working mesolve * Fix dfd_mesolve and dsf_mesolve * Remove TimeEvolutionParameters (type-unstable) * Fix type instabilities * Fix type instabilities on Julia v1.10 * Format document
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cailixun <[email protected]>
…ystem dimension (qutip#539)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…e` type instabilities (qutip#548)
Co-authored-by: Alberto Mercurio <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yi-Te Huang <[email protected]>
Co-authored-by: cailixun <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes a JET static analysis warning in the
liouvillianfunction by adding a type annotation to theId_cacheparameter.Changes
::Diagonaltype annotation toId_cacheparameter inliouvillianfunction insrc/qobj/superoperators.jlProblem
JET was detecting a type instability issue where the
Id_cacheparameter had no type annotation, causing it to report:Solution
By adding the
::Diagonaltype annotation, Julia can now properly infer thatId_cachewill always be of typeDiagonal, which matches what the_sum_lindblad_dissipatorsfunction expects.Testing
All code quality tests now pass: