Quantum anonymous ranking based on the Chinese remainder theorem