- #1
munirah
- 31
- 0
Good day,
I want to make a measurement on qubit by using formula von Neumann entropy using Mathematica given as below;
(ρ)=−Tr(ρlog2ρ)
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.
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.