Skip to content

Transpose array-like in herm_conj

Viacheslav Ostroukh requested to merge fix/406-conjugate_array_like into stable

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 MR fixes the problem, trying to cast the value to the proper array, if it can't be conjugated and is not a number.

Fixes #406 (closed)

Edited by Viacheslav Ostroukh

Merge request reports