{"id":40206894,"url":"https://github.com/teamgraphix/graphix","last_synced_at":"2026-01-19T21:01:49.507Z","repository":{"id":148571837,"uuid":"573466585","full_name":"TeamGraphix/graphix","owner":"TeamGraphix","description":"measurement-based quantum computing (MBQC) library","archived":false,"fork":false,"pushed_at":"2026-01-12T09:27:26.000Z","size":2566,"stargazers_count":100,"open_issues_count":28,"forks_count":41,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-12T18:41:12.378Z","etag":null,"topics":["graph-states","mbqc","quantum","quantum-computing","quantum-programming-language","unitaryhack"],"latest_commit_sha":null,"homepage":"https://graphix.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TeamGraphix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-02T14:29:12.000Z","updated_at":"2026-01-12T09:27:30.000Z","dependencies_parsed_at":"2023-10-16T20:58:21.900Z","dependency_job_id":"131972fd-8908-47fe-97ae-44eb49547831","html_url":"https://github.com/TeamGraphix/graphix","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/TeamGraphix/graphix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamGraphix%2Fgraphix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamGraphix%2Fgraphix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamGraphix%2Fgraphix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamGraphix%2Fgraphix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeamGraphix","download_url":"https://codeload.github.com/TeamGraphix/graphix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamGraphix%2Fgraphix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28585199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["graph-states","mbqc","quantum","quantum-computing","quantum-programming-language","unitaryhack"],"created_at":"2026-01-19T21:01:27.373Z","updated_at":"2026-01-19T21:01:49.500Z","avatar_url":"https://github.com/TeamGraphix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/TeamGraphix/graphix/raw/master/docs/logo/black_with_name.png\" alt=\"logo\" width=\"550\"\u003e\n\n![PyPI](https://img.shields.io/pypi/v/graphix)\n![License](https://img.shields.io/github/license/TeamGraphix/graphix)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/graphix)\n[![Downloads](https://static.pepy.tech/badge/graphix)](https://pepy.tech/project/graphix)\n[![Unitary Foundation](https://img.shields.io/badge/Supported%20By-Unitary%20Foundation-brightgreen.svg)](https://unitary.foundation/)\n[![DOI](https://zenodo.org/badge/573466585.svg)](https://zenodo.org/badge/latestdoi/573466585)\n[![CI](https://github.com/TeamGraphix/graphix/actions/workflows/ci.yml/badge.svg)](https://github.com/TeamGraphix/graphix/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/TeamGraphix/graphix/graph/badge.svg?token=E41MLUTYXU)](https://codecov.io/gh/TeamGraphix/graphix)\n[![Documentation Status](https://readthedocs.org/projects/graphix/badge/?version=latest)](https://graphix.readthedocs.io/en/latest/?badge=latest)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\n**Graphix** is a measurement-based quantum computing (MBQC) software package, featuring\n\n- the measurement calculus framework with integrated graphical rewrite rules for Pauli measurement preprocessing\n- circuit-to-pattern transpiler, graph-based deterministic pattern generator and manual pattern generation\n- flow, gflow and pauliflow finding tools and graph visualization based on flows (see below)\n- statevector, density matrix and tensornetwork pattern simulation backends\n- QPU interface and fusion network extraction tool\n- _new_: [efficient implementation of fast O(N^3) pauli-flow finding algorithm](https://github.com/TeamGraphix/graphix/pull/337)\n\n## Installation\n\nInstall `graphix` with `pip`:\n\n```bash\npip install graphix\n```\n\nInstall together with [extra packages](https://github.com/TeamGraphix/graphix/blob/master/requirements-extra.txt):\n\n```bash\npip install graphix[extra]\n```\n\n\n## Using graphix\n\n### generating pattern from a circuit\n\n```python\nfrom graphix import Circuit\n\ncircuit = Circuit(4)\ncircuit.h(0)\n...\npattern = circuit.transpile().pattern\npattern.standardize()\npattern.shift_signals()\npattern.draw_graph(flow_from_pattern=False)\n```\n\n\u003cimg src=\"https://github.com/TeamGraphix/graphix/assets/33350509/de17c663-f607-44e2-945b-835f4082a940\" alt=\"graph_flow\" width=\"750\"\u003e\n\n\u003csmall\u003eSee [our example code](examples/qaoa.py) to generate this pattern. Arrows indicate the [_causal flow_](https://journals.aps.org/pra/abstract/10.1103/PhysRevA.74.052310) of MBQC and dashed lines are the other edges of the graph. the vertical dashed partitions and the labels 'l:n' below indicate the execution _layers_ or the order in the graph (measurements should happen from left to right, and nodes in the same layer can be measured simultaneously), based on the partial order associated with the (maximally-delayed) flow. \u003c/small\u003e\n\n### preprocessing Pauli measurements (Clifford gates)\n\n```python\npattern.perform_pauli_measurements()\npattern.draw_graph()\n```\n\n\u003cimg src=\"https://github.com/TeamGraphix/graphix/assets/33350509/3c30a4c9-f912-4a36-925f-2ff446a07c68\" alt=\"graph_gflow\" width=\"140\"\u003e\n\n\u003csmall\u003e(here, the visualization is based on [_generalized flow_](https://iopscience.iop.org/article/10.1088/1367-2630/9/8/250)).\u003c/small\u003e\n\n### simulating the pattern\n\n```python\nstate_out = pattern.simulate_pattern(backend=\"statevector\")\n```\n\n### and more..\n\n- See [demos](https://graphix.readthedocs.io/en/latest/gallery/index.html) showing other features of `graphix`.\n- Read the [tutorial](https://graphix.readthedocs.io/en/latest/tutorial.html) for more usage guides.\n- For theoretical background, read our quick introduction into [MBQC](https://graphix.readthedocs.io/en/latest/intro.html) and [LC-MBQC](https://graphix.readthedocs.io/en/latest/lc-mbqc.html).\n- Full API docs is [here](https://graphix.readthedocs.io/en/latest/references.html).\n\n## Related packages\n\n- [graphix-stim-backend](https://github.com/thierry-martinez/graphix-stim-backend): `stim` backend for efficient Clifford pattern simulation\n- [graphix-symbolic](https://github.com/TeamGraphix/graphix-symbolic): parameterized patterns with symbolic simulation\n- [graphix-ibmq](https://github.com/TeamGraphix/graphix-ibmq): pattern transpiler for IBMQ / `qiskit`\n- [graphix-perceval](https://github.com/TeamGraphix/graphix-perceval): pattern transpiler for Quandela's `perceval` simulator and QPU\n- [graphix-qasm-parser](https://github.com/TeamGraphix/graphix-qasm-parser): a plugin for parsing OpenQASM circuit.\n- [swiflow](https://github.com/TeamGraphix/swiflow): rust-based implementation of flow-finding algorithms\n\n### Projects using `graphix`\n\n- [veriphix](https://github.com/qat-inria/veriphix): verified blind quantum computation and benchmarking.\n- [optyx](https://github.com/quantinuum-dev/optyx): ZX-based software for networked quantum computing\n- [graphqomb](https://github.com/TeamGraphix/graphqomb): modular graph state compiler for fault-tolerant MBQC and more.\n\n## Citing\n\n\u003e Zenodo: https://doi.org/10.5281/zenodo.7861382\n\u003e\n\u003e arXiv: https://doi.org/10.48550/arXiv.2212.11975\n\n## Contributing\n\nWe use [GitHub issues](https://github.com/TeamGraphix/graphix/issues) for tracking feature requests and bug reports.\n\n## Discussion channels\n\n- Our Slack channel, for regular discussions and questions: https://graphix-org.slack.com\n\n- Please visit [Unitary Foundation's Discord server](https://discord.com/servers/unitary-foundation-764231928676089909), where you can find a channel for `graphix`.\n\n## Maintainers (alphabetical order)\n\n- Masato Fukushima (University of Tokyo, Fixstars Amplify)\n- Maxime Garnier (Inria Paris)\n- Emlyn Graham (Inria Paris)\n- Thierry Martinez (Inria Paris)\n- Pranav Nair (Inria Paris)\n- Sora Shiratani (University of Tokyo, Fixstars Amplify)\n- Shinichi Sunami (University of Oxford)\n- Mateo Uldemolins (Inria Paris)\n\n## Acknowledgements\n\nGraphix was founded in 2022 by Shinichi Sunami (University of Oxford) and Masato Fukushima (University of Tokyo, Fixstars Amplify) with support from [Fixstars Amplify](https://amplify.fixstars.com/en/) and [Unitary Foundation](https://unitary.foundation/grants.html), and later joined by Daichi Sasaki, Yuki Watanabe and Sora Shiratani (University of Tokyo, Fixstars Amplify).\n\n\u003cp\u003e\n\u003ca href=\"https://unitary.foundation/grants/\" style=\"margin-right: 30px;\"\u003e\n\u003cimg src=\"https://unitary.foundation/images/UFoundation.png\" alt=\"Unitary Foundation logo\" width=\"180\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"https://amplify.fixstars.com/en/\" style=\"margin-right: 30px;\"\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/ffbf7ff6-14b8-448c-86a1-39583f30a0f4\" alt=\"Fixstars Amplify logo\" width=\"230\"/\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\nSince 2023, Graphix team is joined by Qode group of the [QAT](https://qat.inria.fr/presentation/) team, co-hosted by [Inria](https://www.inria.fr/) and [ENS](https://www.ens.psl.eu/), who develops and maintains the library.\n\n\u003cp\u003e\n\u003ca href=\"https://www.inria.fr/\" style=\"margin-right: 30px;\"\u003e\n  \u003cimg src=\"https://www.inria.fr/sites/default/files/2025-04/RF-Inria_Logo_RVB.jpg\" alt=\"Inria logo\" width=\"150\"/\u003e\n\u003c/a\u003e\n\u0026nbsp;\n\u003ca href=\"https://www.ens.psl.eu/\" style=\"margin-right: 30px;\"\u003e\n  \u003cimg src=\"https://www.ens.psl.eu/sites/default/files/logo_ens_psl_en_png.png\" alt=\"ENS PSL logo\" width=\"150\"/\u003e\n\u003c/a\u003e\n\u0026nbsp;\n\u003ca href=\"https://qat.inria.fr/presentation/\" style=\"margin-right: 30px;\"\u003e\n  \u003cimg src=\"https://qat.inria.fr/assets/icons/icon-512x512.png\" alt=\"QAT logo\" width=\"90\"/\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\nSpecial thanks also to [HQI](https://www.hqi.fr).\n\n\u003ca href=\"https://www.hqi.fr\"\u003e\n  \u003cimg src=\"https://www.hqi.fr/wp-content/uploads/2022/06/logo_HQI_RVB.jpg\" alt=\"HQI logo\" width=\"150\"/\u003e\n\u003c/a\u003e\n\n\n\n## License\n\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamgraphix%2Fgraphix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamgraphix%2Fgraphix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamgraphix%2Fgraphix/lists"}