Quantum SHO Ladder Operator in Mathcad

AI Thread Summary
The discussion revolves around creating a function in Mathcad to graph the first 15 states of a simple harmonic oscillator using the ladder operator. Initially, there were issues with returning the wave function correctly, which were resolved by assigning the result of the wave function application to an intermediate function before reassigning it to psi. However, a new challenge arose when graphing psi 3 (x), which took a long time to process. It was found that applying a simplify function to psi n of x before graphing significantly reduced processing time. The user seeks a method to automate the simplification process for improved efficiency in graphing.
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: 540
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: 543
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?
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top