Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Add composer widget
Browse files Browse the repository at this point in the history
  • Loading branch information
frankharkins committed Jun 17, 2022
1 parent 8244a06 commit 3741128
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion notebooks/basics/single-systems.ipynb
Expand Up @@ -1518,7 +1518,16 @@
"scrolled": true
},
"source": [
"(*** Interactive widget here.)"
"<!-- ::: q-block -->\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",
"<!-- ::: -->"
]
},
{
Expand Down

0 comments on commit 3741128

Please sign in to comment.