Skip to main content
IBM Quantum Platform
이 페이지는 Qiskit SDK 의 이전 버전에서 가져온 것으로, 최신 버전에는 존재하지 않습니다. 최신 버전으로 업데이트하시기를 권장합니다. 자세한 정보는 릴리스 정보를 참조하십시오.

qiskit.pulse.library.Square

qiskit.pulse.library.Square(duration, amp, phase, freq=None, angle=0.0, name=None, limit_amplitude=None)

GitHub

A square wave pulse.

The envelope of the pulse is given by:

f(x)=Asign[sin(2πx×freq+phase)],0<=x<durationf(x) = \text{A}\text{sign}\left[\sin \left(2\pi x\times\text{freq}+\text{phase}\right)\right] , 0 <= x < duration

where A=amp×exp(i×angle)\text{A} = \text{amp} \times\exp\left(i\times\text{angle}\right), and sign\text{sign} is the sign function with the convention sign(0)=1\text{sign}\left(0\right)=1.

Deprecated since version 1.3

The function qiskit.pulse.library.symbolic_pulses.Square() is deprecated as of Qiskit 1.3. It will be removed in Qiskit 2.0. The entire Qiskit Pulse package has been deprecated.

Parameters

  • duration (int | ParameterValueType) – Pulse length in terms of the sampling period dt.
  • amp (float |ParameterExpression) – The magnitude of the amplitude of the square wave. Wave range is [amp,amp]\left[-\texttt{amp},\texttt{amp}\right].
  • phase (float |ParameterExpression) – The phase of the square wave (note that this is not equivalent to the angle of the complex amplitude).
  • freq (float |ParameterExpression | None) – The frequency of the square wave, in terms of 1 over sampling period. If not provided defaults to a single cycle (i.e 1duration\frac{1}{\text{duration}}). The frequency is limited to the range (0,0.5]\left(0,0.5\right] (the Nyquist frequency).
  • angle (float |ParameterExpression | None) – The angle in radians of the complex phase factor uniformly scaling the pulse. Default value 0.
  • name (str | None) – Display name for this pulse envelope.
  • limit_amplitude (bool | None) – If True, then limit the amplitude of the waveform to 1. The default is True and the amplitude is constrained to 1.

Returns

ScalableSymbolicPulse instance.

Return type

ScalableSymbolicPulse

이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.