HQSquantumsimulations / qoqo-quest

Other
7 stars 8 forks source link

Strange behaviour when wrong readout is passed to PragmaSetNumberOfMeasurements #150

Open gsilviHQS opened 1 year ago

gsilviHQS commented 1 year ago

Passing a wrong readout to

ops.PragmaSetNumberOfMeasurements(number_measurements, 'WrongReadoutName')

Do not trigger any error/warning This in fact happens if one tries the same with PragmaRepeatedMeasurement, where it shows the message: RuntimeError: Running Circuit failed GenericError { msg: "Trying to write readout to non-existent register WrongReadoutName" } And the measurement output has an unusual pattern that is clearly wrong.

It might be related to the unused function // pub fn execute_measure_qubit_repeated

Attached is an example of the strange behavior Screenshot from 2023-03-09 10-45-21 Screenshot from 2023-03-09 10-44-27