mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-20 14:58:19 +02:00
8f89e3d239
* Documentation * Improved qp_set_frozen_core * Changed all ishft * New install script OK * Variable level shift in HF
36 lines
787 B
ReStructuredText
36 lines
787 B
ReStructuredText
.. _bitmask:
|
|
|
|
.. program:: bitmask
|
|
|
|
.. default-role:: option
|
|
|
|
==============
|
|
Bitmask Module
|
|
==============
|
|
|
|
The central part of this module is the :file:`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, to represent a determinant as a pair of bitstrings,
|
|
the determinant should be defined as
|
|
|
|
.. code-block:: fortran
|
|
|
|
use bitmasks
|
|
integer(bit_kind) :: determinant(N_int,2)
|
|
|
|
|
|
:file:`bitmasks_routines.irp.f` contains helper routines to manipulate bitmask, like
|
|
transforming a bit string to a list of integers for example.
|
|
|
|
|
|
`bit_kind_shift`, `bit_kind_size` and `bit_kind` are supposed to be consistent::
|
|
|
|
2**bit_kind_shift = bit_kind_size
|
|
bit_kind = bit_kind_size / 8
|
|
|
|
|
|
|
|
|