`MidCircuitMeasurementAnalyzer` doesn't handle all cases of measurement assigned variables
1tnguyen opened this issue · 0 comments
1tnguyen commented
There is an oversight in this line:
There are two cases:
-
For simple variable comparison (
var == True/False
): theid
field is actually in theleft
node, i.e., we need to look forcondition.left.id
. -
For subscript variables, e.g.,
results[0]
, theleft
is anast.Subscript
object, hence we need to look for thevalue
field to find the variable name.