Skip to content

OhmicEnvironment without mpmath#2859

Merged
Ericgig merged 3 commits into
qutip:masterfrom
Ericgig:misc_mpmath
Apr 21, 2026
Merged

OhmicEnvironment without mpmath#2859
Ericgig merged 3 commits into
qutip:masterfrom
Ericgig:misc_mpmath

Conversation

@Ericgig

@Ericgig Ericgig commented Apr 6, 2026

Copy link
Copy Markdown
Member

Description
mpmath is only needed for one function zeta that is not available for complex number in scipy. An efficient equation to implement it is available on wikipedia.

This implementation is not as robust as mpmath's when s is smaller than 1, but works well in the range needed for OhmicEnvironment.

@pmenczel

Copy link
Copy Markdown
Member

Just a note that zeta function with complex argument is also under development in scipy, see scipy/scipy#14073

However, it will take a while until we can use that, so I think this would be a good addition that allows us to remove mpmath dependency now.

@Ericgig Ericgig marked this pull request as ready for review April 20, 2026 18:45
@Ericgig

Ericgig commented Apr 20, 2026

Copy link
Copy Markdown
Member Author

Just a note that zeta function with complex argument is also under development in scipy, see https://github.com/scipy/scipy/issues/14073Just a note that zeta function with complex argument is also under development in scipy, see scipy/scipy#14073

Presently it's only for riemann zeta (q=0). Support for what we need seems far away.

@Ericgig Ericgig merged commit 3d6b6f0 into qutip:master Apr 21, 2026
16 of 17 checks passed
@Ericgig Ericgig deleted the misc_mpmath branch April 21, 2026 12:46
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.

3 participants