Skip to content

Commit e9918a4

Browse files
Added testmod function
1 parent 108776f commit e9918a4

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: auto-walrus
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.0.292
19+
rev: v0.1.0
2020
hooks:
2121
- id: ruff
2222

@@ -46,7 +46,7 @@ repos:
4646
pass_filenames: false
4747

4848
- repo: https://github.com/abravalheri/validate-pyproject
49-
rev: v0.14
49+
rev: v0.15
5050
hooks:
5151
- id: validate-pyproject
5252

quantum/q_fourier_transform.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def quantum_fourier_transform(number_of_qubits: int = 3) -> qiskit.result.counts
103103

104104

105105
if __name__ == "__main__":
106-
print(
107-
f"Total count for quantum fourier transform state is: \
108-
{quantum_fourier_transform(3)}"
109-
)
106+
import doctest
107+
108+
doctest.testmod()

0 commit comments

Comments
 (0)