Javascript library for QM calculations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 1K views
Swamp Thing
Insights Author
Messages
1,062
Reaction score
819
Does anyone know of a good library in javascript that would help to develop technically accurate animations? I know there is stuff in python, but I'd like things to happen in the browser.

Apart from linear algebra with complex valued matrices and vectors, I'd like to have things like numerical integration with operators inside the integrand, e.g.
##\int d\omega~f(\omega)~a^\dagger(\omega) ~|\psi\rangle##

Come to think of it, how would one actually represent that result in numbers?
Anyway, finally I would need to calculate expectation values based on that kind of integral, after applying some measurement operator to it.

Another thing on my wish list would be to generate random samples according to a distribution function.
 
Physics news on Phys.org