Determine Whether to Play Pulse or Not Based on Readout Results
TinaHsing opened this issue · 3 comments
I am a novice on the Qick platform and would like to know how to use tProc to decide whether to play a pulse or not based on the comparison of readout with a custom threshold. Your sample code demonstrates comparing a specific number with a threshold. How can I replace the number with the readout result?
What you want is similar to what's done in the "active reset" program in the qubit demo notebook, https://github.com/openquantumhardware/qick/blob/main/qick_demos/06_qubit_demos.ipynb. The short answer is that the read
instruction copies the I/Q values from the most recent readout into a register, which you can then compare.
Does that help?
Thanks for your fast response, I am sorry that I didn't check more detail
I still have one question, can you explain more about
self.read(0,0, "lower",2) self.read(0,0, "upper", 3)
I read the tProcessor_64_and_Signal_Generator_V4.pdf
and found that there are only two args in read instruction.
read p, $r
You're right, that part of the tProcessor manual is out of date. read i, p, lower/upper, $r
reads input i
's accumulated I/Q into page p
, reg r
- so self.read(0, 0, "lower", 2)
reads input 0's I into page 0 register 2.