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

Single demod for Quantum Dots #267

Merged
merged 2 commits into from
Dec 10, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
# Fetch results
I, Q, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
# Progress bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points)
# Plot results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
# Fetch results
I, Q, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
# Progress bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow, start_time=results.start_time)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow, start_time=results.start_time)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I[: iteration + 1] + 1j * Q[: iteration + 1], reflectometry_readout_length)
S = u.demod2volts(I[: iteration + 1] + 1j * Q[: iteration + 1], reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
min_idx = min(I.shape[0], Q.shape[0])
S = u.demod2volts(I[:min_idx, :] + 1j * Q[:min_idx, :], reflectometry_readout_length)
S = u.demod2volts(I[:min_idx, :] + 1j * Q[:min_idx, :], reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, len(B_fields))
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, len(B_fields))
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
# Fetch results
I, Q, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
# Progress bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points)
# Plot results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
# Fetch results
I, Q, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
# Progress bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow, start_time=results.start_time)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow, start_time=results.start_time)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I[: iteration + 1] + 1j * Q[: iteration + 1], reflectometry_readout_length)
S = u.demod2volts(I[: iteration + 1] + 1j * Q[: iteration + 1], reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@
- Identify the PSB region and update the config.
"""

from qm.qua import *
from qm import QuantumMachinesManager
from qm import SimulationConfig
import matplotlib.pyplot as plt
from configuration import *
from qualang_tools.results import progress_counter, fetching_tool
from qualang_tools.plot import interrupt_on_close
from qualang_tools.addons.variables import assign_variables_to_element
from macros import DC_current_sensing_macro, RF_reflectometry_macro
from qdac2_driver import QDACII, load_voltage_list
import matplotlib.pyplot as plt
from macros import RF_reflectometry_macro, DC_current_sensing_macro
from qm import QuantumMachinesManager, SimulationConfig
from qm.qua import *
from qualang_tools.addons.variables import assign_variables_to_element
from qualang_tools.plot import interrupt_on_close
from qualang_tools.results import fetching_tool, progress_counter

###################
# The QUA program #
Expand Down Expand Up @@ -173,10 +172,10 @@
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
min_idx = min(I.shape[0], Q.shape[0])
S = u.demod2volts(I[:min_idx, :] + 1j * Q[:min_idx, :], reflectometry_readout_length)
S = u.demod2volts(I[:min_idx, :] + 1j * Q[:min_idx, :], reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_points_slow)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, len(B_fields))
# Plot data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@
# Fetch the data from the last OPX run corresponding to the current slow axis iteration
I, Q, DC_signal, iteration = results.fetch_all()
# Convert results into Volts
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length)
S = u.demod2volts(I + 1j * Q, reflectometry_readout_length, single_demod=True)
R = np.abs(S) # Amplitude
phase = np.angle(S) # Phase
DC_signal = u.demod2volts(DC_signal, readout_len)
DC_signal = u.demod2volts(DC_signal, readout_len, single_demod=True)
# Progress bar
progress_counter(iteration, n_avg)
# Plot data
Expand Down
Loading