virtual quantum error detection