Quantum, Qiskit, Quantum Mechanics, Python, Programming.
spaced numbers between xMin and xMax, whereas np.arrange returns a NumPy array of all integers between -N/2 and N/2 with a default step size of 1. '''spatial grid''' xMin=0 xMax=500 x=np.linspace(xMin, xMax, N) '''momentum grid''' p=np.arange(-N/2, N/2)*((2*np.pi*hbar)/(N*((xMax-xMin)/(N-1)))) Now