Quantification of entanglement and coherence with purity detectionTing ZhangGraeme Smithet al.2024npj Quantum Information