Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I save (stationary or dynamical) expectation values?

0
Posted

How can I save (stationary or dynamical) expectation values?

0

The WavePacket scripts qm_bound.m and qm_bound.m calculate expectation values of a choice of elementary operators for each bound state or for each time step, respectively. The resulting sequences can be found in the respective log files and they are also displayed in various plots. If, in addition, you want them to be stored in additional files, you should issue, e. g., the following Matlab commands upon running qm_propa.m: data(:,1)=time.main.grid; data(:,2)=expect.ind.kin{1,1}; save (‘-ascii’, ‘expect.mat’, ‘data’); which would create a two-column ASCII file containing the time-dependence of the kinetic energy w.r.t. the first component of the wavefunction resulting from the solution of (coupled) time-dependent Schrödinger equations.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123