We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2d1a1f + 28bb84f commit 3556a5cCopy full SHA for 3556a5c
1 file changed
quantum/grover_search_algorithm.py
@@ -2,9 +2,9 @@
2
from qiskit_aer import AerSimulator
3
4
# Number of qubits
5
-n = int(input("Enter the number of qubits: "))
+n = 2
6
7
-# Create Quantum Circuit with classical bits
+# Create Quantum Circuit
8
qc = QuantumCircuit(n, n)
9
10
# Step 1: Initialize in superposition
0 commit comments