Skip to content

Commit

Permalink
Added possibility to sweep over flux pulses instead of bias
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePalazzo committed Jan 18, 2024
1 parent cb2b7a7 commit 8d940ad
Showing 1 changed file with 32 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class QubitFluxParameters(Parameters):
"""
Duration of the drive pulse.
"""
flux_pulses: bool = False
"""Use flux pulses instead of sweeping bias."""


@dataclass
Expand Down Expand Up @@ -142,14 +144,36 @@ def _acquisition(
delta_bias_range = np.arange(
-params.bias_width / 2, params.bias_width / 2, params.bias_step
)
bias_sweepers = [
Sweeper(
Parameter.bias,
delta_bias_range,
qubits=list(qubits.values()),
type=SweeperType.OFFSET,
)
]
if params.flux_pulses:
qf_pulses = {}
for qubit in qubits:
from qibolab.pulses import FluxPulse

pulse = FluxPulse(
start=0,
duration=sequence.duration,
amplitude=1,
shape="Rectangular",
qubit=qubit,
)
qf_pulses[qubit] = pulse
bias_sweepers = [
Sweeper(
Parameter.amplitude,
delta_bias_range,
pulses=[qf_pulses[qubit] for qubit in qubits],
type=SweeperType.OFFSET,
)
]
else:
bias_sweepers = [
Sweeper(
Parameter.bias,
delta_bias_range,
qubits=list(qubits.values()),
type=SweeperType.OFFSET,
)
]
data = QubitFluxData(resonator_type=platform.resonator_type, Ec=Ec, Ej=Ej)

options = ExecutionParameters(
Expand Down

0 comments on commit 8d940ad

Please sign in to comment.