Program.get_calibration

Program.get_calibration(instr)[source]

Get the calibration corresponding to the provided instruction.

Parameters

instr (AbstractInstruction) – An instruction.

Return type

Union[DefCalibration, DefMeasureCalibration, None]

Returns

A matching Quil-T calibration definition, if one exists.