Closed prince-ph0en1x closed 2 years ago
The res variable is boolean type even if 100 tests are run. How do I access the average value from the test code?
import qxelarator qx = qxelarator.QX() qx.set('rand.qasm') NTests = 100 qx.execute(NTests) res = qx.get_measurement_outcome(0)
The code above is the test_rand.py test case of Qxelerator
get_measurement_outcome indeed shows the final value of the measurement register for that qubit. You can easily compute an average per-qubit using the new output format (stdout or json)
The res variable is boolean type even if 100 tests are run. How do I access the average value from the test code?
The code above is the test_rand.py test case of Qxelerator