{"id":25495538,"url":"https://github.com/altaris/pauli-coloring-benchmark","last_synced_at":"2025-07-31T21:06:59.381Z","repository":{"id":275243546,"uuid":"914638229","full_name":"altaris/pauli-coloring-benchmark","owner":"altaris","description":"Or \"colouring\" if you prefer 🎨","archived":false,"fork":false,"pushed_at":"2025-02-15T04:51:51.000Z","size":2654,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T05:24:01.340Z","etag":null,"topics":["benchmark","hamiltonian","qiskit","quantum-computing","trotter-suzuki"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/altaris.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-10T02:02:29.000Z","updated_at":"2025-02-15T04:51:19.000Z","dependencies_parsed_at":"2025-02-01T05:32:03.592Z","dependency_job_id":null,"html_url":"https://github.com/altaris/pauli-coloring-benchmark","commit_stats":null,"previous_names":["altaris/pauli-coloring-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altaris%2Fpauli-coloring-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altaris%2Fpauli-coloring-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altaris%2Fpauli-coloring-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altaris%2Fpauli-coloring-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altaris","download_url":"https://codeload.github.com/altaris/pauli-coloring-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576839,"owners_count":19662112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark","hamiltonian","qiskit","quantum-computing","trotter-suzuki"],"created_at":"2025-02-19T00:37:21.604Z","updated_at":"2025-07-31T21:06:59.372Z","avatar_url":"https://github.com/altaris.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pauli Coloring Benchmark\n\n![Python 3.13](https://img.shields.io/badge/python-3.13-blue?logo=python)\n[![License](https://img.shields.io/badge/license-MIT-green)](https://choosealicense.com/licenses/mit/)\n[![Code style](https://img.shields.io/badge/style-ruff-yellow?logo=ruff)](https://docs.astral.sh/ruff/)\n[![Documentation](https://img.shields.io/badge/Documentation-here-pink)](https://cedric.hothanh.fr/pauli-coloring-benchmark/pcb.html)\n\n## How to do the thing?\n\n### Prep. work\n\n1. Install [`uv`](https://docs.astral.sh/uv/).\n\n   ```sh\n   curl -LsSf https://astral.sh/uv/install.sh | sh\n   ```\n\n2. Install dependencies:\n\n   ```sh\n   uv sync\n   ```\n\n3. Build binaries (requires `gcc`). This is only required if you want to use the\n   `degree_c` reordering method.\n\n   ```sh\n   make dll\n   ```\n\n4. Build the index. This is a SQlite3 file that lists all the Hamiltonian from\n   all the `hdf5` files present in the HamLib website.\n\n   ```sh\n   uv run python -m pcb build-index out/index.db\n   ```\n\n5. Download the Hamiltonian ZIP files.\n\n   ```sh\n   uv run python -m pcb download out/index.db out/ham\n   # it is also possible to apply a filter to only download files in a given subdirectory\n   uv run python -m pcb download out/index.db out/ham --prefix binaryoptimization/maxcut\n   ```\n\n### Reordering benchmark\n\n1. Run the benchmark.\n\n   ```sh\n   uv run python -m pcb benchmark-reorder out/index.db out/ham out/reordering\n   # or\n   uv run python -m pcb benchmark-reorder out/index.db out/ham out/reordering --prefix binaryoptimization/maxcut --n-trials 1 --n-jobs 200 --methods none,saturation,misra_gries --min-qubits 32 --max-qubits 127 --min-terms 16 --max-terms 256\n   ```\n\n2. You can obtain temporary consolidated results during the benchmark by running:\n\n   ```sh\n   uv run python -m pcb consolidate out/reordering\n   ```\n\n   This is automatically done at the end of the benchmark.\n\n## More help\n\n```sh\nuv run python -m pcb --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltaris%2Fpauli-coloring-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltaris%2Fpauli-coloring-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltaris%2Fpauli-coloring-benchmark/lists"}