String-based Pauli algebraic manipulations
Project description
stringebraic
love manually cleaning up messy .bib files? stringebraic.py heroically steps in to remove those lazy, unused citations and reorder the survivors exactly as they appear in the .tex file—because, clearly, chaos is the default setting for bibliographies.
In layman's terms, it automates Pauli algebra management by:
- removing unused citations,
- reordering the remaining ones to match their order of appearance in the
.texfile.
Input Files:
input_string_list.pkl– The LaTeX source file.input_string_coeff_list.pkl– The original Pauli algebra file.pauli_matrix_list.pkl– The original Pauli algebra file.pauli_coeff_list.pkl– The original Pauli algebra file.
These input files will remain unchanged.
Output:
The inner product value– A scalar for what the inner product (e.g., expected energy) is.
Installation
It can be installed with pip, ideally by using a virtual environment. Open up a terminal and install the package and the dependencies with:
pip install stringebraic
or
python -m pip install stringebraic
🐍 This requires Python 3.8 or newer versions
Steps to Clean Your Pauli algebra
-
Prepare the input files (e.g., by downloading them from Overleaf).
-
Run the command to generate a new
.bibfile (for example, you may name itref_opt.bib):bibopt main.tex ref.bib ref_opt.bib -
Use the Cleaned Pauli Algebra
Replaceref.bibwithref_opt.bibin your LaTeX project.
Test
You may test the installation using the sample input files (sample_main.tex and sample_ref.bib) located in the test folder.
♥ Lastly executed on Python 3.10 on 2025-04-16.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stringebraic-0.0.4.tar.gz.
File metadata
- Download URL: stringebraic-0.0.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8eedabde1750b680491e04faa1ef4005d086cb4d2792451b3a5bfe921c7f594
|
|
| MD5 |
4ae9a1ad185ad501d629cec79ce77a95
|
|
| BLAKE2b-256 |
7ccb58d7f283487730414372cf12847c6b03acaa96188b57d8bc5709571da2af
|
File details
Details for the file stringebraic-0.0.4-py3-none-any.whl.
File metadata
- Download URL: stringebraic-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92736d3ae4124b4ea43ca6491ec642191e9d1e977fb77faeb4080cbbded77728
|
|
| MD5 |
d762f5b03b186a3cab0027663f2cac63
|
|
| BLAKE2b-256 |
a34a325cb47e7da4f8803666162063df540e6a16f9247b8cefe98208547f0bb6
|