• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 328 pages
Exam (elaborations)

Using Mathematica for Quantum Mechanics Student's Manual | Exercises, Examples & Study Guide

Document preview thumbnail
Preview 4 out of 328 pages

Master quantum mechanics computations with the Using Mathematica for Quantum Mechanics Student's Manual (PDF) for 2026. Featuring step-by-step exercise solutions, worked examples, and Mathematica script walkthroughs covering wave functions, operators, quantum states, and perturbation theory. Essential study resource for physics and engineering students preparing for coursework and exams.Quantum Mechanics Mathematica Solutions, Quantum Mechanics Mathematica PDF, Mathematica Quantum Physics Guide, Quantum Mechanics Mathematica Exercises, Mathematica Quantum Mechanics Answers, Quantum Mechanics Student Manual, Quantum Physics Mathematica Solutions, Mathematica Quantum Mechanics Review, Quantum Mechanics Practice Problems, Quantum Mechanics Study Guide, Mathematica Physics Solution Manual, Quantum Mechanics Homework Help, Mathematica Quantum Physics Practice, Quantum Mechanics Coursework Help, Quantum Mechanics Exam Prep, Mathematica Physics Study Guide, Quantum Physics Practice Problems, Mathematica Quantum Mechanics PDF, Quantum Mechanics Problem Solutions, Mathematica Quantum Physics Review

Content preview

PD Dr. Roman Schmied




Using Mathematica for
arXiv:1403.7050v3 [quant-ph] 4 Feb 2019




Quantum Mechanics
A Student’s Manual




University of Basel, Switzerland

,ii


© 2012–2019 Roman Schmied.

compiled on February 5, 2019

published at https://arxiv.org/abs/1403.7050

This book accompanies a one-semester lecture given yearly at the Department of Physics, University
of Basel, Switzerland. The target audience are Master’s and PhD students in physics and related fields.

Wolfram Mathematica®, the Wolfram language®, and Wolfram Alpha® are registered trademarks of
Wolfram Research, Inc.
Adobe® Acrobat® Reader® is a registered trademark of Adobe Systems, Inc.




Cover: First light of 2017, Aussichtsturm Liestal, Switzerland.
© 2017 Roman Schmied.

, contents

preface vii
Why Mathematica? .................................................................................................................................... viii
Mathematica source code ................................................................................................................. viii
outline of discussed topics........................................................................................................................... viii

1 Wolfram language overview 1
1.1 introduction........................................................................................................................................... 2
1.1.1 exercises.................................................................................................................................. 2
1.2 variables and assignments .................................................................................................................... 3
1.2.1 immediate and delayed assignments .......................................................................................4
1.2.2 exercises...................................................................................................................................4
1.3 four kinds of bracketing....................................................................................................................... 5
1.4 prefix and postfix .................................................................................................................................. 5
1.4.1 exercises.................................................................................................................................. 6
1.5 programming constructs ...................................................................................................................... 6
1.5.1 procedural programming ........................................................................................................ 6
1.5.2 exercises...................................................................................................................................7
1.5.3 functional programming.......................................................................................................... 8
1.5.4 exercises.................................................................................................................................. 9
1.6 function definitions .............................................................................................................................. 9
1.6.1 immediate function definitions ................................................................................................ 9
1.6.2 delayed function definitions ................................................................................................... 10
1.6.3 memoization: functions that remember their results ......................................................... 10
1.6.4 functions with conditions on their arguments..................................................................... 11
1.6.5 functions with optional arguments ...................................................................................... 12
1.7 rules and replacements ...................................................................................................................... 12
1.7.1 immediate and delayed rules ................................................................................................. 13
1.7.2 repeated rule replacement..................................................................................................... 14
1.8 debugging and finding out how Mathematica expressions are evaluated ....................................... 14
1.8.1 exercises................................................................................................................................ 15
1.9 many ways to define the factorial function ...................................................................................... 16
1.9.1 exercises................................................................................................................................ 18
1.10 vectors, matrices, tensors.................................................................................................................. 18
1.10.1 vectors ................................................................................................................................... 18
1.10.2 matrices ................................................................................................................................. 19
1.10.3 sparse vectors and matrices ................................................................................................... 19
1.10.4 matrix diagonalization .......................................................................................................... 20
1.10.5 tensor operations .................................................................................................................. 22
1.10.6 exercises................................................................................................................................ 23
1.11 complex numbers............................................................................................................................... 24
1.12 units .................................................................................................................................................... 24

