Skip to content
Snippets Groups Projects

Transpose array-like in herm_conj

Merged Viacheslav Ostroukh requested to merge fix/406-conjugate_array_like into stable
2 unresolved threads

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading