Skip to main content

String-based Pauli algebraic manipulations

Project description

logo

PyPI - Python Version Static Badge Static Badge

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:

  1. removing unused citations,
  2. reordering the remaining ones to match their order of appearance in the .tex file.

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

  1. Prepare the input files (e.g., by downloading them from Overleaf).

  2. Run the command to generate a new .bib file (for example, you may name it ref_opt.bib):

           bibopt main.tex ref.bib ref_opt.bib

  3. Use the Cleaned Pauli Algebra
    Replace ref.bib with ref_opt.bib in 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

stringebraic-0.0.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stringebraic-0.0.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for stringebraic-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d8eedabde1750b680491e04faa1ef4005d086cb4d2792451b3a5bfe921c7f594
MD5 4ae9a1ad185ad501d629cec79ce77a95
BLAKE2b-256 7ccb58d7f283487730414372cf12847c6b03acaa96188b57d8bc5709571da2af

See more details on using hashes here.

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

Hashes for stringebraic-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 92736d3ae4124b4ea43ca6491ec642191e9d1e977fb77faeb4080cbbded77728
MD5 d762f5b03b186a3cab0027663f2cac63
BLAKE2b-256 a34a325cb47e7da4f8803666162063df540e6a16f9247b8cefe98208547f0bb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page