Skip to content

Commit f9d0d1b

Browse files
committed
explain use of SetParamsGate for updating pwc pulse
1 parent 96679a0 commit f9d0d1b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

examples/Piecewise_constant_controls.ipynb

+15-1
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,20 @@
550550
"plot_dynamics(simulation, model.get_init_state(), [\"rx90p[0]\"])"
551551
]
552552
},
553+
{
554+
"cell_type": "markdown",
555+
"metadata": {},
556+
"source": [
557+
"## Updating the piecewise pulse description in qiskit"
558+
]
559+
},
560+
{
561+
"cell_type": "markdown",
562+
"metadata": {},
563+
"source": [
564+
"We now use the `SetParamsGate` to update the pwc pulse description for the previously built qiskit circuit. This `SetParamsGate` must always be added only once and only at the end of the circuit. It can be used for updating the description of as many `Instructions` (and more generally as many c3 experiment `Parameter`s) as desired through a single instance of the gate. The updated parameter values is the first element and the paramater_map for this update is the second element in the list being passed to the `params` argument of the `SetParamsGate` below. "
565+
]
566+
},
553567
{
554568
"cell_type": "code",
555569
"execution_count": 20,
@@ -621,7 +635,7 @@
621635
"name": "python",
622636
"nbconvert_exporter": "python",
623637
"pygments_lexer": "ipython3",
624-
"version": "3.9.7"
638+
"version": "3.8.12"
625639
}
626640
},
627641
"nbformat": 4,

0 commit comments

Comments
 (0)