Skip to content
Snippets Groups Projects
  1. Dec 10, 2019
    • Joseph Weston's avatar
    • Joseph Weston's avatar
      add consistency checks when computing onsite and hamiltonian data · 3e950e7c
      Joseph Weston authored
      We get rid of '_is_herm_conj' in favour of '_is_hermitian', replace
      '_check_ham' with '_check_hams' (which works on vectorized values)
      and add '_check_onsites' (which also works on vectorized values).
      Replace absolute value calculation with call to 'cabs' from 'complex.h'
      3e950e7c
    • Joseph Weston's avatar
      implement operator vectorization · 51d678bf
      Joseph Weston authored
      This includes the following changes:
      
      + Group the elements of 'where' according to the term/site-families
        they belong to. This is pre-computed and stored in '_terms'.
        What specifically is stored depends on whether vectorization
        is enabled.
      + BlockSparseMatrix now takes its matrix elements as a sequence
        of pairs 'which, data', where 'which' indexes 'where'. This
        leverages the values stored in '_terms'.
      + Normalize 'onsite' to a function that takes 'site_range' (int)
        and 'site_offsets' (array of int). This facilitates vectorization
        when it is enabled. Previously 'onsite' was normalized to a
      function
        taking 'site' (int), which was not vectorizable.
      + '_eval_onsite' is modified to compose components of '_terms' with
        'onsite'.
      + '_eval_hamiltonian' is modified to compose compoenents of '_terms'
        with 'hamiltonian_term' when vectorized, or 'hamiltonian' when
        not vectorized.
      51d678bf
    • Joseph Weston's avatar
      disallow infinite vectorized systems in operators · 87e1c044
      Joseph Weston authored
      It is not clear how this will be implemented right now.
      87e1c044
    • Joseph Weston's avatar
      add failing vectorization test · c0d082aa
      Joseph Weston authored
      The next commit(s) will implement the necessary changes to the
      operator module to make this test pass.
      c0d082aa
    • Joseph Weston's avatar
      rename hamiltonian_term data normalization in 'system' module · 39b4ca8d
      Joseph Weston authored
      We will need this normalization in several places, and it is
      more general than *just* Hamiltonian terms.
      39b4ca8d
  2. Dec 06, 2019
  3. Dec 05, 2019
  4. Nov 26, 2019
  5. Nov 22, 2019
  6. Nov 20, 2019
  7. Nov 15, 2019
  8. Nov 13, 2019
Loading