From a9587edab23fae593ca50d3a95d0bf956bc6f5d1 Mon Sep 17 00:00:00 2001 From: Shreya Palase <59469602+shreyapalase@users.noreply.github.com> Date: Thu, 15 Jan 2026 02:21:14 +0530 Subject: [PATCH] Add problems for mini magic Quantum Circuit exercise Added problem statements and instructions for creating a mini quantum circuit with superposition, phase rotation, and entanglement. --- exercises/01_exercise.ipynb | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/exercises/01_exercise.ipynb b/exercises/01_exercise.ipynb index 20a5d99..3675365 100644 --- a/exercises/01_exercise.ipynb +++ b/exercises/01_exercise.ipynb @@ -359,6 +359,61 @@ "outputs": [], "source": [] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Problem 4: Create mini magic Quantum Circuit (Superposition + Phase + Entanglement) " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Q: Create a quantum circuit which consist of a 2-qubit quantum register and a 2-bit classical register. " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Q: Apply a **Hadamard gate** to the first qubit to create superposition ,then apply a **controlled X-gate** between the two qubit to introduced entanglement " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Q: Apply a **phase rotation** of pi/4 to first qubit using a **phase gate**,then measure both qubit " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "metadata": {},