Control: tags -1 patch
The attached patch resolves the issue.
Kind Regards,
Bas
--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
diff -Nru quintuple-0~20171222/debian/changelog
quintuple-0~20171222/debian/changelog
--- quintuple-0~20171222/debian/changelog 2019-11-03 22:30:37.000000000
+0100
+++ quintuple-0~20171222/debian/changelog 2023-01-12 19:21:36.000000000
+0100
@@ -1,3 +1,11 @@
+quintuple (0~20171222-4.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Add patch to fix test failure with Numpy 1.24.
+ (closes: #1027228)
+
+ -- Bas Couwenberg <sebas...@debian.org> Thu, 12 Jan 2023 19:21:36 +0100
+
quintuple (0~20171222-4) unstable; urgency=medium
* Update standards to 4.4.1.
diff -Nru quintuple-0~20171222/debian/patches/numpy-1.24.patch
quintuple-0~20171222/debian/patches/numpy-1.24.patch
--- quintuple-0~20171222/debian/patches/numpy-1.24.patch 1970-01-01
01:00:00.000000000 +0100
+++ quintuple-0~20171222/debian/patches/numpy-1.24.patch 2023-01-12
19:21:34.000000000 +0100
@@ -0,0 +1,24 @@
+Description: Fix test failure with Numpy 1.24.
+Author: Bas Couwenberg <sebas...@debian.org>
+Bug-Debian: https://bugs.debian.org/1027228
+
+--- a/QuantumComputer.py
++++ b/QuantumComputer.py
+@@ -13,7 +13,7 @@ import time
+ ## Gates
+ ####
+ class Gate(object):
+- i_=np.complex(0,1)
++ i_=complex(0,1)
+ ## One qubit gates
+ # Hadamard gate
+ H=1./sqrt(2)*np.matrix('1 1; 1 -1')
+@@ -115,7 +115,7 @@ class Gate(object):
+ ## States
+ ####
+ class State(object):
+- i_=np.complex(0,1)
++ i_=complex(0,1)
+ ## One qubit states (basis)
+ # standard basis (z)
+ zero_state=np.matrix('1; 0')
diff -Nru quintuple-0~20171222/debian/patches/series
quintuple-0~20171222/debian/patches/series
--- quintuple-0~20171222/debian/patches/series 2018-02-24 07:00:37.000000000
+0100
+++ quintuple-0~20171222/debian/patches/series 2023-01-12 19:19:46.000000000
+0100
@@ -1,2 +1,3 @@
documentation.patch
+numpy-1.24.patch