================================================================================
 runSNVS - THIRD-PARTY SOFTWARE NOTICES AND LICENSES
================================================================================

runSNVS (Shell-Nested Virtual Spaces; D. W. Szczepanik, Jagiellonian
University) is distributed under the licence in the file LICENSE at the top of
the distribution. This file lists the third-party components a runSNVS build
uses or contains and the data it carries:

  1. libcint     - Gaussian integral library, linked statically (Apache-2.0)
  2. OpenBLAS / LAPACK - linear algebra, linked dynamically (BSD-3 / BSD-2)
  3. Bundled numerical DATA (basis sets, quadratures, radii)
  4. PySCF - reference implementation of the coupled-cluster solvers and
     source of the grid tables (Apache-2.0)
  5. Algorithmic attributions (no licence obligations)

The licence texts are shipped in this directory:

    libcint-LICENSE.txt     Apache License 2.0 (libcint)
    OpenBLAS-LICENSE.txt    BSD 3-Clause License (OpenBLAS)
    LAPACK-LICENSE.txt      modified BSD 3-Clause License (Netlib LAPACK,
                            bundled inside OpenBLAS)
    GotoBLAS-LICENSE.txt    BSD 2-Clause License (GotoBLAS2, from which
                            OpenBLAS descends)
    PySCF-LICENSE.txt       Apache License 2.0 (PySCF)
    PySCF-NOTICE.txt        NOTICE file of PySCF 2.14 (copyright and authors)

================================================================================
 1. libcint 6.1.3 - analytical Gaussian integrals
================================================================================

    Applies to: every runSNVS executable. libcint is NOT part of the source
                distribution: scripts/build_libcint.sh downloads tag v6.1.3
                (commit c72d30662ba08048940c9000cc352a220c867712) and builds a
                static archive that the Makefile links into the executable.
                Whoever redistributes such an executable must ship the Apache
                License 2.0 text (libcint-LICENSE.txt) with it.

    Upstream:   https://github.com/sunqm/libcint
    Reference:  Q. Sun, J. Comput. Chem. 36, 1664 (2015).
    Licence:    Apache License 2.0 (libcint-LICENSE.txt), unmodified source.

================================================================================
 2. OpenBLAS - optimized BLAS / LAPACK implementation
================================================================================

    Applies to: Linux and Windows builds. The default Linux build links the
                system libopenblas (and, as a fallback, the reference LAPACK)
                DYNAMICALLY, so no OpenBLAS machine code is contained in the
                executable; the notices are reproduced for statically linked
                builds (Windows `make STATIC=1`). macOS builds use the Apple
                Accelerate framework instead.

    Upstream:   https://github.com/OpenMathLib/OpenBLAS
    Licence:    BSD 3-Clause (OpenBLAS-LICENSE.txt), with the GotoBLAS2
                BSD 2-Clause notice (GotoBLAS-LICENSE.txt) and the modified
                BSD 3-Clause LAPACK notice (LAPACK-LICENSE.txt), reproduced
                verbatim in this directory as their conditions require.

================================================================================
 3. Bundled numerical data
================================================================================

  * ano-pV5Z basis set (built-in ANO library, src/snvs_ano_data.f90; the
    bases ano-pVDZ...ano-pV5Z are its leading contractions):
      F. Neese, E. F. Valeev, J. Chem. Theory Comput. 7, 33 (2011),
      DOI 10.1021/ct100396y; data as distributed with ORCA 6.1.1 /
      the Basis Set Exchange (B. P. Pritchard, D. Altarawy, B. Didier,
      T. D. Gibson, T. L. Windus, J. Chem. Inf. Model. 59, 4814 (2019)).
      Basis-set data of the BSE are freely redistributable; please cite the
      original publication (runSNVS prints the citation).
  * def2-universal-JFIT auxiliary basis, H-Ar (src/snvs_def2j_data.inc, used
    only by the reference option --scf-auxj def2j):
      F. Weigend, Phys. Chem. Chem. Phys. 8, 1057 (2006); data from the
      Basis Set Exchange v0.8.12.
  * Lebedev-Laikov angular quadratures (src/snvs_lebedev_tables.inc) and
    Bragg-Slater radii / Treutler-Ahlrichs scaling factors
    (src/snvs_grid_radii.inc): numerical values generated with PySCF 2.14
    (Apache License 2.0, https://github.com/pyscf/pyscf), from
      V. I. Lebedev, D. N. Laikov, Dokl. Math. 59, 477 (1999);
      J. C. Slater, J. Chem. Phys. 41, 3199 (1964);
      O. Treutler, R. Ahlrichs, J. Chem. Phys. 102, 346 (1995).
    The Lebedev-Laikov generator of PySCF (lib/dft/CxLebedevGrid.c) derives
    from the C code of D. N. Laikov via G. Knizia. See also section 4.

================================================================================
 4. PySCF 2.14 - coupled-cluster reference implementation and grid tables
================================================================================

    Upstream:   https://github.com/pyscf/pyscf
    Copyright:  Copyright 2014-2024 The PySCF Developers (PySCF-NOTICE.txt).
    Reference:  Q. Sun et al., J. Chem. Phys. 153, 024109 (2020).
    Licence:    Apache License 2.0 (PySCF-LICENSE.txt).

    No PySCF code is linked or executed by runSNVS. The following runSNVS
    source files are Fortran implementations written with the PySCF modules
    named below as the term-by-term reference: the equations are those of the
    cited literature, and the arrangement of the terms, the intermediates and
    their names (and, in src/snvs_ccsd_uhf.f90, the statement order of
    update_amps) follow PySCF, so that every intermediate could be compared
    with it. runSNVS evaluates the terms on pair matrices (per-pair virtual
    bases, layers, frozen blocks), which PySCF does not do.

      src/snvs_ccsd_rhf.f90   <- pyscf/cc/rccsd.py, pyscf/cc/rintermediates.py
                                 (Copyright 2014-2021 The PySCF Developers;
                                 author of rccsd.py: Timothy Berkelbach)
      src/snvs_cc_triples.f90 <- pyscf/cc/ccsd_t_slow.py
                                 (Copyright 2014-2020 The PySCF Developers;
                                 author: Qiming Sun)
      src/snvs_ccsd_uhf.f90   <- pyscf/cc/uccsd.py (update_amps)
                                 (Copyright 2014-2021 The PySCF Developers;
                                 authors: Timothy Berkelbach, Qiming Sun)
      src/snvs_cc_utriples.f90 <- pyscf/cc/uccsd_t_slow.py
                                 (Copyright 2014-2020 The PySCF Developers;
                                 author: Qiming Sun)

    Modifications with respect to PySCF: translation to Fortran 2008,
    pair-matrix formulation with dgemm per pair, layer-specific virtual
    spaces, integral classes from libcint (exact or density-fitted), f_ov
    terms of non-Brillouin layers, OpenMP parallelisation.

    Grid tables generated with PySCF (section 3): src/snvs_lebedev_tables.inc
    (pyscf/lib/dft/CxLebedevGrid.c), src/snvs_grid_radii.inc
    (pyscf/data/radii.py, pyscf/dft/radi.py; the Treutler-Ahlrichs factors
    of H-Kr are those of the original paper, the factors of heavier elements
    were taken by PySCF from the Psi4 source code). The defaults of the DFT grids
    (src/snvs_dft_grid.f90) and the convention of the reported stability
    eigenvalues (src/snvs_scf.f90) follow PySCF 2.14 (dft/gen_grid.py,
    scf/stability.py).

    When you publish results of the CCSD/CCSD(T) lanes, please also cite PySCF.

================================================================================
 5. Algorithmic attributions (no licence obligations)
================================================================================

  Apart from the PySCF-based files of section 4, the methods are runSNVS's own
  implementations of the published literature, which is listed in
  docs/runSNVS_technical_reference.pdf and printed by the program at the end
  of a run. In particular:
  * Natural atomic orbitals: A. E. Reed, R. B. Weinstock, F. Weinhold,
    J. Chem. Phys. 83, 735 (1985); the stage structure of the NAO driver
    follows the description in the JANPA paper (T. Y. Nikolaienko,
    L. A. Bulavin, D. M. Hovorun, Comput. Theor. Chem. 1050, 15 (2014)).
  * Intrinsic atomic orbitals (iano-layers): G. Knizia, J. Chem. Theory
    Comput. 9, 4834 (2013).
  * The C token reader (src/snvs_fast_parse.c) and the Windows console
    helper (src/win_utf8.c) are runSNVS's own code.
================================================================================
