BBN-Q / QGL

Quantum Gate Language (QGL) is a domain specific language embedded in python for specifying quantum gate sequences.
Apache License 2.0
29 stars 12 forks source link

num_measurements calculation is wrong when measurements are not simultaneous #82

Open blakejohnson opened 7 years ago

blakejohnson commented 7 years ago

For example:

[MEAS(q1)*MEAS(q2)]

we count as 1 measurement, but

[MEAS(q1), MEAS(q2)]

we count as 2 measurements. The num_measurements calculation should probably be done on a per channel basis. Then we have the new problem of choosing a value when the number of measurements is not uniform over the set of channels, but requires more infrastructure to solve.

cc @dieris

blakejohnson commented 7 years ago

Note that Diego mentioned one more case to fix in #83.