Partial Trace and Density Matrix of a Pure State
4 views (last 30 days)
Show older comments
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.
0 Comments
Answers (0)
See Also
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!