Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
The block2 code provides an efficient highly scalable implementation of the Density Matrix Renormalization Group (DMRG) for quantum chemistry, based on Matrix Product Operator (MPO) formalism.
The block2 code is developed as an improved version of StackBlock, where the low-level structure of the code has been completely rewritten. The block2 code is developed and maintained in Garnet Chan group at Caltech.
Main contributors:
If you find this package useful for your scientific research, please cite the work as:
For parallel ab initio DMRG, please cite
For large site DMRG-MRCI/MRPT, please cite
For DMRG with spin-orbit-coupling, please cite
You can find a bibtex file in CITATIONS.bib
.
One can install block2
using pip
(note: for very new Python versions, the --extra-index-url
option of pip
is required, see below for installing the developement version of block2
):
OpenMP-only version (no MPI dependence)
pip install block2
Hybrid openMP/MPI version (requiring openMPI 5.0.x for block2-mpi >= 0.5.3
or 4.1.x for block2-mpi <= 0.5.2
and block2-mpi <= 0.5.3rc19
)
pip install block2-mpi
Binary format is prepared via pip
for python 3.8, 3.9, 3.10, 3.11, 3.12, and 3.13 with macOS (x86 and arm64, no-MPI), Linux (no-MPI/openMPI), or Windows (x86, no-MPI). If these binaries have some problems, you can use the --no-binary
option of pip
to force building from source (for example, pip install block2 --no-binary block2
).
One should only install one of block2
and block2-mpi
. block2-mpi
covers all features in block2
, but its dependence on mpi library can sometimes be difficult to deal with. Some guidance for resolving environment problems can be found in issue #7 and here.
To install the most recent development version, use:
pip install block2==<version> --extra-index-url=https://block-hczhai.github.io/block2-preview/pypi/
pip install block2-mpi==<version> --extra-index-url=https://block-hczhai.github.io/block2-preview/pypi/
where <version>
can be some development version number like 0.5.3rc20
(see https://github.com/block-hczhai/block2-preview/tags for a complete list of version numbers. The letter p
is not needed). To force reinstalling an updated version, you may consider pip
options --upgrade --force-reinstall --no-deps --no-cache-dir
.
The detailed instructions on manual installation can be found here.
To run a DMRG calculation using the command line interface, please use the following command:
block2main dmrg.conf > dmrg.out
where dmrg.conf
is the StackBlock
style input file and dmrg.out
contains the outputs.
Example input files can be found here.
For DMRGSCF calculation, please have a look at here.
For a list of DMRG references for methods implemented in block2
, see: https://block2.readthedocs.io/en/latest/user/references.html
Documentation: https://block2.readthedocs.io/en/latest/
Tutorial (python interface): https://block2.readthedocs.io/en/latest/tutorial/qc-hamiltonians.html
Example script for models: Fermi-Hubbard, Bose-Hubbard, Hubbard-Holstein, SU(2) Heisenberg, SU(3) Heisenberg, t-J.
Source code: https://github.com/block-hczhai/block2-preview
For a simplified implementation of ab initio DMRG, see pyblock3. Data can be imported and exported between block2
and pyblock3
, see https://github.com/block-hczhai/block2-preview/discussions/35.
A StackBlock 1.5 compatible user interface can be found at pyblock2/driver/block2main
.
This script can work as a replacement of the StackBlock binary, with a few limitations and some extensions.
The format of the input file dmrg.conf
is identical to that of StackBlock 1.5.
See docs/driver.md
and docs/source/user/basic.rst
for detailed documentations for this interface.
Examples using this interface can be found at tests/driver
.
Instuctions for installing the StackBlock code can be found in here. A list of precompiled binaries of StackBlock can be found in here.
FAQs
An efficient MPO implementation of DMRG for quantum chemistry.
We found that block2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.