Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scipy gaussian import to avoid deprecation warnings #272

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/shfqa_qubit_readout_measurement.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ device.qachannels[CHANNEL_INDEX].output.on(1)
In this example the envelope of the readout pulses is a gaussian with a flat top. For each qubit, the envelope is then modulated at the qubit frequency. For illustrative purposes we assume that the frequencies of the qubits are equally spaced in the range [32 MHz, 230 MHz] relative to the center frequency of 5 GHz specified above.

```python
from scipy.signal import gaussian
from scipy.signal.windows import gaussian
import numpy as np

# Define the parameters for the readout pulses
Expand Down
2 changes: 1 addition & 1 deletion examples/shfqa_qubit_readout_weights.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Generate the readout pulses with a flat top gaussian envelope. For each qubit th

```python

from scipy.signal import gaussian
from scipy.signal.windows import gaussian
import numpy as np

# Define the parameters for the readout pulses
Expand Down
4 changes: 2 additions & 2 deletions examples/shfqa_shfqc_power_spectral_density.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ else:
# Generate an interesting test waveform
from zhinst.toolkit import Waveforms
import numpy as np
from scipy import signal
from scipy.signal.windows import gaussian
from zhinst.utils.shfqa import SHFQA_SAMPLING_FREQUENCY

# Modulate a Gaussian with complex sinusoidal
Expand All @@ -180,7 +180,7 @@ modulation_freq = 100e6
waveform_length = np.min(128, int(sweeper.average.integration_time() / SHFQA_SAMPLING_FREQUENCY))
time_axis = np.arange(waveform_length) / SHFQA_SAMPLING_FREQUENCY
test_signal = np.exp(1j * 2 * np.pi * modulation_freq * time_axis)
test_signal *= signal.gaussian(waveform_length, std=waveform_length/8)
test_signal *= gaussian(waveform_length, std=waveform_length/8)

# Upload waveform to the device
waveforms = Waveforms()
Expand Down
2 changes: 1 addition & 1 deletion examples/shfqa_sweeper.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ In pulsed spectroscopy the resonator is probed with a signal consisting of an en
### Create the envelope

```python
from scipy.signal import gaussian
from scipy.signal.windows import gaussian
import numpy as np

SHFQA_SAMPLING_FREQUENCY = 2e9
Expand Down
2 changes: 1 addition & 1 deletion examples/shfqc_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def generate_flat_top_gaussian(
unit circle."
)

from scipy.signal import gaussian
from scipy.signal.windows import gaussian

rise_fall_len = int(rise_fall_time * sampling_rate)
pulse_len = int(pulse_duration * sampling_rate)
Expand Down
Loading