Skip to content

Commit 95bb10e

Browse files
authored
Remove duplicate step 1 in Grovers tutorial (#3104)
Closes #3096 Also spotted a `quantum-computing` URL and updated it to `quantum`
1 parent 5c6a64e commit 95bb10e

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

docs/tutorials/grovers-algorithm.ipynb

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -99,43 +99,6 @@
9999
" return qc"
100100
]
101101
},
102-
{
103-
"attachments": {},
104-
"cell_type": "markdown",
105-
"id": "d4845f4d",
106-
"metadata": {},
107-
"source": [
108-
"## Step 1: Map classical inputs to a quantum problem\n",
109-
"\n",
110-
"Grover's algorithm requires an [oracle](https://learning.quantum-computing.ibm.com/course/fundamentals-of-quantum-algorithms/grovers-algorithm) that specifies one or more marked computational basis states, where \"marked\" means a state with a phase of -1. A controlled-Z gate, or its multi-controlled generalization over $N$ qubits, marks the $2^{N}-1$ state (`'1'`*$N$ bit-string). Marking basis states with one or more `'0'` in the binary representation requires applying X-gates on the corresponding qubits before and after the controlled-Z gate; equivalent to having an open-control on that qubit. In the following code, we define an oracle that does just that, marking one or more input basis states defined through their bit-string representation. The `MCMT` gate is used to implement the multi-controlled Z-gate."
111-
]
112-
},
113-
{
114-
"cell_type": "code",
115-
"execution_count": null,
116-
"id": "8668ab00",
117-
"metadata": {},
118-
"outputs": [
119-
{
120-
"data": {
121-
"text/plain": [
122-
"'ibm_kyoto'"
123-
]
124-
},
125-
"execution_count": 2,
126-
"metadata": {},
127-
"output_type": "execute_result"
128-
}
129-
],
130-
"source": [
131-
"# To run on hardware, select the backend with the fewest number of jobs in the queue\n",
132-
"service = QiskitRuntimeService()\n",
133-
"backend = service.least_busy(\n",
134-
" operational=True, simulator=False, min_num_qubits=127\n",
135-
")\n",
136-
"backend.name"
137-
]
138-
},
139102
{
140103
"attachments": {},
141104
"cell_type": "markdown",
@@ -144,7 +107,7 @@
144107
"source": [
145108
"## Step 1: Map classical inputs to a quantum problem\n",
146109
"\n",
147-
"Grover's algorithm requires an [oracle](https://learning.quantum-computing.ibm.com/course/fundamentals-of-quantum-algorithms/grovers-algorithm) that specifies one or more marked computational basis states, where \"marked\" means a state with a phase of -1. A controlled-Z gate, or its multi-controlled generalization over $N$ qubits, marks the $2^{N}-1$ state (`'1'`*$N$ bit-string). Marking basis states with one or more `'0'` in the binary representation requires applying X-gates on the corresponding qubits before and after the controlled-Z gate; equivalent to having an open-control on that qubit. In the following code, we define an oracle that does just that, marking one or more input basis states defined through their bit-string representation. The `MCMT` gate is used to implement the multi-controlled Z-gate."
110+
"Grover's algorithm requires an [oracle](https://learning.quantum.ibm.com/course/fundamentals-of-quantum-algorithms/grovers-algorithm) that specifies one or more marked computational basis states, where \"marked\" means a state with a phase of -1. A controlled-Z gate, or its multi-controlled generalization over $N$ qubits, marks the $2^{N}-1$ state (`'1'`*$N$ bit-string). Marking basis states with one or more `'0'` in the binary representation requires applying X-gates on the corresponding qubits before and after the controlled-Z gate; equivalent to having an open-control on that qubit. In the following code, we define an oracle that does just that, marking one or more input basis states defined through their bit-string representation. The `MCMT` gate is used to implement the multi-controlled Z-gate."
148111
]
149112
},
150113
{

0 commit comments

Comments
 (0)