Skip to content

Commit 1821b98

Browse files
jakelishmanmergify[bot]
authored andcommitted
Replace use of numpy.lib.scimath with preferred numpy.emath (#10892)
`numpy.emath` is the preferred alias to `numpy.lib.scimath`, and direct access to the latter is scheduled for removal in Numpy 2. (cherry picked from commit af24227)
1 parent 87bd45a commit 1821b98

File tree

1 file changed

+1
-1
lines changed
  • qiskit/quantum_info/synthesis

1 file changed

+1
-1
lines changed

qiskit/quantum_info/synthesis/qsd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _demultiplex(um0, um1, opt_a1=False, opt_a2=False, *, _depth=0):
175175
else:
176176
evals, vmat = scipy.linalg.schur(um0um1, output="complex")
177177
eigvals = evals.diagonal()
178-
dvals = np.lib.scimath.sqrt(eigvals)
178+
dvals = np.emath.sqrt(eigvals)
179179
dmat = np.diag(dvals)
180180
wmat = dmat @ vmat.T.conjugate() @ um1
181181

0 commit comments

Comments
 (0)