From 37411282967ad9a098b28c657b35cdd12443cecf Mon Sep 17 00:00:00 2001 From: Frank Harkins Date: Fri, 17 Jun 2022 14:47:18 +0100 Subject: [PATCH] Add composer widget --- notebooks/basics/single-systems.ipynb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/notebooks/basics/single-systems.ipynb b/notebooks/basics/single-systems.ipynb index 1cd048018..951923474 100644 --- a/notebooks/basics/single-systems.ipynb +++ b/notebooks/basics/single-systems.ipynb @@ -1518,7 +1518,16 @@ "scrolled": true }, "source": [ - "(*** Interactive widget here.)" + "\n", + "\n", + "### Circuit sandbox\n", + "\n", + " q-circuit-sandbox-widget(goal=\"circuit-sandbox\")\n", + " .availableGates H X Z Y T S\n", + " .instructions Drag the gates down onto the circuit to see how they transform the qubit.\n", + " .explanation The 'matrix' display shows the unitary matrix of the circuit (i.e. all the gates' unitaries multiplied together). The 'state vector' display shows the state of the qubit after the gates act on it.\n", + "\n", + "" ] }, {