pulse_factories =============== .. py:module:: quantify_scheduler.backends.qblox.operations.pulse_factories .. autoapi-nested-parse:: Module containing factory functions for pulses on the quantum-device layer. These factories take a parametrized representation of an operation and create an instance of the operation itself. The created operations make use of Qblox-specific hardware features. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: quantify_scheduler.backends.qblox.operations.pulse_factories.long_square_pulse quantify_scheduler.backends.qblox.operations.pulse_factories.staircase_pulse quantify_scheduler.backends.qblox.operations.pulse_factories.long_ramp_pulse .. py:function:: long_square_pulse(amp: float, duration: float, port: str, clock: str = BasebandClockResource.IDENTITY, t0: float = 0, grid_time_ns: int = constants.GRID_TIME, reference_magnitude: quantify_scheduler.operations.pulse_library.ReferenceMagnitude | None = None) -> quantify_scheduler.backends.qblox.operations.stitched_pulse.StitchedPulse Create a long square pulse using DC voltage offsets. .. warning:: This function creates a :class:`~quantify_scheduler.backends.qblox.operations.stitched_pulse.StitchedPulse` object, containing a combination of voltage offsets and waveforms. Overlapping StitchedPulses on the same port and clock may lead to unexpected results. :param amp: Amplitude of the envelope. :type amp: float :param duration: The pulse duration in seconds. :type duration: float :param port: Port of the pulse, must be capable of playing a complex waveform. :type port: str :param clock: Clock used to modulate the pulse. By default the baseband clock. :type clock: str, optional :param t0: Time in seconds when to start the pulses relative to the start time of the Operation in the Schedule. By default 0. :type t0: float, optional :param grid_time_ns: Grid time in ns. The duration of the long_square_pulse must be a multiple of this. By default equal to the grid time of Qblox modules. :type grid_time_ns: int, optional :param reference_magnitude: Scaling value and unit for the unitless amplitude. Uses settings in hardware config if not provided. :type reference_magnitude: optional :returns: A StitchedPulse object containing an offset instruction with the specified amplitude. :rtype: StitchedPulse :raises ValueError: When the duration of the pulse is not a multiple of ``grid_time_ns``. .. py:function:: staircase_pulse(start_amp: float, final_amp: float, num_steps: int, duration: float, port: str, clock: str = BasebandClockResource.IDENTITY, t0: float = 0, grid_time_ns: int = constants.GRID_TIME, reference_magnitude: quantify_scheduler.operations.pulse_library.ReferenceMagnitude | None = None) -> quantify_scheduler.backends.qblox.operations.stitched_pulse.StitchedPulse Create a staircase-shaped pulse using DC voltage offsets. This function generates a real valued staircase pulse, which reaches its final amplitude in discrete steps. In between it will maintain a plateau. .. warning:: This function creates a :class:`~quantify_scheduler.backends.qblox.operations.stitched_pulse.StitchedPulse` object, containing a combination of voltage offsets and waveforms. Overlapping StitchedPulses on the same port and clock may lead to unexpected results. :param start_amp: Starting amplitude of the staircase envelope function. :type start_amp: float :param final_amp: Final amplitude of the staircase envelope function. :type final_amp: float :param num_steps: The number of plateaus. :type num_steps: int :param duration: Duration of the pulse in seconds. :type duration: float :param port: Port of the pulse. :type port: str :param clock: Clock used to modulate the pulse. By default the baseband clock. :type clock: str, optional :param t0: Time in seconds when to start the pulses relative to the start time of the Operation in the Schedule. By default 0. :type t0: float, optional :param grid_time_ns: Grid time in ns. The duration of each step of the staircase must be a multiple of this. By default equal to the grid time of Qblox modules. :type grid_time_ns: int, optional :param reference_magnitude: Scaling value and unit for the unitless amplitude. Uses settings in hardware config if not provided. :type reference_magnitude: optional :returns: A StitchedPulse object containing incrementing or decrementing offset instructions. :rtype: StitchedPulse :raises ValueError: When the duration of a step is not a multiple of ``grid_time_ns``. .. py:function:: long_ramp_pulse(amp: float, duration: float, port: str, offset: float = 0, clock: str = BasebandClockResource.IDENTITY, t0: float = 0, part_duration_ns: int = constants.STITCHED_PULSE_PART_DURATION_NS, reference_magnitude: quantify_scheduler.operations.pulse_library.ReferenceMagnitude | None = None) -> quantify_scheduler.backends.qblox.operations.stitched_pulse.StitchedPulse Creates a long ramp pulse by stitching together shorter ramps. This function creates a long ramp pulse by stitching together ramp pulses of the specified duration ``part_duration_ns``, with DC voltage offset instructions placed in between. .. warning:: This function creates a :class:`~quantify_scheduler.backends.qblox.operations.stitched_pulse.StitchedPulse` object, containing a combination of voltage offsets and waveforms. Overlapping StitchedPulses on the same port and clock may lead to unexpected results. :param amp: Amplitude of the ramp envelope function. :type amp: float :param duration: The pulse duration in seconds. :type duration: float :param port: Port of the pulse. :type port: str :param offset: Starting point of the ramp pulse. By default 0. :type offset: float, optional :param clock: Clock used to modulate the pulse, by default a BasebandClock is used. :type clock: str, optional :param t0: Time in seconds when to start the pulses relative to the start time of the Operation in the Schedule. By default 0. :type t0: float, optional :param part_duration_ns: Duration of each partial ramp in nanoseconds, by default :class:`~quantify_scheduler.backends.qblox.constants.STITCHED_PULSE_PART_DURATION_NS`. :type part_duration_ns: int, optional :param reference_magnitude: Scaling value and unit for the unitless amplitude. Uses settings in hardware config if not provided. :type reference_magnitude: optional :returns: A ``StitchedPulse`` composed of shorter ramp pulses with varying DC offsets, forming one long ramp pulse. :rtype: StitchedPulse