partialtrace
Partialtrace is a fundamental operation in quantum information theory used to simplify quantum states. It allows us to remove a subsystem from a composite quantum system, effectively focusing on the remaining parts. When we have a quantum system composed of two or more subsystems, its state can be described by a density matrix. The partial trace operation acts on this density matrix and eliminates the information pertaining to one or more of these subsystems.
For a bipartite system (composed of two subsystems A and B) described by a density matrix ρ_AB,
The mathematical definition of the partial trace involves summing over a complete orthonormal basis for the