SMS dit: Quantum Latin squares and quantum functions: applications in quantum information