We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
convert_complex_to_dm
1 parent 590444a commit c71bdc4Copy full SHA for c71bdc4
2 files changed
docs/source/changelog.rst
@@ -16,7 +16,7 @@ Improvements
16
Bug Fixes
17
+++++++++
18
19
-
+- Fix `convert_complex_to_dm` to properly return arrays with real dtype.
20
21
Deprecations
22
++++++++++++
src/rydiqule/sensor_utils.py
@@ -530,7 +530,7 @@ def convert_complex_to_dm(complex_dm: np.ndarray) -> np.ndarray:
530
if np.iscomplexobj(real_dm):
531
raise RydiquleError('Converted matrix is not real, likely unphysical')
532
533
- return dm
+ return real_dm
534
535
536
def check_positive_semi_definite(dm: np.ndarray):
0 commit comments