Quantum and Classical Query Complexities of Functions of Matrices | Synapse