Tomographic reconstruction of the density matrix via pattern functions | Synapse