Now we are ready to introduce features that are more specific to the study quantum entanglement. Included here are measures of the degree of purity and measures of the degree of entanglement. For a review of quantum entanglement, see Ref.[1].
In this example we create three arbitrary
matrices, and check that
Here we trace over one component repeatedly and check that the result is
equal to the full trace. Note that, each time, we are tracing over the new
first component.
| (5) |
| (6) | ![]() |
| (7) | ![]() |
concurrence(rho) returns the concurrence of the state rho.
concurrence_vals(rho) returns a list of the square roots of
the eigenvalues in decreasing order, to the extent that Maxima
can determine the order.
When other methods are added, the organization and naming of the tests may change.
We see that Maxima is allowing that the quantities under the radicals may be negative. So
we set some rules, and try again.
The entropy
vanishes for a pure state, so that
is
The purity is equal to
if and only if
is a pure state.
Now we compute the reduced density matrix of the second qubit by tracing over the first--
Tracing over the second qubit instead gives the same result
Computing
the entropy of a local state
shows that this state is, in general, mixed
Each eigenvalue
satisfies
, so that the sum of their squares is less than
one
We
can plot the results (the plot function plot2d is more
common, depending on your user interface. wxplot2d has
the same calling syntax, but inlines the resulting plot.) We
see that the maximum entanglement occurs at
and
decreases monotonically from there in both directions, with
giving pure joint states.