Javascript library for QM calculations

Click For Summary
SUMMARY

The discussion focuses on finding a JavaScript library suitable for quantum mechanics (QM) calculations and animations. P5.js is recommended for its robust support for animations, while NumJS is highlighted for its functionality similar to Python's NumPy, particularly in handling numerical operations. Users are interested in implementing complex-valued matrices, numerical integration, and calculating expectation values based on measurement operators. The conversation emphasizes the need for libraries that facilitate technical accuracy in browser-based applications.

PREREQUISITES
  • Understanding of linear algebra with complex-valued matrices and vectors
  • Familiarity with numerical integration techniques
  • Knowledge of quantum mechanics concepts, particularly expectation values
  • Basic proficiency in JavaScript programming
NEXT STEPS
  • Explore P5.js for creating animations in JavaScript
  • Investigate NumJS for numerical operations similar to NumPy
  • Research techniques for numerical integration involving operators in integrands
  • Learn about calculating expectation values in quantum mechanics
USEFUL FOR

This discussion is beneficial for developers working on quantum mechanics simulations, educators in physics, and anyone interested in implementing technical animations in JavaScript.

Swamp Thing
Insights Author
Messages
1,048
Reaction score
799
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.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K