Search
- https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_(Chong)/01%3A_Scipy_Tutorial/1.02%3A_Getting_StartedThe factor of 4πϵ0 in the denominator is annoying to keep around, so we will adopt "computational units". This means that we'll rescale the potential, positions and/or the charges so t...The factor of 4πϵ0 in the denominator is annoying to keep around, so we will adopt "computational units". This means that we'll rescale the potential, positions and/or the charges so that, in the new units of measurement, 4πϵ0=1. On Windows, in the window that was opened up by the IDLE (Python GUI) program, click on the menu-bar item File → New File; then type Ctrl-s (or click on File → New File) and save the empty file as potentials.py.
- https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_(Chong)/11%3A_Discrete_Fourier_TransformsDFT{f0,f1,…,fN−1}={F0,F1,…,FN−1}whereFn=N−1∑m=0e−2πimnNfm. \[\mathrm{IDFT}\Big\{F_0, F...DFT{f0,f1,…,fN−1}={F0,F1,…,FN−1}whereFn=N−1∑m=0e−2πimnNfm. IDFT{F0,F1,…,FN−1}={f0,f1,…,fN−1}wherefm=1NN−1∑n=0e2πimnNFn.
- https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_(Chong)/01%3A_Scipy_Tutorial/1.03%3A_Modularizing_the_CodeIn programming terminology, our program is insufficiently "modular". Ideally, we want to isolate the part of the program that computes the potential from the part that specifies the numerical inputs t...In programming terminology, our program is insufficiently "modular". Ideally, we want to isolate the part of the program that computes the potential from the part that specifies the numerical inputs to the calculation, like the positions and charges. As explained by the comments, we intend to use these for the positions of the particles, the charges of the particles, and the positions at which to measure the potential, respectively.
- https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_(Chong)/12%3A_Markov_Chains/12.02%3A_General_DescriptionIn physics, we are often interested in using Markov processes to model thermodynamic systems, such that a stationary distribution represents the distribution of thermodynamic micro-states under therma...In physics, we are often interested in using Markov processes to model thermodynamic systems, such that a stationary distribution represents the distribution of thermodynamic micro-states under thermal equilibrium. (We'll see an example in the next section.) Knowing the stationary distribution, we can figure out all the thermodynamic properties of the system, such as its average energy.
- https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_(Chong)/02%3A_Scipy_Tutorial_(Part_2)This is part 2 of the Scientific Python tutorial.
- https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_(Chong)/08%3A_Sparse_Matrices/8.04%3A_Example-_Particle-in-a-Box_ProblemNotice that we call eigsh using the sigma parameter, telling the eigensolver to find the eigenvalues closest in value to −1.0: This will find the lowest energy eigenvalues because, in this case, a...Notice that we call eigsh using the sigma parameter, telling the eigensolver to find the eigenvalues closest in value to −1.0: This will find the lowest energy eigenvalues because, in this case, all energy eigenvalues are positive. (We use −1.0 instead of 0.0, because the algorithm does not work well when sigma is exactly zero.) If there is a negative potential present, we would have to find a different estimate for the lower bound of the energy eigenvalues, and pass that to sigma.
- https://phys.libretexts.org/Learning_Objects/Demos_Techniques_and_Experiments/Physics_Laboratory_(Chong)/2%3A_Writing_a_Good_Lab_Report/2.5%3A_AppendixFigure \PageIndex1: Here, the “Apparatus” and “Procedure” sections are lifted from the lab manual. The equipment list and assembly instructions are irrelevant; only the assembled apparatus ought...Figure \PageIndex1: Here, the “Apparatus” and “Procedure” sections are lifted from the lab manual. The equipment list and assembly instructions are irrelevant; only the assembled apparatus ought to be described. Any text appearing in a figure is assumed to be relevant, and should thus be legible; if the text is irrelevant, omit it. Also, the horizontal axis should have a proper title (text description and symbol, not just a unit).
- https://phys.libretexts.org/Bookshelves/Quantum_Mechanics/Quantum_Mechanics_III_(Chong)/06%3A_Appendices/6.04%3A_D-_Numerical_Tensor_Products\[\begin{align} \hat{A} \otimes | b\rangle &= \sum_{\mu m'} |\mu\rangle \, [\texttt{kron}(A^T, b)^T]_{\mu m'} \, \langle m'| && \leftrightarrow \;\; \texttt{kron}(A^T, b)^T\\ \hat{A} \otimes \langle b...ˆA⊗|b⟩=∑μm′|μ⟩[kron(AT,b)T]μm′⟨m′|↔kron(AT,b)TˆA⊗⟨b|=∑mμ′|m⟩[kron(A,b∗)]mμ′⟨μ′|↔kron(A,b∗).
- https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_(Chong)/09%3A_Numerical_Integration/9.05%3A_Monte_Carlo_IntegrationIt requires a much larger number of samples in order to reach a level of numerical accuracy comparable to the other numerical integration methods. (For 1D integrals, Monte Carlo integration typically ...It requires a much larger number of samples in order to reach a level of numerical accuracy comparable to the other numerical integration methods. (For 1D integrals, Monte Carlo integration typically requires millions of samples, whereas Simpson's rule only requires hundreds or thousands of discretization points.) However, Monte Carlo integration outperforms discretization-based integration schemes when the dimensionality of the integration becomes extremely large.
- https://phys.libretexts.org/Bookshelves/Quantum_Mechanics/Quantum_Mechanics_III_(Chong)/03%3A_Quantum_Entanglement/3.09%3A_Exercises⟨μ|(|μ′⟩+|μ″ In Section 3.1, we defined a tensor product space \mathscr{H}_A\otimes\mathscr{H}_B ...\langle\mu| \, \big(|\mu'\rangle + |\mu'' \rangle\big) = \langle \mu|\mu'\rangle + \langle \mu|\mu''\rangle In Section 3.1, we defined a tensor product space \mathscr{H}_A\otimes\mathscr{H}_B as the space spanned by the basis vectors \{|\mu\rangle\otimes|\nu\rangle\}, where the |\mu\rangle’s are basis vectors for \mathscr{H}_A and the |\nu\rangle’s are basis vectors for \mathscr{H}_B.
- https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Complex_Methods_for_the_Sciences_(Chong)An introductory course in mathematical methods for science and engineering students. Topics covered include complex analysis, contour integration, Fourier analysis, and Green's function methods. Mathe...An introductory course in mathematical methods for science and engineering students. Topics covered include complex analysis, contour integration, Fourier analysis, and Green's function methods. Mathematical methods are illustrated with examples drawn from physics, with a focus on oscillations and waves. These notes are also available in the form of Jupyter notebooks on Github (GPLv3).