From 9dbe1bb1203c899cd49bb014be328961658098fb Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Sun, 14 Jul 2024 19:56:39 +0200 Subject: [PATCH 1/2] Rename Quantomatic links to zxcalc. --- README.md | 6 +++--- pyproject.toml | 8 ++++---- test/test_mainwindow.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4bfe1a23..4d91f3ee 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -The [ZX-calculus](http://zxcalculus.com) gives us a handy way to represent and work with quantum computations. ZXLive is an interactive tool for working with ZX. Draw graphs or load circuits and apply ZX rules. Intended for experimenting, building proofs, helping to write papers, showing off, or simply learning about ZX and quantum computing. It is powered by the [pyzx](https://github.com/Quantomatic/pyzx) open source library under the hood. The documentation is available at https://zxlive.readthedocs.io/ +The [ZX-calculus](http://zxcalculus.com) gives us a handy way to represent and work with quantum computations. ZXLive is an interactive tool for working with ZX. Draw graphs or load circuits and apply ZX rules. Intended for experimenting, building proofs, helping to write papers, showing off, or simply learning about ZX and quantum computing. It is powered by the [pyzx](https://github.com/zxcalc/pyzx) open source library under the hood. The documentation is available at https://zxlive.readthedocs.io/ -This project is in a pretty early stage, with lots more to come. Have a look at the [Issue Tracker](https://github.com/Quantomatic/zxlive/issues) to see what's in the pipeline. +This project is in a pretty early stage, with lots more to come. Have a look at the [Issue Tracker](https://github.com/zxcalc/zxlive/issues) to see what's in the pipeline. ## Instructions To install from source, you need Python >= 3.9 and pip. If you have those, just run: - git clone https://github.com/Quantomatic/zxlive.git + git clone https://github.com/zxcalc/zxlive.git cd zxlive pip install . diff --git a/pyproject.toml b/pyproject.toml index cf6a15d8..e4b4b663 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ classifiers = [ ] dependencies = [ "PySide6 >= 6.7.2", - "pyzx @ git+https://github.com/Quantomatic/pyzx.git", + "pyzx @ git+https://github.com/zxcalc/pyzx.git", "networkx", "numpy", "shapely", @@ -52,9 +52,9 @@ doc = [ ] [project.urls] -Homepage = "https://github.com/Quantomatic/zxlive" -Repository = "https://github.com/Quantomatic/zxlive" -Issue-Tracker = "https://github.com/Quantomatic/zxlive/issues" +Homepage = "https://github.com/zxcalc/zxlive" +Repository = "https://github.com/zxcalc/zxlive" +Issue-Tracker = "https://github.com/zxcalc/zxlive/issues" [tool.setuptools] packages = [ diff --git a/test/test_mainwindow.py b/test/test_mainwindow.py index d43771d0..1caf959e 100644 --- a/test/test_mainwindow.py +++ b/test/test_mainwindow.py @@ -119,7 +119,7 @@ def check_file_format(filename: str) -> None: def test_proof_cleanup_before_close(app: MainWindow, qtbot: QtBot) -> None: # Regression test to check that the app doesn't crash when closing a proof tab with a derivation in progress, # due to accessing the graph after it has been deallocated. - # See https://github.com/Quantomatic/zxlive/issues/218 for context. + # See https://github.com/zxcalc/zxlive/issues/218 for context. assert app.active_panel is not None assert isinstance(app.active_panel, GraphEditPanel) qtbot.mouseClick(app.active_panel.start_derivation, QtCore.Qt.MouseButton.LeftButton) From 71e2bb4b3306c79d31c874efdd61607f29cb2365 Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Mon, 15 Jul 2024 10:48:55 +0200 Subject: [PATCH 2/2] Also replace 'quantomatic' with 'zxcalc' in myappid. --- zxlive/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zxlive/app.py b/zxlive/app.py index 8f678d5c..051c4806 100644 --- a/zxlive/app.py +++ b/zxlive/app.py @@ -32,7 +32,7 @@ import os if os.name == 'nt': import ctypes - myappid = 'quantomatic.zxlive.zxlive.1.0.0' # arbitrary string + myappid = 'zxcalc.zxlive.zxlive.1.0.0' # arbitrary string ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid) # type: ignore