Skip to content

Exponential#465

Open
sanderdemeyer wants to merge 4 commits into
QuantumKitHub:mainfrom
sanderdemeyer:exp
Open

Exponential#465
sanderdemeyer wants to merge 4 commits into
QuantumKitHub:mainfrom
sanderdemeyer:exp

Conversation

@sanderdemeyer

Copy link
Copy Markdown
Contributor

This changes the current way of calculating the exponential (using LinearAlgebra) to the one recently implemented in MatrixAlgebraKit (see QuantumKitHub/MatrixAlgebraKit.jl#94). This will not yet work, since there is no new version of MatrixAlgebraKit tagged yet. I just wanted to start the discussion here already.

I added both exp!(t) and exp!(tau, t). I added the special case where t is real and tau is complex, when exp! cannot overwrite the original tensor and instead a new one is allocated. Suggestions on how to best do this are definitely appreciated.

I still need to add some tests. We can definitely add some tests on whether the output tensor has the expected scalartype, and whether exp!(copy(a)) == exp!((1.0, copy(a)), but suggestions on more nontrivial tests are also welcome.

@sanderdemeyer sanderdemeyer changed the title Exp Exponential Jun 26, 2026
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.

1 participant