Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
use variable qubit number instead of hard-coded
Browse files Browse the repository at this point in the history
  • Loading branch information
kUmezawa committed Apr 18, 2023
1 parent 0e59604 commit aef73a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/ch-quantum-hardware/Jaynes-Cummings-model.ipynb
Expand Up @@ -249,7 +249,7 @@
"\n",
"qc_meas_spect = QuantumCircuit(1, 1)\n",
"qc_meas_spect.append(meas_spect_gate, [0])\n",
"qc_meas_spect.add_calibration(meas_spect_gate, (0,), meas_spect_sched, [freq, amp])\n",
"qc_meas_spect.add_calibration(meas_spect_gate, (qubit,), meas_spect_sched)\n",
"\n",
"exp_low_power_circs = [qc_meas_spect.assign_parameters({freq: f, amp: .3}, inplace=False) for f in frequencies_range]"
]
Expand Down Expand Up @@ -602,7 +602,7 @@
"\n",
"qc_decay = QuantumCircuit(1, 1)\n",
"qc_decay.append(decay_gate, [0])\n",
"qc_decay.add_calibration(decay_gate, (0,), decay_pulse, [delay])\n",
"qc_decay.add_calibration(decay_gate, (0,), decay_pulse)\n",
"\n",
"exp_decay_circs = [qc_decay.assign_parameters({delay: get_dt_from(delay_time)}, inplace=False) for delay_time in delay_times]"
]
Expand Down

0 comments on commit aef73a0

Please sign in to comment.