ToolPythonIntermediate Crank-Nicolson for the Schrödinger equation: tunneling through a barrier E_mean = np.real(np.sum(np.conj(psi0) * (H @ psi0))) * dx
RecipePythonBeginner Save a parameter sweep in one HDF5 file with h5py and find any run again return (1 - np.exp(-gamma * t)) * np.real(z * np.exp(1j * w * t)) + 0.01 * rng.standard_normal(t.size)