proj_choi_to_physical¶
-
forest.benchmarking.operator_tools.project_superoperators.
proj_choi_to_physical
(choi: numpy.ndarray, make_trace_preserving: bool = True) → numpy.ndarray¶ Projects the given Choi matrix into the subspace of Completetly Positive and either Trace Perserving (TP) or Trace-Non-Increasing maps.
Uses Dykstra’s algorithm with the stopping criterion presented in [DYKALG]
[DYKALG] Dykstra’s algorithm and robust stopping criteria. Birgin et al. (Springer US, Boston, MA, 2009), pp. 828–833, ISBN 978-0-387-74759-0. https://doi.org/10.1007/978-0-387-74759-0_143 This method is suggested in [PGD]
Parameters: - choi – the Choi representation estimate of a quantum process.
- make_trace_preserving – default true, projects the estimate to a trace-preserving process. If false the output process may only be trace non-increasing
Returns: The Choi representation of the Completely Positive, Trace Preserving (CPTP) or Trace Non-Increasing map that is closest to the given state.