Linear partial trace #
Bundle the existing partial trace as a complex-linear map, using its existing addition and scalar laws. This lets linear measurement continuations observe a reference register and lets the generic linear-map API handle sums and real scalar towers.
Main definitions #
Cslib.Quantum.partialTraceLeftLinearMap: the existing partial trace as a linear map.