Partial Trace and Density Matrix of a Pure State

4 views (last 30 days)
GABBA
GABBA on 6 Aug 2016
Edited: GABBA on 6 Aug 2016
I have the pure state phi = (1/2)*(|0>a|0>b + |0>a|1>b + |1>a|0>b + |1>a|1>b), and I want to take the bra multiplied by the ket to to get the density matrix Pab = |phi><phi|. Then, I want to find the partial trace TrbPab.
How can I do this on MatLab? A general sketch of the code would be helpful, particularly how you code phi, Pab, and TrbPab.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!