Trace in statistical mechanics

In summary, the trace of an operator \hat{B} is defined as the sum of the diagonal matrix elements, and is used in calculating mean values of ensembles in quantum mechanics. The density matrix is the matrix form of the density operator, and the trace of an operator can also be calculated by summing the diagonal elements in the matrix representation of the operator. The rule Tr(AB) = Tr(BA) also applies to operators, but can be derived using the definition of trace.
  • #1
rayveldkamp
60
0
Hi, I am just starting a 3rd year course in Statistical Mechanics, and am a bit confused about the operator trace, Tr. I know there is a trace for quantum operators, as well as one in classical physics, but i am not sure how to calculate either, or their physical meaning. Any help would be great, thanks.

Ray
 
Physics news on Phys.org
  • #2
Hello rayveldkamp,

The trace of an operator [tex]\hat{B}[/tex] is defined as:

[tex]Tr(\hat{B}) = \sum_{i=1}^{N} <\Psi_{i}| \hat{B} |\Psi_{i}>[/tex]

where the [tex] |\Psi_{i} >[/tex] are a complete basis.
You so to say take the sum of the diagonal matrix elements.

Traces are used for example in context with density operators.
You have for example many particles that are in different states.
Take for example an ensemble of electrons (ensemble = many particles)
or atoms in a hot oven.

This ensemble can be described by the density operator:

[tex] \hat{\rho} = \sum_{i=1}^{N} p_{i} |\Psi_{i}> <\Psi_{i}| [/tex]

where [tex] p_{i} [/tex] is the probability (classical probability) of having a particle in the state [tex] |\Psi_{i}> [/tex].

Example:
Ensemble of electrons, [tex]p_{1} =3/4[/tex] with spin up and [tex]p_{2}=1/4[/tex] spin down:

[tex] \hat{\rho}} = \frac{3}{4} |\uparrow\rangle \langle\uparrow| + \frac{1}{4} |\downarrow \rangle \langle\downarrow| [/tex]


Suppose you want to know what's the mean value of the ensemble for a certain operator [tex] \hat{A}[/tex] (for example spin, momentum etc).

This can be done by calculating the trace:

[tex] <\hat{A}> = Tr(\rho \hat{A}) = \sum_{i=1}^{N} < \Psi_{i}| \hat{\rho} \hat{A} |\Psi_{i}>[/tex].
 
  • #3
Thankyou for that, that clears up a lot of my misunderstanding. In lectures it's been mentioned that trace is the same as summing the diagonal elements of a matrix, however what matrix are we referring to here? So the density operater describes the probabilities of certain states, how is this related to the density matrix, and what is it exactly?
Thanks

Ray
 
  • #4
rayveldkamp said:
what matrix are we referring to here?

Let's take for example a matrix [tex] M [/tex]

[tex] M = \left( \begin{array}{cc}
a & b \\
c & d \\
\end{array} \right) [/tex]

Often the matrix is just denoted as [tex]M_{lm}[/tex],
with [tex] M_{11} = a[/tex], [tex] M_{12} = b[/tex], [tex] M_{21} = c[/tex] and [tex] M_{22} = d[/tex].
(l=1 or 2, m=1 or 2)

Now what's a matrix of an operator in QM?
The matrix is just defined as

[tex]A_{lm} = \langle \Phi_{l}|\hat{A}|\Phi_{m} \rangle [/tex]

So if someone asks you to write down the matrix representation
of the operator [tex] \hat{A} [/tex], you just have to calculate the matrix elements [tex]A_{lm}[/tex] from above and then write them in a matrix form,
for example:

[tex] A_{lm} = \left( \begin{array}{cc}
\langle \Phi_{1}|\hat{A}|\Phi_{1} \rangle & \langle \Phi_{1}|\hat{A}|\Phi_{2} \rangle \\
\langle \Phi_{2}|\hat{A}|\Phi_{1} \rangle & \langle \Phi_{2}|\hat{A}|\Phi_{2} \rangle \\
\end{array} \right) [/tex]

