Skip to content

Fix SegFault in QJIT tests

Created by: tnguyen-ornl

Resolve https://github.com/ORNL-QCI/qcor/issues/76

Looks like there is an interference when qjit is destroyed (probably related to some static data structures in LLVM JIT have been updated)

We don't have this issue for QJIT kernels in the Python global scope (normal use cases), but in unit tests, we define test kernels in local scopes, thus seeing this problem. Thus, the fix is to cache all the Python QJIT objects to extend their lifetime.

Merge request reports

Loading