From 1dddb274b42eb317413f8c9f5d5c2f5ff4c11e66 Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Fri, 9 Feb 2024 12:58:59 +0400 Subject: [PATCH] test --- tests/test_quantum_info_clifford.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_quantum_info_clifford.py b/tests/test_quantum_info_clifford.py index 3290aefc31..74e09acca0 100644 --- a/tests/test_quantum_info_clifford.py +++ b/tests/test_quantum_info_clifford.py @@ -136,9 +136,10 @@ def test_clifford_initialization(backend, nqubits): ) +@pytest.mark.parametrize("cores", [1, 5]) @pytest.mark.parametrize("return_array", [True, False]) @pytest.mark.parametrize("symplectic", [True, False]) -def test_clifford_stabilizers(backend, symplectic, return_array): +def test_clifford_stabilizers(backend, symplectic, return_array, cores): clifford_backend = construct_clifford_backend(backend) if not clifford_backend: return @@ -197,16 +198,17 @@ def test_clifford_stabilizers(backend, symplectic, return_array): "III", ] - stabilizers = obj.stabilizers(symplectic, return_array) + stabilizers = obj.stabilizers(symplectic, return_array, cores=cores) if symplectic or (not symplectic and return_array): backend.assert_allclose(stabilizers, true_stabilizers) else: assert stabilizers, true_stabilizers +@pytest.mark.parametrize("cores", [1, 5]) @pytest.mark.parametrize("return_array", [True, False]) @pytest.mark.parametrize("symplectic", [True, False]) -def test_clifford_destabilizers(backend, symplectic, return_array): +def test_clifford_destabilizers(backend, symplectic, return_array, cores): clifford_backend = construct_clifford_backend(backend) if not clifford_backend: return @@ -266,7 +268,7 @@ def test_clifford_destabilizers(backend, symplectic, return_array): "IIX", "III", ] - destabilizers = obj.destabilizers(symplectic, return_array) + destabilizers = obj.destabilizers(symplectic, return_array, cores) if symplectic or (not symplectic and return_array): backend.assert_allclose(destabilizers, true_destabilizers) else: