I updated the scripts for the BSQZ to give calibrated transfer functions and noise spectra. This concerns lockBreadboardOpo.py, clf2_AOM.py for the three loops OPO PDH, CLF 2f, CLF-LO.
For all three loops:
- The functions "measureErrorSignal", "measure_CLF_2f_beatnote_amplitude" and "measure_CLF_LO_beatnote" with the toggle "make_plot = True" make plots of the demodulated error signals which get fed into the PID block. Therefore measureErrorSignal is used before locking the OPO PDH loop, while the other two can be used either before locking the loop to see if the RP sees a demodulated beatnote, or after locking the loop to make sure that the error quadrature is kept at 0 while the amplitude quadrature is stable. Choosing which quadrature to look at on the CLF loops can be done using the toggle "error_quadrature = False" in order to look at the amplitude quadrature. The plot can be truncated by using the parameters "x_min" and "x_max", between 0 and 2**14, the sampling size of an RP acquisition.
- The "...NA()" functions will now overlap a calibrated model of the OLTF on top of the measured data. The toggle parameter is "overlap_model = True". The model OLTF is called "H_OL(...)" and can be found in the script. It is possible to give a name to the Bode plot and save it in the folder "Loop TFs and spectra" on the git. The toggle parameter is "save_plot = True".
- The "...SA()" functions will now overlap a calibrated cumulated phase noise on top of the measured spectrum. The toggle parameter is "make_cumsum = True". The phase noise here is always calibrated relative to the fields of the loop, so it is not equal to the phase noise seen by the squeezed state (there's an additional transfer function to convert the phase noise of the loop into the phase noise on the squeezing angle, generally a factor larger than 1 for these 3 loops). The computation of the cumulated phase noise is done through the function "compute_phase_noise". It is possible to give a name to the spectrum and save it in the folder "Loop TFs and spectra" on the git. The toggle parameter is "save_plot = True".
Details of the OPO PDH loop:
- To calibrate the TF model H_OL, I need the PDH slope as seen by the measureErrorSignal function (k_PDH in Volt/Volt), and because the PZT is put in series with a 30 kOhm resistor, it acts as an integrator. I manually tuned this integrator frequency to optimally match the measured data and left it at 25 in the code of "H_OL". Additionally, k_PDH is defined by default in the script to be 20. It depends on the GR power so you need to report the value printed when the lock() function is executed, into the parameter "k_PDH = ..." of the "opoNA(...)" function.
- To calibrate the cumulated phase noise, I need to convert the spectrum from voltage units to phase units. To do this I need to know the k_PDH as well as the voltage required to move the mirror PZT by an FSR. I measured this once by looking at the plotted scan on the measureErrorSignal function, to be equal to 0.04V. This is the parameter Delta_V_FSR and it is assumed fixed. Note therefore that the phase noise that is output by this method corresponds to the phase noise on the pump field, not any of the IR fields.
Details of the CLF 2f and CLF-LO loops:
- To calibrate the TF model H_OL, I need the Moglabs's FM gain (fixed at 2 kHz/V on the code for both loops) "G_FM_Hz" & "G_FM_Hz" (there is a factor of 2 on the latter because a shift by 1 Hz on the CLF changes the CLF 2f beatnote by 2 Hz), the beatnote amplitude "P_avg" (computed automatically) and the Moglabs's channels' reponse times "tau_moglabs_CLF_pump", and "tau_moglabs_CLF_LO", which I calibrated manually to best fit the phase responses' drops.
- To calibrate the amplitude of the beatnote "P_avg", I use iq_clf2 and demodulate the error signal at the same frequency as the iq module doing the loop, but at a demodulation angle 90° away from it, such that I look at the amplitude quadrature. I then take the average of a scope trace of that demodulated quadrature and output the result, which should be the amplitude of the beatnote when the loop is locked. This is done in the functions "measure_CLF_LO_beatnote" and "measure_CLF_2f_beatnote_amplitude".
- To calibrate the cumulated phase noise, I need to conver the spectrum from voltage units to phase units. To do this I need to know the conversion from the error signal's voltage unit into phase units. This is just given by the amplitude of the beatnote "P_avg", as it's a sine wave betanote(t) = P_avg * sin(w t + phi(t)) which once demodulated properly and phi(t) taken small, approximated to P_avg * phi(t). The measurement process for "P_avg" has been described in the point above.
Results:
See the plots attached for examples of calibrated TFs and spectra. With the current tuning of the loops, I manage to have 1.5 kHz of UGF on the OPO PDH, 5 kHz of UGD on both the CLF 2f and the CLF LO. The phase noise is negligible on the OPO PDH (<1 mrad), while it is around 2 mrad on both the CLF 2f and the CLF LO loops.
Conclusion:
The BSQZ now has calibrated plots which we can use to quantify the efficiency of our loops.