Quantum emulator