EXAMPLE:
An example is the matrix form of the [tex] \hat{S}_{z}[/tex] operator, which describes a spin easurement along the z-axis. You surely have heard of the Pauli spin matrices. (Try to calculate the matrix representation for[tex] S_{z}[/tex] or look it up in the Quantum Mechanics book by Cohen Tannoudji, where I found it well described).


rayveldkamp said:
So the density operater describes the probabilities of certain states, how is this related to the density matrix, and what is it exactly?

The density matrix is the matrix form of the density operator, namely

[tex] \rho_{lm} = \langle \Phi_{l}|\hat{\rho}|\Phi_{m} \rangle [/tex]


rayveldkamp said:
In lectures it's been mentioned that trace is the same as summing the diagonal elements of a matrix

We know that

[tex] B_{lm} = \langle \Psi_{l}| \hat{B} |\Psi_{m} \rangle [/tex]

What's [tex] B_{ii} [/tex]?
Answer: [tex] B_{ii} = \langle \Psi_{i}| \hat{B} |\Psi_{i} \rangle [/tex]

Next step:
The definition of the trace of an operator [tex]\hat{B}[/tex]
is:

[tex]Tr(\hat{B}) = \sum_{i=1}^{N} \langle \Psi_{i}| \hat{B} |\Psi_{i} \rangle[/tex]

From this it follows:

[tex] Tr(\hat{B}) = \sum_{i=1}^{N} B_{ii} [/tex]

What's [tex]\sum_{i=1}^{N} B_{ii} [/tex] ?

Well, it's the the sum of the diagonal elements, namely [tex] B_{11} + B_{22} + B_{33} ...[/tex]

Therefore taking the trace means summing up the diagonal elements.
 
  • #5
Thanks, i fully understand now, using the derivation of Pauli spin matrices from last semester i can see how trace works, its just that our lecturer this semester has not really written anything out in matrix form, he's just mentioned it in passing.
Cheers

Ray
 
  • #6
hi
this explanation helped me too. but understand that the rule: tr(AB)=tr(BA) works for operators as well and I can't see why

thanks

Ramy
 
  • #7
ramyfishler said:
hi
this explanation helped me too. but understand that the rule: tr(AB)=tr(BA) works for operators as well and I can't see why

thanks

Ramy
[tex]Tr(XY)=\sum_{a'}\langle a'|XY|a'\rangle=\sum_{a'}\sum_{a''}\langle a'|X|a''\rangle\langle a''|Y|a'\rangle =\sum_{a''}\sum_{a'}\langle a''|Y|a'\rangle\langle a'|X|a''\rangle[/tex]

[tex]=\sum_{a''}\langle a''|YX|a''\rangle=Tr(YX)[/tex]
 
  • #8
thanks
 

Related to Trace in statistical mechanics

1. What is the trace in statistical mechanics?

The trace in statistical mechanics refers to the sum of the diagonal elements of a matrix. In other words, it is the sum of the eigenvalues of the matrix.

2. How is the trace used in statistical mechanics?

The trace is used in statistical mechanics to calculate the partition function, which is a fundamental concept in statistical mechanics that relates the thermodynamic properties of a system to its microscopic states.

3. How is the trace related to entropy in statistical mechanics?

The trace is related to entropy through the Gibbs entropy formula, which states that the entropy of a system is equal to the negative trace of the density matrix multiplied by the logarithm of the density matrix.

4. Can the trace be calculated for any matrix in statistical mechanics?

Yes, the trace can be calculated for any square matrix in statistical mechanics as long as the matrix is Hermitian or symmetric.

5. What is the physical significance of the trace in statistical mechanics?

The trace has physical significance in statistical mechanics as it is related to important thermodynamic properties such as energy, heat capacity, and entropy. It is also used to calculate the free energy of a system, which is a measure of its ability to do work.

Similar threads

  • Quantum Physics
Replies
1
Views
990
  • Quantum Physics
Replies
6
Views
2K
  • Quantum Physics
Replies
22
Views
2K
  • Quantum Physics
Replies
22
Views
1K
  • Quantum Physics
Replies
12
Views
725
Replies
1
Views
973
  • Quantum Physics
Replies
27
Views
2K
Replies
4
Views
1K
Replies
11
Views
1K
  • STEM Academic Advising
Replies
6
Views
1K
Back
Top