Quantum SHO Ladder Operator in Mathcad

Click For Summary
SUMMARY

The discussion focuses on implementing a function in Mathcad to graph the first 15 states of the quantum simple harmonic oscillator using the ladder operator. The user initially faced challenges in returning a function from their loop but resolved it by assigning the result to an intermediate function before updating psi. Additionally, they encountered performance issues when graphing psi 3(x), which were mitigated by applying the simplify function to psi n(x) prior to graphing. The user seeks automation for the simplification process to enhance efficiency.

PREREQUISITES
  • Understanding of Quantum Mechanics, specifically the simple harmonic oscillator.
  • Familiarity with Mathcad software and its function creation capabilities.
  • Knowledge of ladder operators in quantum mechanics.
  • Experience with function simplification techniques in mathematical software.
NEXT STEPS
  • Research how to implement recursive functions in Mathcad for quantum state generation.
  • Learn about optimizing performance in Mathcad when dealing with complex functions.
  • Explore automation techniques in Mathcad for repetitive tasks, such as function simplification.
  • Investigate advanced graphing techniques in Mathcad for better visualization of quantum states.
USEFUL FOR

Students and researchers in quantum mechanics, Mathcad users, and anyone interested in optimizing mathematical function processing and graphing in computational software.

bugbug
Messages
10
Reaction score
0
A Quantum I problem set asks me to graph the first 15 states of the simple harmonic oscillator. Our department uses mathcad heavily, so I think I should write a function that applies the ladder operator repeatedly to generate the wave function. I'm having trouble getting it to actually return a function to me though. Enclosed is the little loop I have written. Any advice on making this actually work?
 

Attachments

  • quantumsholadder.GIF
    quantumsholadder.GIF
    1.8 KB · Views: 556
Computer science news on Phys.org
I figured out the problem. I need to assign the result of the application of the wave function to an intermediate function before assigning it back to psi:
 

Attachments

  • quantumsholadderfix.GIF
    quantumsholadderfix.GIF
    2.1 KB · Views: 562
All right. Now I have another problem. When I attempt to graph psi 3 (x) it takes an extraordinarily long time to process. But if I apply simplify to psi n of x and then paste that into the graph it evaluates in much, much less time. Is there any way to automate this process?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K