Skip to content
Snippets Groups Projects
Commit 99387575 authored by Viacheslav Ostroukh's avatar Viacheslav Ostroukh :bike: Committed by Viacheslav Ostroukh
Browse files

transpose array-like in herm_conj

If onsite/hopping value was supplied to the builder as array-like instead of
proper array, Hamiltonian could be generated silently without any Hermitian
conjugation, if required.

This commit fixes the problem, trying to cast the value to the proper array,
if it can't be conjugated and is not a number.

`test_builder.py::test_hermitian_conjugation` is tuned to catch the problem.

Fixes #406
parent a8947abf
No related branches found
No related tags found
No related merge requests found
Pipeline #74355 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment