2014-04-03 16:23:27 +02:00
|
|
|
==============
|
|
|
|
Bitmask Module
|
|
|
|
==============
|
|
|
|
|
2014-04-10 22:17:26 +02:00
|
|
|
The central part of this module is the ``bitmasks_module.f90`` file. It contains
|
|
|
|
the constants that will be used to define on which kind of integer the bitmasks
|
|
|
|
will be defined.
|
|
|
|
|
|
|
|
In the program, when an integer ``X`` is used to represent a bit string (like a determinant
|
2014-04-10 22:26:42 +02:00
|
|
|
for example), it should be defined as, for example:
|
2014-04-10 22:17:26 +02:00
|
|
|
|
|
|
|
.. code-block:: fortran
|
|
|
|
|
|
|
|
use bitmasks
|
|
|
|
integer(bit_kind) :: X
|
|
|
|
|
|
|
|
|
|
|
|
The ``bitmasks_routines.irp.f`` contains helper routines to manipulate bitmassk, like
|
|
|
|
transforming a bit string to a list of integers for example.
|
|
|
|
|
|
|
|
Assumptions
|
|
|
|
===========
|
|
|
|
|
|
|
|
.. Do not edit this section. It was auto-generated from the
|
2015-05-27 11:02:13 +02:00
|
|
|
.. NEEDED_MODULES_CHILDREN file by the `update_README.py` script.
|
2014-04-10 22:17:26 +02:00
|
|
|
|
2014-04-17 23:50:51 +02:00
|
|
|
``bit_kind_shift``, ``bit_kind_size`` and ``bit_kind`` are coherent:
|
|
|
|
|
|
|
|
.. code_block:: fortran
|
2014-04-10 22:17:26 +02:00
|
|
|
|
|
|
|
2**bit_kind_shift = bit_kind_size
|
|
|
|
bit_kind = bit_kind_size / 8
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-03 16:23:27 +02:00
|
|
|
|
|
|
|
Needed Modules
|
2014-04-04 00:41:43 +02:00
|
|
|
==============
|
|
|
|
|
2015-07-28 16:45:45 +02:00
|
|
|
.. Do not edit this section It was auto-generated
|
2015-06-04 12:15:54 +02:00
|
|
|
.. by the `update_README.py` script.
|
2014-04-03 16:23:27 +02:00
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
.. image:: tree_dependency.png
|
2015-05-12 10:39:49 +02:00
|
|
|
|
2015-06-24 11:33:27 +02:00
|
|
|
* `MO_Basis <http://github.com/LCPQ/quantum_package/tree/master/src/MO_Basis>`_
|
2014-04-03 16:23:27 +02:00
|
|
|
|
2015-07-28 17:02:00 +02:00
|
|
|
Needed Modules
|
|
|
|
==============
|
|
|
|
.. Do not edit this section It was auto-generated
|
|
|
|
.. by the `update_README.py` script.
|
|
|
|
|
|
|
|
|
|
|
|
.. image:: tree_dependency.png
|
|
|
|
|
|
|
|
* `MO_Basis <http://github.com/LCPQ/quantum_package/tree/master/src/MO_Basis>`_
|
|
|
|
|
|
|
|
Documentation
|
|
|
|
=============
|
|
|
|
.. Do not edit this section It was auto-generated
|
|
|
|
.. by the `update_README.py` script.
|
|
|
|
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`bitstring_to_hexa <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L98>`_
|
|
|
|
Transform a bit string to a string in hexadecimal format for printing
|
2015-04-13 10:44:49 +02:00
|
|
|
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`bitstring_to_list <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L1>`_
|
|
|
|
Gives the inidices(+1) of the bits set to 1 in the bit string
|
2015-04-13 10:44:49 +02:00
|
|
|
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`bitstring_to_str <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L65>`_
|
|
|
|
Transform a bit string to a string for printing
|
|
|
|
|
2015-04-13 10:44:49 +02:00
|
|
|
|
2015-07-20 14:19:11 +02:00
|
|
|
`cas_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L220>`_
|
2015-04-13 10:44:49 +02:00
|
|
|
Bitmasks for CAS reference determinants. (N_int, alpha/beta, CAS reference)
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2014-07-16 15:31:02 +02:00
|
|
|
`cis_ijkl_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L32>`_
|
|
|
|
Bitmask to include all possible single excitations from Hartree-Fock
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`core_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L350>`_
|
2015-07-20 14:19:11 +02:00
|
|
|
Reunion of the inactive, active and virtual bitmasks
|
|
|
|
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`debug_det <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L120>`_
|
|
|
|
Subroutine to print the content of a determinant in '+-' notation and
|
|
|
|
hexadecimal representation.
|
|
|
|
|
|
|
|
|
|
|
|
`debug_spindet <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L155>`_
|
|
|
|
Subroutine to print the content of a determinant in '+-' notation and
|
|
|
|
hexadecimal representation.
|
|
|
|
|
|
|
|
|
2014-05-14 00:01:31 +02:00
|
|
|
`full_ijkl_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L12>`_
|
2014-05-13 13:57:58 +02:00
|
|
|
Bitmask to include all possible MOs
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2015-07-20 14:19:11 +02:00
|
|
|
`generators_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L147>`_
|
|
|
|
Bitmasks for generator determinants.
|
|
|
|
(N_int, alpha/beta, hole/particle, generator).
|
|
|
|
.br
|
|
|
|
3rd index is :
|
|
|
|
.br
|
|
|
|
* 1 : hole for single exc
|
|
|
|
.br
|
|
|
|
* 2 : particle for single exc
|
|
|
|
.br
|
|
|
|
* 3 : hole for 1st exc of double
|
|
|
|
.br
|
|
|
|
* 4 : particle for 1st exc of double
|
|
|
|
.br
|
|
|
|
* 5 : hole for 2nd exc of double
|
|
|
|
.br
|
|
|
|
* 6 : particle for 2nd exc of double
|
|
|
|
.br
|
|
|
|
|
|
|
|
|
|
|
|
`generators_bitmask_restart <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L103>`_
|
2015-04-13 10:44:49 +02:00
|
|
|
Bitmasks for generator determinants.
|
|
|
|
(N_int, alpha/beta, hole/particle, generator).
|
|
|
|
.br
|
2014-06-03 19:14:12 +02:00
|
|
|
3rd index is :
|
2015-04-13 10:44:49 +02:00
|
|
|
.br
|
2014-06-03 19:14:12 +02:00
|
|
|
* 1 : hole for single exc
|
2015-04-13 10:44:49 +02:00
|
|
|
.br
|
|
|
|
* 2 : particle for single exc
|
|
|
|
.br
|
2014-06-03 19:14:12 +02:00
|
|
|
* 3 : hole for 1st exc of double
|
2015-04-13 10:44:49 +02:00
|
|
|
.br
|
2014-06-03 19:14:12 +02:00
|
|
|
* 4 : particle for 1st exc of double
|
2015-04-13 10:44:49 +02:00
|
|
|
.br
|
|
|
|
* 5 : hole for 2nd exc of double
|
|
|
|
.br
|
|
|
|
* 6 : particle for 2nd exc of double
|
|
|
|
.br
|
2014-06-03 19:14:12 +02:00
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2014-07-16 15:31:02 +02:00
|
|
|
`hf_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L44>`_
|
2014-05-13 13:57:58 +02:00
|
|
|
Hartree Fock bit mask
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`i_bitmask_gen <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L364>`_
|
2014-06-03 19:14:12 +02:00
|
|
|
Current bitmask for the generators
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`inact_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L254>`_
|
2015-04-13 10:44:49 +02:00
|
|
|
Bitmasks for the inactive orbitals that are excited in post CAS method
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`inact_virt_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L338>`_
|
2015-07-20 14:19:11 +02:00
|
|
|
Reunion of the inactive and virtual bitmasks
|
|
|
|
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`is_a_two_holes_two_particles <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmask_cas_routines.irp.f#L206>`_
|
|
|
|
Undocumented
|
|
|
|
|
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`list_inact <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L304>`_
|
2015-07-20 14:19:11 +02:00
|
|
|
Undocumented
|
|
|
|
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`list_to_bitstring <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L29>`_
|
|
|
|
Returns the physical string "string(N_int,2)" from the array of
|
|
|
|
occupations "list(N_int*bit_kind_size,2)
|
|
|
|
|
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`list_virt <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L305>`_
|
2015-07-20 14:19:11 +02:00
|
|
|
Undocumented
|
|
|
|
|
|
|
|
|
|
|
|
`n_cas_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L190>`_
|
2015-04-13 10:44:49 +02:00
|
|
|
Number of bitmasks for CAS
|
2014-06-03 19:14:12 +02:00
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2014-07-16 15:31:02 +02:00
|
|
|
`n_generators_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L70>`_
|
2014-06-03 19:14:12 +02:00
|
|
|
Number of bitmasks for generators
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`n_inact_orb <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L256>`_
|
2015-07-20 14:19:11 +02:00
|
|
|
Bitmasks for the inactive orbitals that are excited in post CAS method
|
|
|
|
|
|
|
|
|
2014-05-14 00:01:31 +02:00
|
|
|
`n_int <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L3>`_
|
2014-05-13 13:57:58 +02:00
|
|
|
Number of 64-bit integers needed to represent determinants as binary strings
|
|
|
|
|
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`n_virt_orb <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L257>`_
|
2015-07-20 14:19:11 +02:00
|
|
|
Bitmasks for the inactive orbitals that are excited in post CAS method
|
|
|
|
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`number_of_holes <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmask_cas_routines.irp.f#L1>`_
|
|
|
|
Undocumented
|
2014-06-03 19:14:12 +02:00
|
|
|
|
2014-05-13 13:57:58 +02:00
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`number_of_holes_verbose <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmask_cas_routines.irp.f#L394>`_
|
|
|
|
Undocumented
|
2014-05-13 13:57:58 +02:00
|
|
|
|
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`number_of_particles <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmask_cas_routines.irp.f#L103>`_
|
|
|
|
Undocumented
|
2014-05-24 02:39:18 +02:00
|
|
|
|
2015-05-06 15:05:08 +02:00
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`number_of_particles_verbose <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmask_cas_routines.irp.f#L422>`_
|
|
|
|
Undocumented
|
|
|
|
|
2015-04-13 10:44:49 +02:00
|
|
|
|
|
|
|
`print_det <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L138>`_
|
|
|
|
Subroutine to print the content of a determinant using the '+-' notation
|
2014-05-13 13:57:58 +02:00
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
|
2015-05-06 15:05:08 +02:00
|
|
|
`print_spindet <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L171>`_
|
|
|
|
Subroutine to print the content of a determinant using the '+-' notation
|
|
|
|
|
2014-05-13 13:57:58 +02:00
|
|
|
|
2015-06-04 12:15:54 +02:00
|
|
|
`ref_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L62>`_
|
|
|
|
Reference bit mask, used in Slater rules, chosen as Hartree-Fock bitmask
|
|
|
|
|
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`reunion_of_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L325>`_
|
2015-07-20 14:19:11 +02:00
|
|
|
Reunion of the inactive, active and virtual bitmasks
|
|
|
|
|
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`unpaired_alpha_electrons <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L373>`_
|
2015-07-20 14:19:11 +02:00
|
|
|
Bitmask reprenting the unpaired alpha electrons in the HF_bitmask
|
|
|
|
|
|
|
|
|
2015-07-28 18:57:43 +02:00
|
|
|
`virt_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L255>`_
|
2015-06-04 12:15:54 +02:00
|
|
|
Bitmasks for the inactive orbitals that are excited in post CAS method
|
2014-05-13 13:57:58 +02:00
|
|
|
|