This Python code is in support of the GPH-3004 Quantum Mechanics class for Engineers.
Daniel Côté dccote@cervo.ulaval.ca
A set of classes to solve the Schrödinger equation for various potentials.
Use pip install -r requirements.txt to install the required packages.
Four scripts:
-
schrodinger.py: classes to solve the schrodinger equation in various potentials. Several potentials are already programmed:- Infinite well
- Finite well
- Harmonic potential
- Half-harmonic potential
-
bells_inequalities.py: Following Chapter 4 in McIntyre, an implementation of what the results would be in a Bell's experiment with entangled particles. The code will produce the results as would be expected if Einstein-Podolsky-Rosen were correct and hidden variables exist, or if the current mathematical formalism with the Copenhagen interation is sufficient to explain the results.- The code will produce two sets of correlations which are different : never better than 44.4% with EPR, and 50% with QM. Only an experiment can decide.
- Experiments were performed and showed that QM is correct.
-
deriveintegrate.py: Differential operators can be represented by matrices. In suggests that integral operators can alos be represented as the inverse of differential operators. What may come as a surprise is that the definition of an operator does not set its representation unambiguously: we must also consider the domain of application, which includes the boundary conditions of the vectors.Simple cases are described to demonstrate this.
-
testschrodinger.pybecause we always test our code.