Skip to content

Commit 3556a5c

Browse files
committed
change from qiskit import Aer to from qiskit_aer import AerSimulator
2 parents e2d1a1f + 28bb84f commit 3556a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quantum/grover_search_algorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
from qiskit_aer import AerSimulator
33

44
# Number of qubits
5-
n = int(input("Enter the number of qubits: "))
5+
n = 2
66

7-
# Create Quantum Circuit with classical bits
7+
# Create Quantum Circuit
88
qc = QuantumCircuit(n, n)
99

1010
# Step 1: Initialize in superposition

0 commit comments

Comments
 (0)