Stripped-down version of the LOQC simulator from qy