Javascript library for QM calculations

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
Swamp Thing
Insights Author
Messages
1,065
Reaction score
820
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