From a7af12caada8a0aaf0111c050c178c250ef1c53e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 22:02:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20pre-commit=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/python/qudits_circuits/gate_set/test_noisex.py | 4 +++- test/python/qudits_circuits/gate_set/test_noisey.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/python/qudits_circuits/gate_set/test_noisex.py b/test/python/qudits_circuits/gate_set/test_noisex.py index 485b45f..808d99d 100644 --- a/test/python/qudits_circuits/gate_set/test_noisex.py +++ b/test/python/qudits_circuits/gate_set/test_noisex.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from unittest import TestCase import numpy as np @@ -26,7 +28,7 @@ def test___array__(): [0.0 + 0.0j, 0.0 + 0.0j, 1.0 + 0.0j, 0.0 + 0.0j], [0.0 + 0.0j, 1.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j], [1.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j], - [0.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j, 1.0 + 0.0j] + [0.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j, 1.0 + 0.0j], ]) assert np.allclose(nx_2.to_matrix(identities=0), nx_test_2) diff --git a/test/python/qudits_circuits/gate_set/test_noisey.py b/test/python/qudits_circuits/gate_set/test_noisey.py index 209504b..c1707a3 100644 --- a/test/python/qudits_circuits/gate_set/test_noisey.py +++ b/test/python/qudits_circuits/gate_set/test_noisey.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from unittest import TestCase import numpy as np @@ -26,7 +28,7 @@ def test___array__(): [0.0 + 0.0j, 0.0 + 0.0j, 0.0 - 1.0j, 0.0 + 0.0j], [0.0 + 0.0j, 1.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j], [0.0 + 1.0j, 0.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j], - [0.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j, 1.0 + 0.0j] + [0.0 + 0.0j, 0.0 + 0.0j, 0.0 + 0.0j, 1.0 + 0.0j], ]) assert np.allclose(ny_2.to_matrix(identities=0), ny_test_2)