10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-08 07:03:57 +01:00
quantum_package/src/Bitmask/README.rst

121 lines
4.6 KiB
ReStructuredText
Raw Normal View History

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
2014-05-13 13:57:58 +02:00
.. NEEDED_MODULES file.
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
==============
.. Do not edit this section. It was auto-generated from the
.. NEEDED_MODULES file.
2014-04-03 16:23:27 +02:00
* `AOs <http://github.com/LCPQ/quantum_package/tree/master/src/AOs>`_
* `Electrons <http://github.com/LCPQ/quantum_package/tree/master/src/Electrons>`_
* `Ezfio_files <http://github.com/LCPQ/quantum_package/tree/master/src/Ezfio_files>`_
* `MOs <http://github.com/LCPQ/quantum_package/tree/master/src/MOs>`_
* `Nuclei <http://github.com/LCPQ/quantum_package/tree/master/src/Nuclei>`_
2014-04-17 15:10:26 +02:00
* `Output <http://github.com/LCPQ/quantum_package/tree/master/src/Output>`_
* `Utils <http://github.com/LCPQ/quantum_package/tree/master/src/Utils>`_
2014-04-03 16:23:27 +02:00
2014-05-13 13:57:58 +02:00
Documentation
=============
.. Do not edit this section. It was auto-generated from the
.. NEEDED_MODULES file.
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
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
2014-07-16 15:31:02 +02:00
`generators_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L100>`_
Bitmasks for generator determinants. (N_int, alpha/beta, hole/particle, generator).
3rd index is :
* 1 : hole for single exc
* 1 : particle for single exc
* 3 : hole for 1st exc of double
* 4 : particle for 1st exc of double
* 5 : hole for 2dn exc of double
* 6 : particle for 2dn exc of double
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
2014-07-16 15:31:02 +02:00
`i_bitmask_gen <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L186>`_
Current bitmask for the generators
2014-07-16 15:31:02 +02:00
`i_bitmask_ref <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L194>`_
Current bitmask for the reference
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>`_
Number of bitmasks for generators
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
2014-07-16 15:31:02 +02:00
`n_reference_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L134>`_
Number of bitmasks for reference
2014-07-16 15:31:02 +02:00
`ref_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L62>`_
2014-05-13 13:57:58 +02:00
Reference bit mask, used in Slater rules, chosen as Hartree-Fock bitmask
2014-07-16 15:31:02 +02:00
`reference_bitmask <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks.irp.f#L164>`_
Bitmasks for reference determinants. (N_int, alpha/beta, hole/particle, reference)
2014-05-14 00:01:31 +02:00
`bitstring_to_hexa <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L95>`_
2014-05-13 13:57:58 +02:00
Transform a bit string to a string in hexadecimal format for printing
2014-05-14 00:01:31 +02:00
`bitstring_to_list <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L1>`_
2014-05-13 13:57:58 +02:00
Gives the inidices(+1) of the bits set to 1 in the bit string
2014-05-14 00:01:31 +02:00
`bitstring_to_str <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L62>`_
2014-05-13 13:57:58 +02:00
Transform a bit string to a string for printing
2014-05-14 00:01:31 +02:00
`debug_det <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L117>`_
Undocumented
2014-05-14 00:01:31 +02:00
`list_to_bitstring <http://github.com/LCPQ/quantum_package/tree/master/src/Bitmask/bitmasks_routines.irp.f#L29>`_
2014-05-13 13:57:58 +02:00
return the physical string "string(N_int,2)" from the array of occupations "list(N_int*bit_kind_size,2)
list
<== ipos ==>
|
v
string :|------------------------|-------------------------|------------------------|
<==== bit_kind_size ====> <==== bit_kind_size ====> <==== bit_kind_size ====>
{ iint } { iint } { iint }