To calculate the final state outside the CTC, a specific mathematical operation (trace) considers only the external system's state after the combined evolution of both the external system and the CTC. The tensor product (⊗) of the density matrices for both systems describes this combined evolution. Then, a unitary time evolution operator (U) is applied to the whole system.