Skip to content

Commit ee48463

Browse files
cclausssedatguzelsemme
authored andcommitted
Fix failing pytest quantum/bb84.py (TheAlgorithms#8838)
* Fix failing pytest quantum/bb84.py * Update bb84.py test results to match current qiskit
1 parent aca2d9b commit ee48463

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: .github/workflows/build.yml

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
- name: Run tests
2525
# TODO: #8818 Re-enable quantum tests
2626
run: pytest
27-
--ignore=quantum/bb84.py
2827
--ignore=quantum/q_fourier_transform.py
2928
--ignore=project_euler/
3029
--ignore=scripts/validate_solutions.py

Diff for: quantum/bb84.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def bb84(key_len: int = 8, seed: int | None = None) -> str:
6464
key: The key generated using BB84 protocol.
6565
6666
>>> bb84(16, seed=0)
67-
'1101101100010000'
67+
'0111110111010010'
6868
6969
>>> bb84(8, seed=0)
70-
'01011011'
70+
'10110001'
7171
"""
7272
# Set up the random number generator.
7373
rng = np.random.default_rng(seed=seed)

0 commit comments

Comments
 (0)