QX backend gives segfault when used with JIT compiler

The QX backend yields a segmentation fault when used with the JIT compiler.