Skip to content

Commit 2383c28

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent da3670d commit 2383c28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

quantum/q_fourier_transform.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import numpy as np
22
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister, execute
33

4+
45
def quantum_fourier_transform(number_of_qubits: int = 3) -> dict:
56
"""
6-
Build and simulate the Quantum Fourier Transform (QFT) circuit
7+
Build and simulate the Quantum Fourier Transform (QFT) circuit
78
for a given number of qubits using the Qiskit framework.
8-
9+
910
Args:
1011
number_of_qubits (int): The number of qubits for the QFT circuit.
1112
1213
Returns:
1314
dict: A dictionary containing the counts of measurement results.
14-
15+
1516
Raises:
16-
ValueError: If the number of qubits is less than or equal to 0,
17+
ValueError: If the number of qubits is less than or equal to 0,
1718
greater than 10, or not an integer.
1819
TypeError: If the input is not an integer.
1920
"""

0 commit comments

Comments
 (0)