From f87395ce9a9abbc950f5c7ec94a967004ded1efa Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 25 Jun 2023 22:04:44 +0200 Subject: [PATCH 1/2] Fix failing pytest quantum/bb84.py --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5229edaf8659..fc8cb636979e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,6 @@ jobs: - name: Run tests # TODO: #8818 Re-enable quantum tests run: pytest - --ignore=quantum/bb84.py --ignore=quantum/q_fourier_transform.py --ignore=project_euler/ --ignore=scripts/validate_solutions.py From d5e83f3a44c7eb95d70343be856794fd2b3f64e3 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 25 Jun 2023 22:14:31 +0200 Subject: [PATCH 2/2] Update bb84.py test results to match current qiskit --- quantum/bb84.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantum/bb84.py b/quantum/bb84.py index 60d64371fe63..e90a11c2aef3 100644 --- a/quantum/bb84.py +++ b/quantum/bb84.py @@ -64,10 +64,10 @@ def bb84(key_len: int = 8, seed: int | None = None) -> str: key: The key generated using BB84 protocol. >>> bb84(16, seed=0) - '1101101100010000' + '0111110111010010' >>> bb84(8, seed=0) - '01011011' + '10110001' """ # Set up the random number generator. rng = np.random.default_rng(seed=seed)