• Viacheslav Ostroukh's avatar
    test conjugation of array-like types · 157fc88f
    Viacheslav Ostroukh authored
    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.
    To expose this, `test_builder.py::test_hermitian_conjugation` is
    parametrized with different types of values to ensure that Numpy arrays,
    tinyarrays, lists and tuples are all conjugated properly.
    See issue #406.