How can I do when I make a Log2 towards zero?

Click For Summary

Homework Help Overview

The discussion revolves around the application of von Neumann entropy in quantum mechanics, specifically using a density matrix represented as ρ={{0.5,0},{0,0.5}}. The original poster encounters issues when attempting to compute the logarithm of the matrix, particularly log2, leading to undefined values.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the correct method for calculating the logarithm of a matrix, questioning whether the logarithm should be applied to the entire matrix or just its diagonal elements. Suggestions include using a lower limit for calculations and considering the properties of diagonalized matrices.

Discussion Status

The discussion is active with various participants offering insights and suggestions. There is a focus on clarifying the mathematical approach to the problem, particularly regarding the matrix logarithm and its implications for the calculation of von Neumann entropy.

Contextual Notes

Participants are navigating the complexities of matrix logarithms and the implications of diagonalization in the context of quantum mechanics. There is an acknowledgment of potential limitations in the original poster's approach, particularly concerning undefined logarithmic values.

munirah
Messages
28
Reaction score
0
Good day,

Homework Statement



I want to make a measurement on qubit by using formula von Neumann entropy using Mathematica given as below;

Homework Equations



(ρ)=−Tr(ρlog2ρ)

The Attempt at a Solution



The
ρ={{0.5,0},{0,0.5}}My problem is, when I make the

log2{{0.5,0},{0,0.5}}
I get the output

{{−1,∞},{∞,−1}}

How can I deal with this value in my measurement since it cannot be calculated?

Thank you.
 
Physics news on Phys.org
Looks like you take the logarithm of each entry in the matrix. I don't think that is what you want.
Matrix log?
 
  • Like
Likes   Reactions: munirah
Can you put in some lower limit, like ##2^{-20} ## ?
[edit] Ha ! o:)

[edit2] Isn't it so that you have already diagonalized ##\rho## so you can use the ## S = - \sum \eta\ln\eta ## here ?
 
Last edited:
  • Like
Likes   Reactions: munirah
mfb said:
Looks like you take the logarithm of each entry in the matrix. I don't think that is what you want.
Matrix log?
I'm not sure about the matrix log.I think it different
 
BvU said:
Can you put in some lower limit, like ##2^{-20} ## ?
[edit] Ha ! o:)

[edit2] Isn't it so that you have already diagonalized ##\rho## so you can use the ## S = - \sum \eta\ln\eta ## here ?
thank you for the input. I will search it and learn
 
munirah said:
I'm not sure about the matrix log.I think it different
My guess is the matrix log coincides with taking log of the diagonal elements once the matrix is diagonalized ...
 
BvU said:
My guess is the matrix log coincides with taking log of the diagonal elements once the matrix is diagonalized ...
it means only for diagonal matrices?
 
Just a guess. :smile:
 
BvU said:
Just a guess. :smile:
ok. thank you very much. i will look about it.
 
  • #10
BvU said:
My guess is the matrix log coincides with taking log of the diagonal elements once the matrix is diagonalized ...
Sure. This should be easy to see if you take the matrix exponential again.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
7K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 25 ·
Replies
25
Views
6K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 62 ·
3
Replies
62
Views
11K