From b6ceea2a81e6d6b17ebd307b093e73d13219b76b Mon Sep 17 00:00:00 2001 From: Shraddha Aangiras <63237790+shraddha-aangiras@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:25:20 +0530 Subject: [PATCH 1/4] Modified circuit construction docs --- docs/guides/construct-circuits.ipynb | 243 +++++++++++++++++++++------ 1 file changed, 190 insertions(+), 53 deletions(-) diff --git a/docs/guides/construct-circuits.ipynb b/docs/guides/construct-circuits.ipynb index 0bb73587f5d..c6ffaefdec0 100644 --- a/docs/guides/construct-circuits.ipynb +++ b/docs/guides/construct-circuits.ipynb @@ -23,7 +23,7 @@ "source": [ "## What is a quantum circuit?\n", "\n", - "A simple quantum circuit is a collection of qubits and a list of instructions that act on those qubits. To demonstrate, the following cell creates a new circuit with two new qubits, then displays the circuit's [`qubits`](/api/qiskit/qiskit.circuit.QuantumCircuit#qubits) attribute." + "A simple quantum circuit is a collection of qubits and a list of instructions that act on those qubits. To demonstrate, the following cell creates a new circuit with two new qubits, then displays the circuit's [`qubits`](/api/qiskit/qiskit.circuit.QuantumCircuit#qubits) attribute, which returns a list of [`Qubits`](/api/qiskit/circuit#qiskit.circuit.Qubit) in order." ] }, { @@ -50,6 +50,74 @@ "qc.qubits" ] }, + { + "cell_type": "markdown", + "id": "392e3d6c", + "metadata": {}, + "source": [ + "Multiple QuantumRegisters and ClassicalRegisters can be combined to create a circuit. Every [`QuantumRegister`](/api/qiskit/circuit#qiskit.circuit.QuantumRegister) and [`ClassicalRegister`](/api/qiskit/circuit#qiskit.circuit.ClassicalRegister) can also be named." + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "6160e3f7", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[Qubit(QuantumRegister(2, 'qreg1'), 0),\n", + " Qubit(QuantumRegister(2, 'qreg1'), 1),\n", + " Qubit(QuantumRegister(1, 'qreg2'), 0)]" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from qiskit.circuit import QuantumRegister, ClassicalRegister\n", + "\n", + "qr1 = QuantumRegister(2, 'qreg1') # Create a QuantumRegister with 2 qubits \n", + "qr2 = QuantumRegister(1, 'qreg2') # Create a QuantumRegister with 1 qubit\n", + "cr1 = ClassicalRegister(3, 'creg1') # Create a ClassicalRegister with 3 cbits \n", + "\n", + "combined_circ = QuantumCircuit(qr1, qr2, cr1) # Create a quantum circuit with 2 QuantumRegisters and 1 ClassicalRegister\n", + "combined_circ.qubits" + ] + }, + { + "cell_type": "markdown", + "id": "6e7b212f", + "metadata": {}, + "source": [ + "The index and register of a qubit can be obtained using the circuit's [`find_bit`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.find_bit) method and its attributes. " + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "faeb3fbc", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Index: 2\n", + "Register: [(QuantumRegister(1, 'qreg2'), 0)]\n" + ] + } + ], + "source": [ + "qb = qr2[0] # Setting qb as the first qubit of register 'qreg2'\n", + "\n", + "print(\"Index:\", combined_circ.find_bit(qb).index)\n", + "print(\"Register:\", combined_circ.find_bit(qb).registers)" + ] + }, { "cell_type": "markdown", "id": "f5c95cb2-a94f-48f3-b2a6-8ec6c25da5cd", @@ -60,7 +128,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 4, "id": "f7b5573c-b2b2-4cbf-ba55-c53c9221ce71", "metadata": {}, "outputs": [ @@ -70,13 +138,13 @@ "[CircuitInstruction(operation=Instruction(name='x', num_qubits=1, num_clbits=0, params=[]), qubits=(Qubit(QuantumRegister(2, 'q'), 0),), clbits=())]" ] }, - "execution_count": 2, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "qc.x(0) # Add X-gate to qubit 0\n", + "qc.x(0) # Add X-gate to qubit 0\n", "qc.data" ] }, @@ -85,25 +153,23 @@ "id": "17a82d8a-b717-44b8-b3f8-ce89e2588261", "metadata": {}, "source": [ - "The easiest way to view this information is through the [`draw`](/api/qiskit/qiskit.circuit.QuantumCircuit#draw) method, which returns a visualization of a circuit. See [Visualize circuits](./visualize-circuits) for different ways of displaying quantum circuits." + "The easiest way to view this information is through the [`draw`](/api/qiskit/qiskit.circuit.QuantumCircuit#draw) method, which returns a visualization of a circuit. See [Visualize circuits](/build/circuit-visualization) for different ways of displaying quantum circuits." ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 5, "id": "43a57258-3e33-4071-8a48-2bf127c8a5be", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAALAAAACuCAYAAACWa4e1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAKL0lEQVR4nO3df0zU9x3H8eed2oKKrSddzw5/QAELyI9NpGJbVwxm6fwRk8XY1ind7PxjQ1nGvD8Wt9k2DWG6ZXGmjSZtXbOMsLR/zEKT/UMzKbEMQm2pYKlMjCCXeoqKV1xlfPdHUxYG/jrgzvfX1+M/7vO97/eteXL3ve/B4XEcx0HEKG+sBxAZDwUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWEybGusBZDTHcfhiYDDWY9yW6fFT8Xg8UT+uAr4DfTEwyMxlb8Z6jNty5YMtzJg+LerH1SmEmKaAxTQFLKYpYDFNAYtpClhMU8BimgIW0xSwmKaAxTQFLKYpYDFNAYtprg84FAoRCARITU0lLi6OefPmUVZWRjgcZuvWrXg8Hvbv3x/rMSVCrg742LFjZGdns2fPHoLBIJmZmVy7do19+/axceNG2tvbAc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RAZ88eZK3334bv9/P0qVLozKrRM61AdfV1QFQVFR03W26u7uBkQGvWLGC3t5eDh8+THFx8eQOKePm2qsQp0+fBmDBggVjrg8ODtLQ0ACMDNjrnfjv6fz8fILB4ITv1y38fj/Nzc0R3de1AYfDYQAGBgbGXK+uriYUCpGQkEBycvKkzhIMBunp6ZnUY9ytXBuw3++nr6+PlpYWCgsLR6z19vayc+dOAHJycib9hZrf75/U/Vs3nv8f1wZcXFxMe3s7lZWVrFq1ivT0dACamprYvHkzoVAIiM4bGJE+PcrNufZFXCAQYM6cOZw5c4asrCyys7NJS0ujoKCAlJQUVq5cCYw8/xV7XBtwUlIS9fX1rF69mri4OLq6uvD5fBw4cIDa2lo6OjoABWyda08hADIyMqipqRl1+5UrV+jq6sLr9bJ48eIYTCYTxdUBX8/x48dxHIf09HSmT58+av2tt94CoK2tbcTXCxcuJD8/P3qDyk3dlQG3trYC1z992LBhw5hfl5SUcOjQoUmdTW6PAh6D4zjRHEfGwbUv4m7kZgGLHR5HDzdi2F35CCzuoYDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWEz7L2LdDKR2vuO9AAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, - "execution_count": 3, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -122,20 +188,18 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 6, "id": "653e2427-e301-4d2f-84de-1959185ace8e", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAKIAAABuCAYAAACk2MjUAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAA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ZmEG4LTfhablCILkgOpIHj0Bf89K7CtIJMuv9xFYDVh3azoPTz1zDe6Oyhq/4KC7c+BkDmxpWEO7qGTsvDHTfSWpYoRBekLcm+6/R4qyfMI09/BYCM4hzC7Z1Rj3uv4jD5O0p46swhCnc/xZnnXxnaNtxxI61lic/535tjZUKN9TKwhPQUHn+lfOid8WQfF41bX2+hECfRVF2POJH0PStyX1OIYoJCFBP0GnES6UshR08higk6NYsJClFMUIhigkIUExSimKAQxQSFKCYoRDFBIYoJClFMUIhigkIUExSimKAQxQSFKCYoRDFBIYoJClFMUIhigkIUExSimKAQxQSFKCYoRDFBIYoJ/wEMO01TTmRMJQAAAABJRU5ErkJggg==", "text/plain": [ "
" ] }, - "execution_count": 4, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -171,20 +235,18 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 7, "id": "66813cae-9841-47ea-96b7-8fd7b82e9759", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAKIAAABuCAYAAACk2MjUAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAEgElEQVR4nO3dz0vbdxzH8VfSssYf8VBdl4mu1dmw2poIisPDGDo9uOJp0EspPbijWJiYP6CXLtBT6cXjTpKeBjNXWRHZIBIEcVJBiGj1y/iiF611RL87bbA27TRav+98eT6Ofj/x8z48+X4S9Yshz/M8AT4L+z0AIBEijCBEmECIMIEQYQIhwgRChAmECBMIESYQIkwgRJhAiDCBEGECIcIEQoQJhAgTCBEmECJMIESYQIgwgRBhAiHCBEKECYQIEwgRJhAiTCBEmECIMIEQYQIhwgRChAmECBMIESYQIkwgRJhAiDCBEGHCRb8HCDLP86SDA7/HOJlLlxQKhc59W0L8kA4OVLxz3+8pTuTis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TCBEmECJMIESYQIgwgRBhAiHCBEKECYQIEwgRJhAiTCBEmECIMIEQYQIhwgRChAmECBMIESYQIkwgRJhAiDDhb1+BCUFmootuAAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, - "execution_count": 5, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -214,20 +276,18 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 8, "id": "29152dfa-2275-4bc4-aadb-82185b9e0e86", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAALAAAAEvCAYAAADl8Et8AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAU7UlEQVR4nO3df1TUdb7H8ecgJqCQItZgIKKIAvLjXhCj33i0m2u63dOWbmTurlt7dsXYlsv0y2613Y1DerfWPHWsY3Xb3Tj0496zhnXrbLSJ3DK4rGVKoias/JitCUxENHC+949O3GUdSAZmps/wepzTH8zn+/3OW86zL1++DIPNsiwLEUOFBHoAkZFQwGI0BSxGU8BiNAUsRlPAYjQFLEZTwGI0BSxGU8BiNAUsRlPAYjQFLEZTwGI0BSxGU8BiNAUsRlPAYjQFLEZTwGI0BSxGU8BiNAUsRlPAYjQFLEZTwGI0BSxGU8BiNAUsRlPAYjQFLEZTwGI0BSxGU8BiNAUsRlPAYjQFLEYLDfQA4pllWZzs6Qv0GOcsIjwUm83m9+dVwN9SJ3v6mHTx84Ee45ydeO8WJkaM9/vz6hJCjKaAxWgKWIymgMVoCliMpoDFaApYjKaAxWgKWIymgMVoCliMpoDFaApYjDYmAna5XDgcDpKSkggLCyM+Pp6ioiK6u7tZu3YtNpuNLVu2BHpM8ULQB7xnzx7S09PZuHEjTqeT1NRUent72bx5MytXrqShoQGArKyswA7qI7+6PRvrw7X88Lo5Htff3vYdTt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ty6sm5cAAAAASUVORK5CYII=", "text/plain": [ "
" ] }, - "execution_count": 6, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -255,20 +315,18 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 9, "id": "81b682dd-45cb-4492-809e-d9e8ebbf5600", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAPEAAAEvCAYAAACUiCfiAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAY+ElEQVR4nO3df1yUdb738degKKCQIeZgiKA4BsiPk4hipdHibhzDbU+/3NCstXbveyPdvb3lbJ1a+/FoiXLPnvV4Og/3PPpxemxx2OzsnUHl3ie6lagMbsI1JVESE5jJJrAAQUHm/qNb1gnUnAWG78X7+Zde32vm+oz18rrmB6PN4/F4EBFjBfh7ABH56yhiEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRw4319wAyMnk8Hk509vh7jIsSEjwWm83m7zGGnSKWAZ3o7GHiwhf8PcZFaX//DiaEBPp7jGGny2kRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRwyliEcMpYhHDKWIRw42KiN1uN/n5+cTFxREUFMT06dNZt24dHR0drFmzBpvNxpYtW/w9pohPLB9xTU0NSUlJPPXUU7hcLhISEuju7mbz5s3cdttt1NbWApCamurfQS3q8bXz8Px5DXfdOHvA9bef+Vu6qu4kMe7SYZ7MOiwdsdvtJicnB5fLxfr163E6nVRXV+NyuSgsLKS0tJT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Mp4hFDKeIRQyniEUMZ/N4PB5/DyHDy+Px0NN50t9jDLuxweMH/FJE0yliEcPpclrEcIpYxHCKWMRwiljEcIpYxHCKWMRwiljEcIpYxHCKWMRwiljEcIpYxHCKWMRwiljEcIpYxHCKWMRwiljEcIpYxHCKWMRwiljEcIpYxHCKWMRwiljEcIpYxHCKWMRwiljEcP8PELpos2Sw43IAAAAASUVORK5CYII=", "text/plain": [ "
" ] }, - "execution_count": 7, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -289,20 +347,18 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 10, "id": "ed362e64-d6a4-4dfd-a5cf-5e6bdc7a81b5", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAEvCAYAAABYNEogAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAchElEQVR4nO3df1zV9f338edBUEAhU8yj4Q8EMUGQEn/Q+jEbVpRa+5qrTa0253ZtkWyXN+jHavbjthHOfduc2/ey6+rHupZelG0rtXLXskuRsnAM5w/yB4p5gJOdwAKEBM+5/vAm6wzUgZzzOe8Pj/s/W5/P55zzwtubh5/z4cPR4fP5fAIAGCvM6gEAABeHkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABiOkAOA4Qg5ABgu3OoBEJp8Pp9OtrRbPUa3REeFy+FwWD0GEHSEHF062dKuQTNetHqMbmnacbcGR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06YLPc/z4ce3fv1/Tp08PxJghKfmbX5Pz6lS/bVc98E1JkvvdvXwT9wGsAXPYOuTnsnfvXvl8PiUnJys62v8zJBYuXKikpCRlZGRo8ODBOnjwoJ5++mmFh4frxz/+sUUTB99b85ZbPQIsxhowR58M+e7duyV1fVllxowZevHFF/XrX/9ara2tGjVqlGbOnKmHH374nPekA4CVCPm/yM3NVW5ubrBHAoAes+1dK+dzvpADgGn65Bn52c9hAQA76JNn5ABgJ4QcAAxHyAHAcIQcAAxHyAHAcIQcAAxHyAHAcIQcAAxHyAHAcIQcAAxHyAHAcA6fz+ezeggEl8/nU3vLF1aPEXThUQO6/Ie2+yLWgL0QcgAwHJdWAMBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBwhBwADEfIAcBw/x+gYC4xvlB8ZAAAAABJRU5ErkJggg==", "text/plain": [ "
" ] }, - "execution_count": 8, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -327,20 +383,18 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 11, "id": "3c0633db-929b-4428-a888-7a3d493bd6dd", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAbIAAAEvCAYAAAAgi0SBAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAlcUlEQVR4nO3de1xUdf4/8NdwHS6DCpiDooBcFBSwRJTS1MJW8lZZaot2WTfbVpRac6pf26/L7makfi3X3bK2y367EKa1q6BlRZaaGUoYKYqSkAMz2gDG/TLMfP8wqclBmXFmDp8zr+fj0cOYz/mcz5u58JpzzuecozCbzWYQEREJykPqAoiI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QURCC+mvxKev3IgJSfZdQq7n9frik5czkJbs3OsT0uVjkBGR8EL6K/H5azPx5B+vgpfX5U+Pv/n6CBx+fy7GJ13hgOrI2RhkRCQL3t4e+P9/uBIHcufgN1fbd1HfhOj+yM2Zgi3/cz0GhTj2wt3kPDxGRkSykjwiBB+8OB0nvm/AC5vKkP/ZKZRX9Xw5q0EhfpgyTo0/3BaPySlq4U54JgYZEclUzLAgrH1wPNY+OB4/Nnbg66O1qKppQntnF7y9PBDaX4mr4kMw+Ap/hpfgGGREJHv9VD6YMi5M6jLISXiMjIiIhMYgIyIioTHIiIhIaAwyIiISmsJsNvOGVX2Q2Qy0dUldRe8pPSHp7ecdzWw2A+3tUpdhG19fzr6TEb4He49BRkREQuOuRSIiEhqDjIiIhMYgIyIioTHIiIhIaAwyIiISGoOMiIiExiAjIiKhMciIiEhoDDIiIhIag4yIiITGICMiIqExyIiISGgMMiIiEhqDjIiIhMYgIyIioTHIiIhIaAwyIiISGoOMiIiExiAjIiKhMciIiEhoDDIiIhIag4yIiITGICMiIqExyIiISGgMMiIiEtr/ASMnFrTUJr09AAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, - "execution_count": 9, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -349,6 +403,93 @@ "qc_a.decompose().draw(\"mpl\")" ] }, + { + "cell_type": "markdown", + "id": "87f1e053", + "metadata": {}, + "source": [ + "Qubits can be measured using three methods: [`measure`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.measure), [`measure_all`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_all) and [`measure_active`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_active). To learn how to visualize measured results, see the [Visualize results](/run/visualize-results) page.\n", + "\n", + "1. `QuantumCircuit.measure` : measures each qubit in the first argument into the classical bit given as the second argument. This method allows full control on where the measurement result is stored.\n", + "\n", + "2. `QuantumCircuit.measure_all` : takes no argument and can be used for quantum circuits without pre-defined classical bits. It will create classical wires and store measurement results in order (measurement of a qubit $q_i$ is stored in cbit $meas_i$). It will also introduce a barrier before the measurement.\n", + "\n", + "3. `QuantumCircuit.measure_active` : similar to `measure_all`, but measures only qubits that have operations" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "0cdb2273", + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAALAAAAEvCAYAAADl8Et8AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAUFUlEQVR4nO3de1DU9b/H8dcuy/2SktWKu6ggGEKAl/BHXggO+kslwV9nO5WjTpex7FSeGUcqnamcvGQ200+0KW06EzXKMOGvMqypFKY4mFcmTZciQdQFdopAgQ2lZff84XFP23JddlnfX16Pf2i/3+/uvmWefvnsd9dQ2e12O4iEUvt6AKKhYMAkGgMm0RgwicaASTQGTKIxYBKNAZNoDJhEY8AkGgMm0RgwicaASTQGTKIxYBKNAZNoDJhEY8AkGgMm0RgwicaASTQGTKIxYBKNAZNoDJhEY8AkGgMm0RgwicaASTQGTKIxYBKNAZNoDJhEY8AkGgMm0RgwicaASTSNrwcgV3a7Hd3d3b4eY1D8/PygUqmG/XkZ8E2ou7sb+/bt8/UYg/LAAw9Aoxn+nLiEINEYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgGlAbDYbbDabr8dwwc9CKNzVq1dRX1+P+vp6tLe3w2q1IiAgAGPGjEFMTAzGjRsHtbrv85jNZsO7774LPz8/PPbYY/0eP5wYsAJdu3YN3333HQ4ePIja2lrY7fZejw0MDMTUqVMxb948TJkyxeUTZTfiLS8vBwCo1Wo89thjXp1/MG6ev0pe0tzcjPz8fEyaNAlBQUHQ6/VYvXo1LBYLHn/8cahUKuzcudPXY3qE1WrFxx9/jKeffhrvvPMOzp0712e8wPXYjxw5gldffRVr167Fq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nzp3Dvn37cPfddyMgIACVlZVDnqG9oxNtHZb+DxwmV68p58Wq4gM+ePAgAGDhwoUDOn7u3LloamoCALzyyiseCTg8LHjIj6FkQ/n+KD7gS5cuAQBiYmIGdLzaC2+nuvvjkfqn+IAtlus/ujs7fbcGvVnWwDcrroH7oNfr0draisOHD2PWLN9cOrrZ1sBKoviAlyxZgtOnT2PTpk1ISUnB/PnzHfsaGhpQWFgIg8GAuLg4r83ANXDfhvL9UfxltI6ODmRkZKCqqgoAoNVqodfr0dLSgrq6OqhUKrS1tSE0NNTlvq+88go2bNgw5Mto5D2KfycuLCwMFRUV2LhxI1JSUnDlyhWcOXMGNpsNeXl5KCws7DFekkHxSwgACAkJwfr167F+/Xpfj0IeNiICHqySkhIAgNFodLo9YcIEzJgxw2dzkSvFr4Hd0dvnY1esWIH3339/eIehPvEM3AP+nZZD8S/iSNkYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgEk0BkyiMWASjQGTaAyYRPtfs0Wb5bm3Df4AAAAASUVORK5CYII=", + "text/plain": [ + "
" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "qc1 = QuantumCircuit(2, 2)\n", + "qc1.measure(0, 1)\n", + "qc1.draw(\"mpl\", cregbundle=False)" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "6f33698c", + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWAAAAEvCAYAAAB7bxv1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAovklEQVR4nO3deViU190//vcwI/s2rIMgs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rJkycLAAKA8PHxEWPGjBGjR482HhOAuHjxorHP1q1bjesDAwNFQkKC8PLyEgMGDBDbt28XSqVSKBQKcePGDWOf5cuXG/v4+/uLhIQEERsbK5ydnQUAERISInJzc9t9/ZwDJrIP/W4EXFZWhmvXrsHPzw8hISFm7VVVVbhy5Qq8vb0RFhZm1n79+nVcvnwZrq6uZrf4uri44PDhw9i2bRsyMjKQl5eHc+fOwc/PD2FhYXj66aeRnJyM8PBwY59Vq1ZBpVJh06ZNKCkpgVKpRHJyMlavXm28pC0yMhKenp7GPitXroRGo8HRo0dRUlKCnJwcODo6Yvjw4Zg/fz5efPFFeHl5We+bRkRS9MvL0O531roMjYh6V78bAd/PPvnkEwD/vcmkbTksLAwJCd37rC0i6j0cAfcj7X0c97Jly/DnP/+5b4shonviCLgf4d9SIvvSrx/ITkRkyxjARESSMICJiCRhABMRScIAJiKShAFMRCQJA5iISBIGMBGRJAxgIiJJGMBERJIwgImIJGEAExFJwgAmIpKEAUxEJAkDmIhIEgYwEZEkDGAiIkkYwEREkjCAiYgkYQATEUnCACYikoQBTEQkCQOYiEgSBjARkSQMYCIiSRjARESSMICJiCRhABMRScIAJiKShAFMRCQJA5iISBIGMBGRJAxgIiJJGMBERJIwgImIJGEAExFJwgAmIpKEAUxEJAkDmIhIkv8f637/JV5/Z98AAAAASUVORK5CYII=", + "text/plain": [ + "
" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "qc2 = QuantumCircuit(2)\n", + "qc2.measure_all()\n", + "qc2.draw(\"mpl\", cregbundle=False)" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "ca3f225f", + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAADuCAYAAADC3kfBAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMA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eHc4vLy8XAISHh0eH89suxXd2dhZGo7Hd/KamJvHWW2+JcePGCTc3N2FnZyf0er2Ijo4WqampYt++fe3abNmyRYSFhQk7OzsxePBgMX/+fHH69Glx8uRJAUCEhISYLf/jjz+K559/XkycOFH4+fkJe3t74erqKqKjo8Urr7wirl+/3mHt33zzjYiLixMuLi5i4MCBIiUlRRw5ckQ0NDQIGxsbodVqxa1bt7q9r6TYdiK6d/T7oZBERNRev+9zJyKi9hjuREQKxHAnIlIghjsRkQIx3ImIFIjhTkSkQAx3IiIFYrgTESkQw52ISIEY7kRECsRwJyJSIIY7EZECMdyJiBSI4U5EpEAMdyIiBWK4ExEpEMOdiEiBGO5ERArEcCciUiCGOxGRAjHciYgUiOFORKRADHciIgViuBMRKRDDnYhIgRjuREQKxHAnIlIghjsRkQIx3ImIFIjhTkSkQAx3IiIFYrgTESkQw52ISIEY7kRECsRwJyJSIIY7EZECMdyJiBSI4U5EpEAMdyIiBWK4ExEp0P8HK44R7mCmGmAAAAAASUVORK5CYII=", + "text/plain": [ + "
" + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "qc3 = QuantumCircuit(2)\n", + "qc3.x(1)\n", + "qc3.measure_active()\n", + "qc3.draw(\"mpl\", cregbundle=False)" + ] + }, { "cell_type": "markdown", "id": "649fc3fd-caf1-45f1-ad8e-3b5d26ca859b", @@ -361,20 +502,18 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 15, "id": "a580552c-d585-4047-99f0-32aafd06e4f3", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAOMAAABuCAYAAADVoKRKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAJdklEQVR4nO3ceXCU9R3H8fduEnKQBEgQ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, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -403,20 +542,18 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 16, "id": "85af6231-921a-4130-99d3-f6998f761df8", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAOMAAABuCAYAAADVoKRKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/TGe4hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAHv0lEQVR4nO3cfUxV9x3H8fdFlGeqQONFQQHB+YDgpqVa3apGM5GptSZuiTNzc1nXVGWJlTXZEuuazbBpXI1NatrsLzfD4rKkFdfajLlobFMMulnDhqOi8nDXXnBFnsQLZ3/YYUnxYfeq53tPP6//4Jz7O99/3pxzL/ccn+M4DiLiuhi3BxCRmxSjiBGKUcQIxShihGIUMUIxihihGEWMUIwiRihGESMUo4gRilHECMUoYoRiFDFCMYoYoRhFjFCMIkYoRhEjFKOIEYpRxAjFKGKEYhQxQjGKGKEYRYxQjCJGKEYRIxSjiBGKUcQIxShihGIUMUIxihihGEWMUIwiRihGESMUo4gRilHECMUoYoRiFDEi1u0B5N44jkOo97rbY5gVmxCHz+dze4yIKMYoEeq9zm+nfNvtMcxa33iQ0Ynxbo8REV2mihihGEWMUIwiRihGESMUo4gRilHECMUoYoRilLvKX7eIjW2HyV+3aMTtyVmPsrHtMAt//dzDHcxjFKOIEYpRxAjFKGKEYhQxQjGKGOG5GIPBIBUVFeTn5xMfH092djbl5eV0d3ezadMmfD4f+/fvd3tMkc/x1C1UZ8+epbS0lEAgQFJSEjNmzKC1tZV9+/bR2NhIR0cHALNnz3Z3UI9yHMftEaKaZ86MwWCQlStXEggE2LZtG21tbdTV1REIBKisrKS6upra2lp8Ph9FRUVujxtVQn39AIxKiBtxe2zizd8PfLqfhMczMW7dupXm5mY2b97M7t27SUl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X0D6uu0Dhs6tcXz8aKcYoljQxg95/X8UZuPU1sK6WIEkTMyKOsb+zhw//eIIb3X38fe9hJiwqpmjr05x6/lUAMhcU8lHtP4eFAjDj+yu4/Hat6+tHI8X4BbXizZ+Tmpc54rY3lm2np7WdtMJc6l8/CkB60RQ6Prg4tM+k5Y9x6U/vD3vdrK1Pk5Lj59S6nfc0w4NeP9ooxijW3RIkYfw4fKNihs6OyRMz6G4J3vW1R1f+5K77pM3MGQokvSiPK585I01YNJvTLx0c+nnmD1cxecXjHFu3k4Hee3sWzoNeP9p4/l8bXtbX3knHuYtMWfs14Oanj91tHUOXqAv3bWFSaXj3QCb608Bx6AncfKJe2vTJXP3HZQAyvlzAJxdaCPX0ATDjmW+Qu2YBx775M/o7e4atc7sZ7tf6XqIYo9ypigNM3bCMNSf3MWvLGk7+6JWhbRnFeXS3toe1blph7rDLxv7ObqZ95+sATC4t4fJbNy8hEzPTKHlxI2NSk1h++EVWvfMryqpvPYfodjPcr/W9xBN3+n8R/L+3UMWlp/LkK+VDn7TeT6uP7+XttTvoa+98IDPc6/qftb7xYNTfQqUYo4TuZ7wzL8Soy1QRIxSjiBGKUcQIvWeMEo7jEOq97vYYZsUmxEX0sDELFKOIEbpMFTFCMYoYoRhFjFCMIkYoRhEjFKOIEYpRxAjFKGKEYhQxQjGKGKEYRYxQjCJGKEYRIxSjiBGKUcQIxShihGIUMUIxihihGEWMUIwiRihGESMUo4gRilHECMUoYoRiFDHivw22t2h/21LHAAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, - "execution_count": 11, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -441,7 +578,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 17, "id": "0990b840-f8c4-4416-b2b5-9861173a9471", "metadata": {}, "outputs": [ @@ -451,7 +588,7 @@ "ParameterView([Parameter(angle)])" ] }, - "execution_count": 12, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -492,7 +629,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3" + "version": "3.12.4" }, "title": "Construct circuits" }, From d17b9103ee43bc4ab53f4ca47513bf39439ea911 Mon Sep 17 00:00:00 2001 From: Shraddha Aangiras <63237790+shraddha-aangiras@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:40:29 +0530 Subject: [PATCH 2/4] Applied suggestions from code review Co-authored-by: Frank Harkins --- docs/guides/construct-circuits.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/guides/construct-circuits.ipynb b/docs/guides/construct-circuits.ipynb index c6ffaefdec0..f401e00ef4b 100644 --- a/docs/guides/construct-circuits.ipynb +++ b/docs/guides/construct-circuits.ipynb @@ -23,7 +23,7 @@ "source": [ "## What is a quantum circuit?\n", "\n", - "A simple quantum circuit is a collection of qubits and a list of instructions that act on those qubits. To demonstrate, the following cell creates a new circuit with two new qubits, then displays the circuit's [`qubits`](/api/qiskit/qiskit.circuit.QuantumCircuit#qubits) attribute, which returns a list of [`Qubits`](/api/qiskit/circuit#qiskit.circuit.Qubit) in order." + "A simple quantum circuit is a collection of qubits and a list of instructions that act on those qubits. To demonstrate, the following cell creates a new circuit with two new qubits, then displays the circuit's [`qubits`](/api/qiskit/qiskit.circuit.QuantumCircuit#qubits) attribute, which is a list of [`Qubits`](/api/qiskit/circuit#qiskit.circuit.Qubit) in order." ] }, { @@ -112,10 +112,10 @@ } ], "source": [ - "qb = qr2[0] # Setting qb as the first qubit of register 'qreg2'\n", + "desired_qubit = qr2[0] # Qubit 0 of register 'qreg2'\n", "\n", - "print(\"Index:\", combined_circ.find_bit(qb).index)\n", - "print(\"Register:\", combined_circ.find_bit(qb).registers)" + "print(\"Index:\", combined_circ.find_bit(desired_qubit).index)\n", + "print(\"Register:\", combined_circ.find_bit(desired_qubit).registers)" ] }, { @@ -153,7 +153,7 @@ "id": "17a82d8a-b717-44b8-b3f8-ce89e2588261", "metadata": {}, "source": [ - "The easiest way to view this information is through the [`draw`](/api/qiskit/qiskit.circuit.QuantumCircuit#draw) method, which returns a visualization of a circuit. See [Visualize circuits](/build/circuit-visualization) for different ways of displaying quantum circuits." + "The easiest way to view this information is through the [`draw`](/api/qiskit/qiskit.circuit.QuantumCircuit#draw) method, which returns a visualization of a circuit. See [Visualize circuits](/guides/visualize-circuits) for different ways of displaying quantum circuits." ] }, { @@ -408,7 +408,7 @@ "id": "87f1e053", "metadata": {}, "source": [ - "Qubits can be measured using three methods: [`measure`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.measure), [`measure_all`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_all) and [`measure_active`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_active). To learn how to visualize measured results, see the [Visualize results](/run/visualize-results) page.\n", + "Qubits can be measured using three methods: [`measure`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.measure), [`measure_all`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_all) and [`measure_active`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_active). To learn how to visualize measured results, see the [Visualize results](/guides/visualize-results) page.\n", "\n", "1. `QuantumCircuit.measure` : measures each qubit in the first argument into the classical bit given as the second argument. This method allows full control on where the measurement result is stored.\n", "\n", From a32b714e7d091031898d22b613fb1be63faffea5 Mon Sep 17 00:00:00 2001 From: Shraddha Aangiras <63237790+shraddha-aangiras@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:09:14 +0530 Subject: [PATCH 3/4] Applied suggestions from code review Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com> --- docs/guides/construct-circuits.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/construct-circuits.ipynb b/docs/guides/construct-circuits.ipynb index f401e00ef4b..4973e8574f9 100644 --- a/docs/guides/construct-circuits.ipynb +++ b/docs/guides/construct-circuits.ipynb @@ -55,7 +55,7 @@ "id": "392e3d6c", "metadata": {}, "source": [ - "Multiple QuantumRegisters and ClassicalRegisters can be combined to create a circuit. Every [`QuantumRegister`](/api/qiskit/circuit#qiskit.circuit.QuantumRegister) and [`ClassicalRegister`](/api/qiskit/circuit#qiskit.circuit.ClassicalRegister) can also be named." + "Multiple `QuantumRegister` and `ClassicalRegister` objects can be combined to create a circuit. Every [`QuantumRegister`](/api/qiskit/circuit#qiskit.circuit.QuantumRegister) and [`ClassicalRegister`](/api/qiskit/circuit#qiskit.circuit.ClassicalRegister) can also be named." ] }, { @@ -93,7 +93,7 @@ "id": "6e7b212f", "metadata": {}, "source": [ - "The index and register of a qubit can be obtained using the circuit's [`find_bit`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.find_bit) method and its attributes. " + "You can find a qubit's index and register by using the circuit's [`find_bit`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.find_bit) method and its attributes. " ] }, { @@ -410,11 +410,11 @@ "source": [ "Qubits can be measured using three methods: [`measure`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.measure), [`measure_all`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_all) and [`measure_active`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_active). To learn how to visualize measured results, see the [Visualize results](/guides/visualize-results) page.\n", "\n", - "1. `QuantumCircuit.measure` : measures each qubit in the first argument into the classical bit given as the second argument. This method allows full control on where the measurement result is stored.\n", + "1. `QuantumCircuit.measure` : measures each qubit in the first argument onto the classical bit given as the second argument. This method allows full control over where the measurement result is stored.\n", "\n", - "2. `QuantumCircuit.measure_all` : takes no argument and can be used for quantum circuits without pre-defined classical bits. It will create classical wires and store measurement results in order (measurement of a qubit $q_i$ is stored in cbit $meas_i$). It will also introduce a barrier before the measurement.\n", + "2. `QuantumCircuit.measure_all` : takes no argument and can be used for quantum circuits without pre-defined classical bits. It creates classical wires and stores measurement results in order. For example, measurement of qubit $q_i$ is stored in cbit $meas_i$). It also adds a barrier before the measurement.\n", "\n", - "3. `QuantumCircuit.measure_active` : similar to `measure_all`, but measures only qubits that have operations" + "3. `QuantumCircuit.measure_active` : similar to `measure_all`, but measures only qubits that have operations." ] }, { From d6c3dd3e17c06c41e8884144bcfbc299cf83e7e8 Mon Sep 17 00:00:00 2001 From: Shraddha Aangiras <63237790+shraddha-aangiras@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:17:24 +0530 Subject: [PATCH 4/4] Added code review suggested & ran notebook linter --- docs/guides/construct-circuits.ipynb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/guides/construct-circuits.ipynb b/docs/guides/construct-circuits.ipynb index 4973e8574f9..b4a4ddc1383 100644 --- a/docs/guides/construct-circuits.ipynb +++ b/docs/guides/construct-circuits.ipynb @@ -23,7 +23,7 @@ "source": [ "## What is a quantum circuit?\n", "\n", - "A simple quantum circuit is a collection of qubits and a list of instructions that act on those qubits. To demonstrate, the following cell creates a new circuit with two new qubits, then displays the circuit's [`qubits`](/api/qiskit/qiskit.circuit.QuantumCircuit#qubits) attribute, which is a list of [`Qubits`](/api/qiskit/circuit#qiskit.circuit.Qubit) in order." + "A simple quantum circuit is a collection of qubits and a list of instructions that act on those qubits. To demonstrate, the following cell creates a new circuit with two new qubits, then displays the circuit's [`qubits`](/api/qiskit/qiskit.circuit.QuantumCircuit#qubits) attribute, which is a list of [`Qubits`](/api/qiskit/circuit#qiskit.circuit.Qubit) in order from the least significant bit $q_0$ to the most significant bit $q_n$." ] }, { @@ -80,9 +80,9 @@ "source": [ "from qiskit.circuit import QuantumRegister, ClassicalRegister\n", "\n", - "qr1 = QuantumRegister(2, 'qreg1') # Create a QuantumRegister with 2 qubits \n", + "qr1 = QuantumRegister(2, 'qreg1') # Create a QuantumRegister with 2 qubits\n", "qr2 = QuantumRegister(1, 'qreg2') # Create a QuantumRegister with 1 qubit\n", - "cr1 = ClassicalRegister(3, 'creg1') # Create a ClassicalRegister with 3 cbits \n", + "cr1 = ClassicalRegister(3, 'creg1') # Create a ClassicalRegister with 3 cbits\n", "\n", "combined_circ = QuantumCircuit(qr1, qr2, cr1) # Create a quantum circuit with 2 QuantumRegisters and 1 ClassicalRegister\n", "combined_circ.qubits" @@ -93,7 +93,7 @@ "id": "6e7b212f", "metadata": {}, "source": [ - "You can find a qubit's index and register by using the circuit's [`find_bit`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.find_bit) method and its attributes. " + "You can find a qubit's index and register by using the circuit's [`find_bit`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.find_bit) method and its attributes." ] }, { @@ -408,6 +408,10 @@ "id": "87f1e053", "metadata": {}, "source": [ + "## Measure qubits\n", + "\n", + "Measurements can be used to get the final results from the quantum register to the classical register. Note that if you are submitting circuits to a Sampler primitive, measurements are required. However, circuits submitted to an Estimator primitive cannot contain measurements.\n", + "\n", "Qubits can be measured using three methods: [`measure`](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.measure), [`measure_all`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_all) and [`measure_active`](/api/qiskit/qiskit.circuit.QuantumCircuit#measure_active). To learn how to visualize measured results, see the [Visualize results](/guides/visualize-results) page.\n", "\n", "1. `QuantumCircuit.measure` : measures each qubit in the first argument onto the classical bit given as the second argument. This method allows full control over where the measurement result is stored.\n", @@ -629,7 +633,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.4" + "version": "3" }, "title": "Construct circuits" },