openquantumhardware / qick

QICK: Quantum Instrumentation Control Kit
MIT License
177 stars 74 forks source link

pfb readout phase seems random while sweeping freq #251

Closed Ri-chard-Wu closed 3 months ago

Ri-chard-Wu commented 3 months ago

Hi,

We used your official bitstream "qick_training.bit" from the qce2023 repository to perform muxed readout using fullspeed signal generator and pfb readout. We found that when sweeping frequency the phase seems to be random as shown below:

image

however if I replace the pfb readout with a fullspeed readout, the phase is not random:

image

Additional info:

are we doing anything wrong?

meeg commented 3 months ago

You're not doing anything wrong, this is just a characteristic of the muxed generator and readout (see also #122 and #140). Neither is "phase-coherent" with respect to frequency changes - if you change the up-/down-conversion frequency, their phase will change unpredictably, and returning to the previous frequency will not restore the phase.

So as you discovered, if you want to do a phase measurement with a frequency sweep both your generator and readout need to be the non-muxed type. So the typical approach is to use fullspeed gen+RO to characterize each resonator, and use mux after you've chosen your optimal readout frequencies.

We do know this can be inconvenient, and we hope that whenever we update these firmware blocks they will be fully phase-coherent. And sorry for the lack of documentation on this point and for the non-fullspeed gens/ROs in general - most people using them are direct collaborators with our group and we explain this stuff when we give them the bitstream.

Ri-chard-Wu commented 3 months ago

Thanks!