Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSarlle committed Dec 21, 2023
1 parent 7855ff4 commit 275e6e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ def _aquisition(

# create a DataUnits object to store the results,
data = ChevronData()
# sort high and low frequency qubit
for pair in qubits:
sequence = PulseSequence()
sequence = PulseSequence()

for pair in qubits:
print(pair)
# sort high and low frequency qubit
ordered_pair = order_pair(pair, platform.qubits)
q_lf = ordered_pair[0] # low frequency qubit
q_hf = ordered_pair[1] # high frequency qubit
Expand All @@ -82,6 +83,7 @@ def _aquisition(
sequence.add(RX_q_lf)

# Coupler Flux pulse applied to the coupler between qubits: q_lf, q_hf
print(type(q_lf))
flux_coupler_pulse = platform.create_coupler_pulse(q_lf, start=sequence.finish)
sequence.add(flux_coupler_pulse)

Expand Down Expand Up @@ -137,12 +139,12 @@ def _aquisition(

# TODO: Explore probabilities instead of magnitude
data.register_qubit(
ordered_pair[0],
ordered_pair[1],
q_lf,
q_hf,
delta_duration_range,
delta_amplitude_range,
results[ordered_pair[0]].magnitude,
results[ordered_pair[1]].magnitude,
results[q_lf].magnitude,
results[q_hf].magnitude,
)

return data
Expand Down
5 changes: 5 additions & 0 deletions src/qibocal/protocols/characterization/test_state_1_flux.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def _acquisition(
state1_sequence.add(RX_pulses[qubit])

# Coupler Flux pulse applied to the coupler
print(type(qubit))
flux_coupler_pulse = platform.create_coupler_pulse(qubit, start=state1_sequence.finish)
state1_sequence.add(flux_coupler_pulse)

Expand Down Expand Up @@ -228,6 +229,10 @@ def _acquisition(
acquisition_type=AcquisitionType.INTEGRATION,
),
)

state1_sequence.plot("./state1_sequence.png")
print(state1_sequence)

# retrieve and store the results for every qubit
for qubit in qubits:
result = state1_results[ro_pulses[qubit].serial]
Expand Down

0 comments on commit 275e6e6

Please sign in to comment.