Quanlse/QWaveform.py
def virtualZ(phase: float = None, t0: Union[int, float] = 0.) -> QWaveform:
    """
    Return a QWaveform object of phase shift (implement Virtual-Z gate).

    :param phase: pulse phase shift (will accumulate during the entire pulse execution)
    :param t0: start time
    :return: returned square QWaveform
    """

    def func(_t, _):
        """ The constant function """
        return 0.

    wave = QWaveform(f=func, t0=t0, t=0.0, args=None, freq=0.0, phase=phase, phase0=0.0,
                     flag=QWAVEFORM_FLAG_PHASE_SHIFT)
    wave.name = "virtualZ"
    return wave

    Return a QWaveform object of phase shift (implement Virtual-Z gate).

    :param phase: pulse phase shift (will accumulate during the entire pulse execution)
    :param t0: start time
    :return: returned square QWaveform
    
Return a QWaveform object of phase shift (implement Virtual-Z gate).
Return a QWaveform object of phase shift ( implement Virtual - Z gate ) .
def virtualZ(phase: float = None, t0: Union[int, float] = 0.) -> QWaveform:
    def func(_t, _):
        return 0.
    wave = QWaveform(f=func, t0=t0, t=0.0, args=None, freq=0.0, phase=phase, phase0=0.0,
                     flag=QWAVEFORM_FLAG_PHASE_SHIFT)
    wave.name = "virtualZ"
    return wave
def virtualZ ( phase : float = None , t0 : Union [ int , float ] = 0. ) -> QWaveform : def func ( _t , _ ) : """ The constant function """ return 0. wave = QWaveform ( f = func , t0 = t0 , t = 0.0 , args = None , freq = 0.0 , phase = phase , phase0 = 0.0 , flag = QWAVEFORM_FLAG_PHASE_SHIFT ) wave . name = "virtualZ" return wave
Return a QWaveform object of phase shift (implement Virtual-Z gate).
Return a QWaveform object of phase shift ( implement Virtual - Z gate ) .
"""
    Return a QWaveform object of phase shift (implement Virtual-Z gate).

    :param phase: pulse phase shift (will accumulate during the entire pulse execution)
    :param t0: start time
    :return: returned square QWaveform
    """ """ The constant function """
returned square QWaveform
returned square QWaveform
phase
float
pulse phase shift (will accumulate during the entire pulse execution)
pulse phase shift ( will accumulate during the entire pulse execution )
t0
Union[int, float]
None