Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions exercises/01_exercise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down