Closed prince-ph0en1x closed 5 years ago
@anneriet is having the same issue. She is getting segmentation fault for any runs more than once. She is running on Ubuntu 16.04 and qx-simulator 0.3.
Even doing this doesn't work.
p_soln = 0
qx = qxelarator.QX()
qx.set('test_output/p_name.qasm')
qx.execute()
c0 = qx.get_measurement_outcome(0)
print('{}'.format(c0))
if c0 == False:
p_soln = p_soln+1
qx2 = qxelarator.QX()
qx2.set('test_output/p_name.qasm')
qx2.execute()
c0 = qx2.get_measurement_outcome(0)
print('{}'.format(c0))
if c0 == False:
p_soln = p_soln+1
I also ran into some issues running the automated test suite, and discovered that running the tests inside the qx-simulator folder (python3 -m pytest) also gives the segmentation fault (core dumped)
@anneriet , @prince-ph0en1x . fixed in https://github.com/QE-Lab/qx-simulator/pull/70. please pull the develop and test on your machines.
yes, works for me!
test_qxl.py
Output:
Is this related to https://github.com/QE-Lab/qx-simulator/issues/2 I am using Ubuntu 18.04 Works always for shots 1 or 2. It freezes in the
qx.execute()
, notqx.get_measurement_outcome(0)