From c370ad180de77c0b816dc025dd719806112f753a Mon Sep 17 00:00:00 2001 From: Shraddha Aangiras <63237790+shraddha-aangiras@users.noreply.github.com> Date: Thu, 27 Jun 2024 17:43:04 +0530 Subject: [PATCH] Added explanation of methods on Circuits & Registers --- docs/build/circuit-construction.ipynb | 211 +++++++++++++++++++++++--- 1 file changed, 186 insertions(+), 25 deletions(-) diff --git a/docs/build/circuit-construction.ipynb b/docs/build/circuit-construction.ipynb index 0f588c12c0b..57aedf26a9e 100644 --- a/docs/build/circuit-construction.ipynb +++ b/docs/build/circuit-construction.ipynb @@ -23,12 +23,12 @@ "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." ] }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 15, "id": "b410d397-b67d-4f31-90cf-9c1c34c157c5", "metadata": {}, "outputs": [ @@ -38,7 +38,7 @@ "[Qubit(QuantumRegister(2, 'q'), 0), Qubit(QuantumRegister(2, 'q'), 1)]" ] }, - "execution_count": 1, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -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": 3, + "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": 3, + "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": 4, + "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": 16, "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": 16, "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" ] }, @@ -90,20 +158,18 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 17, "id": "43a57258-3e33-4071-8a48-2bf127c8a5be", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAALAAAACuCAYAAACWa4e1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy80BEi2AAAACXBIWXMAAA9hAAAPYQGoP6dpAAAKL0lEQVR4nO3df0zU9x3H8eed2oKKrSddzw5/QAELyI9NpGJbVwxm6fwRk8XY1ind7PxjQ1nGvD8Wt9k2DWG6ZXGmjSZtXbOMsLR/zEKT/UMzKbEMQm2pYKlMjCCXeoqKV1xlfPdHUxYG/jrgzvfX1+M/7vO97/eteXL3ve/B4XEcx0HEKG+sBxAZDwUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWEybGusBZDTHcfhiYDDWY9yW6fFT8Xg8UT+uAr4DfTEwyMxlb8Z6jNty5YMtzJg+LerH1SmEmKaAxTQFLKYpYDFNAYtpClhMU8BimgIW0xSwmKaAxTQFLKYpYDFNAYtprg84FAoRCARITU0lLi6OefPmUVZWRjgcZuvWrXg8Hvbv3x/rMSVCrg742LFjZGdns2fPHoLBIJmZmVy7do19+/axceNG2tvbAcjLy4vtoJPo5R1LcD7eyg/Xp425/t5r3+Nq83Nkpc6O8mQTw7UBh0Ih1q5dSzAYpLy8n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m2qsQp0+fBmDBggVjrg8ODtLQ0ACMDNjrnfjv6fz8fILB4ITv1y38fj/Nzc0R3de1AYfDYQAGBgbGXK+uriYUCpGQkEBycvKkzhIMBunp6ZnUY9ytXBuw3++nr6+PlpYWCgsLR6z19vayc+dOAHJycib9hZrf75/U/Vs3nv8f1wZcXFxMe3s7lZWVrFq1ivT0dACamprYvHkzoVAIiM4bGJE+PcrNufZFXCAQYM6cOZw5c4asrCyys7NJS0ujoKCAlJQUVq5cCYw8/xV7XBtwUlIS9fX1rF69mri4OLq6uvD5fBw4cIDa2lo6OjoABWyda08hADIyMqipqRl1+5UrV+jq6sLr9bJ48eIYTCYTxdUBX8/x48dxHIf09HSmT58+av2tt94CoK2tbcTXCxcuJD8/P3qDyk3dlQG3trYC1z992LBhw5hfl5SUcOjQoUmdTW6PAh6D4zjRHEfGwbUv4m7kZgGLHR5HDzdi2F35CCzuoYDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWExTwGKaAhbTFLCYpoDFNAUspilgMU0Bi2kKWEz7L2LdDKR2vuO9AAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, - "execution_count": 3, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -122,20 +188,18 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 12, "id": "653e2427-e301-4d2f-84de-1959185ace8e", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAKIAAABuCAYAAACk2MjUAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy80BEi2AAAACXBIWXMAAA9hAAAPYQGoP6dpAAAHP0lEQVR4nO3dfUxV9x3H8fdFkQe9tDw03vrEg0CKC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WEO7qGTsvDHTfSWpYoRBekLcm+6/R4qyfMI09/BYCM4hzC7Z1Rj3uv4jD5O0p46swhCnc/xZnnXxnaNtxxI61lic/535tjZUKN9TKwhPQUHn+lfOid8WQfF41bX2+hECfRVF2POJH0PStyX1OIYoJCFBP0GnES6UshR08higk6NYsJClFMUIhigkIUExSimKAQxQSFKCYoRDFBIYoJClFMUIhigkIUExSimKAQxQSFKCYoRDFBIYoJClFMUIhigkIUExSimKAQxQSFKCYoRDFBIYoJ/wEMO01TTmRMJQAAAABJRU5ErkJggg==", "text/plain": [ "
" ] }, - "execution_count": 4, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -171,20 +235,18 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 8, "id": "66813cae-9841-47ea-96b7-8fd7b82e9759", "metadata": {}, "outputs": [ { "data": { - "image/svg+xml": [ - "" - ], + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAKIAAABuCAYAAACk2MjUAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy80BEi2AAAACXBIWXMAAA9hAAAPYQGoP6dpAAAEgElEQVR4nO3dz0vbdxzH8VfSssYf8VBdl4mu1dmw2poIisPDGDo9uOJp0EspPbijWJiYP6CXLtBT6cXjTpKeBjNXWRHZIBIEcVJBiGj1y/iiF611RL87bbA27TRav+98eT6Ofj/x8z48+X4S9Yshz/M8AT4L+z0AIBEijCBEmECIMIEQYQIhwgRChAmECBMIESYQIkwgRJhAiDCBEGECIcIEQoQJhAgTCBEmECJMIESYQIgwgRBhAiHCBEKECYQIEwgRJhAiTCBEmECIMIEQYQIhwgRChAmECBMIESYQIkwgRJhAiDCBEGHCRb8HCDLP86SDA7/HOJlLlxQKhc59W0L8kA4OVLxz3+8pTuTis5+kSOTc9+VohgmECBMIESYQIkwgRJhAiDCBEGECIcIEQoQJhAgTCBEmECJMIESYELgQXddVKpVSW1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RJhAiDDhb1+BCUFmootuAAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, - "execution_count": 5, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -349,6 +411,105 @@ "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", + "* `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." + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "0cdb2273", + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAALAAAAEvCAYAAADl8Et8AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy80BEi2AAAACXBIWXMAAA9hAAAPYQGoP6dpAAAUFUlEQVR4nO3de1DU9b/H8dcuy/2SktWKu6ggGEKAl/BHXggO+kslwV9nO5WjTpex7FSeGUcqnamcvGQ200+0KW06EzXKMOGvMqypFKY4mFcmTZciQdQFdopAgQ2lZff84XFP23JddlnfX16Pf2i/3+/uvmWefvnsd9dQ2e12O4iEUvt6AKKhYMAkGgMm0RgwicaASTQGTKIxYBKNAZNoDJhEY8AkGgMm0RgwicaASTQGTKIxYBKNAZNoDJhEY8AkGgMm0RgwicaASTQGTKIxYBKNAZNoDJhEY8AkGgMm0RgwicaASTQGTKIxYBKNAZNoDJhEY8AkGgMm0RgwicaASTSNrwcgV3a7Hd3d3b4eY1D8/PygUqmG/XkZ8E2ou7sb+/bt8/UYg/LAAw9Aox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YsXERwcjPb2dvj5De7VuwSdV6/hn/9dgivtFse2aUlxeHBRpg+n8owRcQa2WCxYuHAhvvnmG2RkZODUqVO4cOECjh49igsXLuDMmTN44YUXFBkvAAQHBcKw6F7H7VERYVicPct3A3nQiDgDP/XUU9i1axdmz56NQ4cOISAgwNcj+cRnhw7j8IkzeOLhHMRGR/l6HI9QfMA//vgjkpKSoNFoUFNTg+jo6D6PN5lMeO2113Ds2DGcOnUKXV1dGOq3aEfhv9De0Tmkx/AEu92OP6xWBPj7+3oUJ+FhwXh2xT/cuq/iP8yzd+9edHd3Y/ny5f3GCwDnzp3Dvn37cPfddyMgIACVlZVDnqG9oxNtHZb+DxwmV68p58Wq4gM+ePAgAGDhwoUDOn7u3LloamoCALzyyiseCTg8LHjIj6FkQ/n+KD7gS5cuAQBiYmIGdLzaC2+nuvvjkfqn+IAtlus/ujs7fbcGvVnWwDcrroH7oNfr0draisOHD2PWLN9cOrrZ1sBKoviAlyxZgtOnT2PTpk1ISUnB/PnzHfsaGhpQWFgIg8GAuLg4r83ANXDfhvL9UfxltI6ODmRkZKCqqgoAoNVqodfr0dLSgrq6OqhUKrS1tSE0NNTlvq+88go2bNgw5Mto5D2KfycuLCwMFRUV2LhxI1JSUnDlyhWcOXMGNpsNeXl5KCws7DFekkHxSwgACAkJwfr167F+/Xpfj0IeNiICHqySkhIAgNFodLo9YcIEzJgxw2dzkSvFr4Hd0dvnY1esWIH3339/eIehPvEM3AP+nZZD8S/iSNkYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgEk0BkyiMWASjQGTaAyYRGPAJBoDJtEYMInGgEk0BkyiMWASjQGTaAyYRPtfs0Wb5bm3Df4AAAAASUVORK5CYII=", + "text/plain": [ + "
" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "qc = QuantumCircuit(2, 2)\n", + "qc.measure(0, 1)\n", + "qc.draw(\"mpl\", cregbundle=False)" + ] + }, + { + "cell_type": "markdown", + "id": "79ba9f07", + "metadata": {}, + "source": [ + "* `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. It will also introduce a barrier before the measurement." + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "id": "6f33698c", + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWAAAAEvCAYAAAB7bxv1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy80BEi2AAAACXBIWXMAAA9hAAAPYQGoP6dpAAAovklEQVR4nO3deViU190//vcwI/s2rIMgsomCimLQGHcNGI24RVKTGGM1qX28koa0adDkuvqYNDFqtd8kNdUnxno1bYVYo02t/rySoEncEiUxgmURwUFZNQjKIjAyc35/WKaOMyDLwJnB9+sfvO9zn/v+DMKbM+deRiGEECAioj7nILsAIqL7FQOYiEgSBjARkSQMYCIiSRjARESSMICJiCRhABMRScIAJiKShAFMRCQJA5iISBIGMBGRJAxgIiJJGMBERJIwgImIJGEAExFJwgAmIpKEAUxEJAkDmIhIEgYwEZEkDGAiIkkYwEREkjCAiYgkYQATEUnCACYikoQBTEQkCQOYiEgSBjARkSQMYCIiSVSyC6D7U1ZWVpe2r66uxr59+/DYY4/Bz8+vU33Gjh3bndKI+gxHwGQXqqursWPHDlRXV8suhchqGMBERJIwgImIJGEAExFJwgAmu+Dh4YFZs2bBw8NDdilEVqMQQgjZRdD9p6tXQXQHr4IgW8cRMNmFlpYWlJaWoqWlRXYpRFbDACa7oNVqsWjRImi1WtmlEFkNb8QgsiIhBPR6vewyukSpVEKhUMgu477EACayIr1ej71798ouo0sWLVoElYpRIAOnIIiIJGEAExFJwvcdZBeGDRuG06dPyy6DyKo4AiYikoQBTHbh0qVLWLFiBS5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IAJiKShAFMRCQJA5iISBIGMBGRJAxgIiJJGMBERJIwgImIJGEAExFJwgAmIpKEAUxEJAkDmIhIkv8f637/JV5/Z98AAAAASUVORK5CYII=", + "text/plain": [ + "
" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "qc = QuantumCircuit(2)\n", + "qc.measure_all()\n", + "qc.draw(\"mpl\", cregbundle=False)" + ] + }, + { + "cell_type": "markdown", + "id": "d85152e0", + "metadata": {}, + "source": [ + "* `QuantumCircuit.measure_active` : similar to `measure_all`, but measures only qubits that have operations" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "id": "ca3f225f", + "metadata": {}, + "outputs": [ + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAADuCAYAAADC3kfBAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjkuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy80BEi2AAAACXBIWXMAAA9hAAAPYQGoP6dpAAAeO0lEQVR4nO3de1wVdf4/8NeBw53DTVCOEHIXL6jIJW9Z8gC/sN6TfrVeclPXfTx+1dLj4U8qy29WGirVWvat1NrS3SJX81es1qOfZilpixfyEoKiggsCEoIIR+Ry+Pz+cDl5AoRzGBiZeT3/0TMznznvGeB15nzmMzMaIYQAEREpio3cBRARkfQY7kRECsRwJyJSIIY7EZECMdyJiBSI4U5EpEAMdyIiBWK4ExEpEMOdiEiBGO5ERArEcCciUiCGOxGRAjHciYgUiOFORKRADHciIgViuBMRKRDDnYhIgRjuREQKxHAnIlIghjsRkQIx3ImIFIjhTkSkQAx3IiIFYrgTESkQw52ISIEY7kRECsRwJyJSIK3cBRCR9I4dO9btZauqqrB79248/PDD8Pb27na72NhYa0qjPsIjdyKVq6qqwgcffICqqiq5SyEJMdyJiBSI4U5EpEAMdyIiBWK4E6mcTqdDUlISdDqd3KWQhDRCCCF3EUQkLUtGy1iLo2XubTxyJ1K5xsZGlJSUoLG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AAASUVORK5CYII=", + "text/plain": [ + "
" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "qc = QuantumCircuit(2)\n", + "qc.x(1)\n", + "qc.measure_active()\n", + "qc.draw(\"mpl\", cregbundle=False)" + ] + }, { "cell_type": "markdown", "id": "649fc3fd-caf1-45f1-ad8e-3b5d26ca859b", @@ -441,17 +602,17 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 23, "id": "0990b840-f8c4-4416-b2b5-9861173a9471", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "ParameterView([Parameter(angle)])" + "ParameterView([])" ] }, - "execution_count": 12, + "execution_count": 23, "metadata": {}, "output_type": "execute_result" } @@ -492,7 +653,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3" + "version": "3.12.3" }, "title": "Construct circuits" },