Java Javascript library for QM calculations

AI Thread Summary
A discussion on developing technically accurate animations in JavaScript highlights the need for libraries that can handle complex mathematical operations. Key requirements include support for linear algebra with complex-valued matrices and vectors, numerical integration with operators in the integrand, and the calculation of expectation values after applying measurement operators. The conversation suggests P5.js as a suitable library for animations, along with NumJS, which offers functionality similar to Python's NumPy. These resources are recommended for those looking to implement advanced mathematical concepts in browser-based animations.
Swamp Thing
Insights Author
Messages
1,028
Reaction score
767
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.
 
Technology news on Phys.org
jedishrfu said:
Your best bet would be to checkout P5js.org

They have a support library for animations.

And there numjs that is functionally similar to numpy

https://github.com/nicolaspanel/numjs

Thank you --- I will look at these two resources.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
What percentage of programmers have learned to touch type? Have you? Do you think it's important, not just for programming, but for more-than-casual computer users generally? ChatGPT didn't have much on it ("Research indicates that less than 20% of people can touch type fluently, with many relying on the hunt-and-peck method for typing ."). 'Hunt-and-peck method' made me smile. It added, "For programmers, touch typing is a valuable skill that can enhance speed, accuracy, and focus. While...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top