2 quantum mechanics: states and operators 27
2.1 basis sets and representations ............................................................................................................ 28

iii

, 2.1.1 incomplete basis sets .............................................................................................................28
2.1.2 exercises ................................................................................................................................29
2.2 time-independent Schrödinger equation ............................................................................................. 29
2.2.1 diagonalization .......................................................................................................................30
2.2.2 exercises ................................................................................................................................30
2.3 time-dependent Schrödinger equation ................................................................................................ 30
2.3.1 time-independent basis .......................................................................................................... 31
2.3.2 time-dependent basis: interaction picture ............................................................................32
# $
2.3.3 special case: Ĥ(t ), Ĥ(t J ) = 0 6(t, tJ) .................................................................................32
2.3.4 special case: time-independent Hamiltonian .......................................................................... 33
2.3.5 exercises ................................................................................................................................33
2.4 basis construction ...............................................................................................................................33
2.4.1 description of a single degree of freedom.............................................................................33
2.4.2 description of coupled degrees of freedom ........................................................................... 34
2.4.3 reduced density matrices.........................................................................................................36
2.4.4 exercises ................................................................................................................................38

3 spin and angular momentum 39
3.1 quantum-mechanical spin and angular momentum operators ......................................................... 40
3.1.1 exercises ................................................................................................................................ 41
3.2 spin-1/2 electron in a dc magnetic field ........................................................................................... 41
3.2.1 time-independent Schrödinger equation.................................................................................43
3.2.2 exercises ................................................................................................................................43
3.3 coupled spin systems: 87Rb hyperfine structure ................................................................................43
3.3.1 eigenstate analysis ................................................................................................................ 45
3.3.2 “magic” magnetic field ........................................................................................................... 47
3.3.3 coupling to an oscillating magnetic field .............................................................................. 47
3.3.4 exercises ................................................................................................................................52
3.4 coupled spin systems: Ising model in a transverse field....................................................................52
3.4.1 basis set ..................................................................................................................................53
3.4.2 asymptotic ground states ...................................................................................................... 54
3.4.3 Hamiltonian diagonalization.................................................................................................. 54
3.4.4 analysis of the ground state...................................................................................................55
3.4.5 exercises ................................................................................................................................ 61
3.5 coupled spin systems: quantum circuits ............................................................................................62
3.5.1 quantum gates .......................................................................................................................62
3.5.2 a simple quantum circuit ........................................................................................................ 65
3.5.3 application: the Quantum Fourier Transform .....................................................................66
3.5.4 application: quantum phase estimation ................................................................................68
3.5.5 exercises ................................................................................................................................70

4 quantum motion in real space 71
4.1 one particle in one dimension ............................................................................................................72
4.1.1 units ........................................................................................................................................72
4.1.2 computational basis functions ...............................................................................................73
4.1.3 the position operator ............................................................................................................. 77
4.1.4 the potential-energy operator................................................................................................ 78
4.1.5 the kinetic-energy operator ................................................................................................... 78
4.1.6 the momentum operator .......................................................................................................79
4.1.7 example: gravity well .............................................................................................................79
4.1.8 the Wigner quasi-probability distribution ..............................................................................83
4.1.9 1D dynamics in the square well .............................................................................................86
4.1.10 1D dynamics in a time-dependent potential .........................................................................89
4.2 non-linear Schrödinger equation .......................................................................................................... 91
4.2.1 ground state of the non-linear Schrödinger equation ..........................................................93
4.3 several particles in one dimension: interactions ................................................................................95

Document information

Uploaded on
October 13, 2026
Number of pages
328
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$21.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
PrepPulse1
4.0
(38)
Sold
341
Followers
7
Items
4907
Last sold
2 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions