Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"## Introduction\n",
"\n",
"In the following video, Olivia Lanes steps you through the content in this lesson. Alternatively, you can open the [YouTube video](https://youtu.be/kniiVC538nY?si=13OJnaO5jyAUmoPQ) for this lesson in a separate window.\n",
"\n",
"\n",
"<IBMVideo id=\"134786191\" title=\"In this video Olivia walks you through finding the energy of a two-qubit Ising Hamiltonian using the Estimator primitive in Qiskit.\"/>\n",
"\n",
"By now, you've run your first quantum circuit and learned the basics of quantum computing: how quantum states are represented, how gates act on those states, and how quantum features like superposition and entanglement are involved. Now it's time to put all of this into practice and solve your first problem on a quantum computer.\n",
Expand Down Expand Up @@ -163,7 +163,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"ibm_fez\n"
"ibm_marrakesh\n"
]
}
],
Expand Down Expand Up @@ -306,7 +306,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"counts = {'10': 49, '01': 50, '11': 1}\n"
"counts = {'01': 53, '10': 44, '00': 2, '11': 1}\n"
]
},
{
Expand Down Expand Up @@ -365,7 +365,7 @@
{
"data": {
"text/plain": [
"<qiskit.circuit.instructionset.InstructionSet at 0x1387ed630>"
"<qiskit.circuit.instructionset.InstructionSet at 0x22cb29c6950>"
]
},
"execution_count": 8,
Expand All @@ -378,7 +378,7 @@
"from qiskit.quantum_info import SparsePauliOp\n",
"\n",
"# Parameters\n",
"J = 1.0 # antiferromagnetic coupling (J<0)\n",
"J = -1.0 # antiferromagnetic coupling (J<0)\n",
"hx = -0.5 # transverse field strength\n",
"\n",
"# 1. Define the Hamiltonian H = J Z1 Z2 + hx (X1 + X2)\n",
Expand Down Expand Up @@ -459,7 +459,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 11,
"id": "dca4c4e1-38a1-47da-a4ad-a63eec2d2ce6",
"metadata": {},
"outputs": [],
Expand All @@ -478,7 +478,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 12,
"id": "dddea745-57d3-4c5b-9ccc-897649a298c2",
"metadata": {},
"outputs": [],
Expand All @@ -504,15 +504,15 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 13,
"id": "40b8d3f8-cd80-40c7-8e01-56c40b713caf",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"-0.9934112021453058\n"
"0.9871078495244698\n"
]
}
],
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading