QGAME: Quantum Gate and Measurement Emulator, a quantum computer simulator