Issue with Complex Matrices and Eigenvalues #255
Replies: 2 comments 6 replies
-
Hi, thanks for your posting! Would it be possible for you to provide a minimal working example that leads to the error? This would make it a lot easier to debug. |
Beta Was this translation helpful? Give feedback.
-
Hi, %%%%%%%%%%%%%%%%% obs11 = pe.pseudo_Obs(4.1, 0.2, 'e1') my_cobs12 = pe.CObs(my_real_part, my_imag_part) The error message File /opt/anaconda3/lib/python3.11/site-packages/pyerrors/linalg.py:263, in eigh(obs, **kwargs) File /opt/anaconda3/lib/python3.11/site-packages/pyerrors/obs.py:1213, in derived_observable(func, data, array_mode, **kwargs) AttributeError: 'CObs' object has no attribute 'cov_names' |
Beta Was this translation helpful? Give feedback.
-
I am new to this package and have a problem similar to the one described in “05_matrix_operations.ipynb” (Example 5). My task involves a matrix with complex entries, where each entry has an associated error. I need to calculate the eigenvalues of this matrix, including the propagation of errors. The matrix is hermitian.
I attempted to define complex numbers with errors using “CObs,” but when I tried to compute the eigenvalues, I encountered the error: “‘CObs’ object has no attribute ‘cov_names’.” This seems to be a syntax issue, but I have been unable to resolve it.
I would greatly appreciate any guidance on how to correctly define a complex matrix with errors and perform matrix operations like eigenvalue decomposition.
Beta Was this translation helpful? Give feedback.
All reactions