Time units
Time durations are generally specified in units of clock cycles. The relevant clocks are the tProcessor clock (c_clk) and the fabric clocks of the generators and readouts. In general these can all be different (and can even vary among generators or readouts).
tProcessor Time
The tProcessor uses a 48-bit absolute time counter (t_abs) that runs at the DAC clock frequency (t_clk). Time values in tProc assembly (e.g., @1000, @s_out_time) are in units of t_clk cycles.
Typical clock frequencies:
t_clk (DAC clock): 384 MHz to 6 GHz
c_clk (core clock): ≤ t_clk (typically 350-384 MHz)
Conversion helpers in Python:
For convenience, the QickConfig.us2cycles() and QickConfig.cycles2us() methods convert between floating-point times and integer cycles.
You must specify which clock you are using:
Parameter Type |
Use |
Example |
|---|---|---|
Generator (pulse length, sigma) |
|
|
Readout (acquisition length) |
|
|
tProcessor (wait, sync, delays) |
No channel parameter |
|
Example:
from qick import *
soc = QickSoc()
soccfg = soc # QickSoc is itself a QickConfig, so soc has all these methods directly
# Convert 1 microsecond to tProc cycles
tproc_cycles = soccfg.us2cycles(1e-6)
print(f"1 us = {tproc_cycles} tProc cycles")
# Convert 1 us to generator 0 cycles
gen_cycles = soccfg.us2cycles(1e-6, gen_ch=0)
print(f"1 us = {gen_cycles} generator cycles")
Note: tProc time values (s_out_time, @time in assembly) are signed 32-bit integers. When using us2cycles(), ensure the result fits within ±2^31-1.