Skip to main content

graph2mat: Equivariant matrices meet machine learning

graph2mat_overview

The aim of graph2mat is to pave your way into meaningful science by providing the tools to interface to common machine learning frameworks (e3nn, pytorch) to learn equivariant matrices.

Documentation

It also provides a set of tools to facilitate the training and usage of the models created using the package:

  • Training tools: It contains custom pytorch_lightning modules to train, validate and test the orbital matrix models.
  • Server: A production ready server (and client) to serve predictions of the trained models. Implemented using fastapi.
  • Siesta: A set of tools to interface the machine learning models with SIESTA. These include tools for input preparation, analysis of performance...

The package also implements a command line interface (CLI): graph2mat. The aim of this CLI is to make the usage of graph2mat's tools as simple as possible. It has two objectives:

  • Make life easy for the model developers.
  • Facilitate the usage of the models by non machine learning scientists, who just want good predictions for their systems.

Installation

It can be installed with pip. Adding the tools extra will also install all the dependencies needed to use the tools provided.

pip install graph2mat[tools]

If you want to use graph2mat with e3nn you can also ask for the e3nn extra dependencies:

pip install graph2mat[tools,e3nn]

What is an equivariant matrix?

water_equivariant_matrix

Contributions

We are very open to suggestions, contributions, discussions...

We are looking forward to your contributions!

The graph2mat package was originally created by Peter Bjørn Jorgensen (@peterbjorgensen) and Pol Febrer (@pfebrer) in the frame of a collaboration to machine learn density matrices.

Since then, the following users have contributed to the code:

Citation

If you use graph2mat for one of your works, please cite our original paper:

@article{febrer2025graph2mat,
  title={Graph2Mat: universal graph to matrix conversion for electron density prediction},
  author={Febrer, Pol and J{\o}rgensen, Peter Bj{\o}rn and Pruneda, Miguel and Garc{\'\i}a, Alberto and Ordej{\'o}n, Pablo and Bhowmik, Arghya},
  journal={Machine Learning: Science and Technology},
  volume={6},
  number={2},
  pages={025013},
  year={2025},
  publisher={IOP Publishing}
}

We'll be very happy to see what you have done with it :)

Metadata

Release files for graph2mat 0.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graph2mat 0.0.14
File Size Uploaded Provenance Actions
graph2mat-0.0.14.tar.gz 1.3 MB Without provenance Details for graph2mat-0.0.14.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for graph2mat 0.0.14
File Actions
graph2mat-0.0.14-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for graph2mat-0.0.14-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
graph2mat-0.0.14-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for graph2mat-0.0.14-cp313-cp313-macosx_11_0_arm64.whl
graph2mat-0.0.14-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for graph2mat-0.0.14-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
graph2mat-0.0.14-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for graph2mat-0.0.14-cp312-cp312-macosx_11_0_arm64.whl
graph2mat-0.0.14-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for graph2mat-0.0.14-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
graph2mat-0.0.14-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for graph2mat-0.0.14-cp311-cp311-macosx_11_0_arm64.whl
graph2mat-0.0.14-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for graph2mat-0.0.14-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
graph2mat-0.0.14-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for graph2mat-0.0.14-cp310-cp310-macosx_11_0_arm64.whl
graph2mat-0.0.14-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for graph2mat-0.0.14-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
graph2mat-0.0.14-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for graph2mat-0.0.14-cp39-cp39-macosx_11_0_arm64.whl

Total release size: 5.3 MB

Release files / graph2mat-0.0.14.tar.gz

Download URL graph2mat-0.0.14.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
21b07643cf75b7dcdcfabfa867057fcf6d3d3a4828ed053a2909d7ca4edb3caf
BLAKE2b-256 checksum
How to use checksums
ca2cd52f2e08a908d01f3f7f78589a2b137c982508dea7ad4fd0982478bdf4cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL graph2mat-0.0.14-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 439.6 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e7a8794d41819f5280c9be85864cbb25deb55067d4867770cf56ccf5b4db7257
BLAKE2b-256 checksum
How to use checksums
2554a48d2f972381326b7d1890eb34465fe02d91738c46c24e395e5cfcbefc1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp313-cp313-macosx_11_0_arm64.whl

Download URL graph2mat-0.0.14-cp313-cp313-macosx_11_0_arm64.whl
Size 363.7 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
503adc044127f430b4a5ebccbd0351f97bf372c37e330ff1e8253d7473790c87
BLAKE2b-256 checksum
How to use checksums
bb26675ace43af1f9affc8d3bf6090f5613f9d4a0c7cc9b349ee0e31d1676a1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL graph2mat-0.0.14-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 439.6 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5f68dda150ee6c3de3a9ab40012fb22c25699acc8d4b1b82e92ecd5e43ba4fc9
BLAKE2b-256 checksum
How to use checksums
29b752bc4944d8156fa3ef47e2f3c1126e7ecb488f1a0be1e2c95e2c1b9782a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp312-cp312-macosx_11_0_arm64.whl

Download URL graph2mat-0.0.14-cp312-cp312-macosx_11_0_arm64.whl
Size 364.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6aae983e592152760c21c231c25805c7c2a67ee763d339cdb0bb3e28b6f06cd9
BLAKE2b-256 checksum
How to use checksums
9ceb81d6c491b98524a2e1f2fe029270a90009e7f9823572508b1b7848dc5352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL graph2mat-0.0.14-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 445.0 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8b00f124efa8d0d9d5b3ea483b9badfc17c270c29b25122812718a96d0554c63
BLAKE2b-256 checksum
How to use checksums
8b5bf1940e365be6c5cdcf8368f269c3d606c9018794a7d3080ab5e4e58f8427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp311-cp311-macosx_11_0_arm64.whl

Download URL graph2mat-0.0.14-cp311-cp311-macosx_11_0_arm64.whl
Size 363.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4b62c9c95266330e68471223b914667ad8eee79d1d5f505f3d36daea6378eaf2
BLAKE2b-256 checksum
How to use checksums
cf78f2629fc65ae4b270361f2f47d603e45b166506046779a90f7759d34233ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL graph2mat-0.0.14-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 441.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
40035a89cd7588ece6b194b6219d28de345203c242c28a171107f523146fc992
BLAKE2b-256 checksum
How to use checksums
83e9d109ff924afc9c2b70e54510dd59ee01851be61101b352950eb966761bd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp310-cp310-macosx_11_0_arm64.whl

Download URL graph2mat-0.0.14-cp310-cp310-macosx_11_0_arm64.whl
Size 366.1 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9b3f4e2d06a2019f41d5bf232331a0ad96d2b4086e1169f2ec96090bc8d191f9
BLAKE2b-256 checksum
How to use checksums
54ef8dffe54f250d105d6717c31e0ce184ce885a2a776e72e63ccf06e265848d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL graph2mat-0.0.14-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 440.6 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9d5c33240f48f7f423e1d7b382427c0772a04813222a73f707bd011a2285671d
BLAKE2b-256 checksum
How to use checksums
247495106e26cc12a6794275388c490b0d3c39061c6a308e3ab238f8e1d08b31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Release files / graph2mat-0.0.14-cp39-cp39-macosx_11_0_arm64.whl

Download URL graph2mat-0.0.14-cp39-cp39-macosx_11_0_arm64.whl
Size 366.7 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e60b9afddc93e76ad8ea2e39682f47875f6f5a10f147dcdd67e99e92b81c3838
BLAKE2b-256 checksum
How to use checksums
14937755bf8219e1bd2d784488caa2a8e0ec938f9ff9f9026287b07a6708b9c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.18

Security for graph2mat 0.0.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page