Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPECOS #53

Closed
wants to merge 40 commits into from
Closed

PyPECOS #53

wants to merge 40 commits into from

Conversation

ciaranra
Copy link
Member

@ciaranra ciaranra commented Mar 9, 2024

Restructures the project

ciaranra and others added 30 commits December 12, 2023 17:37
* Added .sim_name to QOps. Added angle info to QOp.angle

* Added code to identify Clifford gates from more general gates

* Added conversion to Clifford support for RZ , RZZ, and R1XY

* Tweaking generic machine to clear state

* Add test of operation type before running qsims.

* Initial SLR files

* adding back "maturin" branch + recent updates

* Adding physical gates needed to build up circuits.

* Shifting it back from pypecos/ to python/ for now.

* Adding more crate stubs

* Moving Cython/Cpp out to own dirs

* ruff/black reformatting

* rs cointoss sim + workspace tweak

* pyproject cleanup

* Initial Cython compilation.

* Rust linting + linting reqs

* reformatting/liniting

* Moved sim code to sim.rs for pyo3pecos

* switched from pecos-pyo3 to pyo3pecos

* Fix pyo3pecos import issue.

* Preventing ruff issue with using local import for pyo3pecos

* restructure cpp/ and remove unneeded .gitignores

* pecos-cli stub

* getting cysparsesim to compile with cpp seperated

* Adding general Instr type and list types

* Adding slr code

* Updated linting/formatting

* Updating lint/formatting

* Add some Makefiles

* fix github workflow requirements

* fix github workflow python installation directory

* fix github workflow fix python test directory

* bump python action from v4 to v5

* Cleaning up cython and improving makefile clean

* Got cypecos to install correctly.

* Moving slr down to reduce nesting

* Black update

* Move cysparsesim to cypecos.cysparsesim

* Fixing linting/formating

* Moving linting/formatting settings to root

* Cleaning up makefiles, pyroject files, etc.

* Moving ruff settings to fix mac issue

* Simplifying black settings

* Simplifying ruff settings

* Simplifying ruff settings for cython

* Removing tool.ruff

* attempting full ruff root simplification again

* Updating ruff pre-commit

* ruff fix for WIndows & Mac

* Fix weird ruff formatting

* First attempt at building cpp sparsesim with Rust

* Improve makefile build and test + added __version__ to __all__

* fix slr __version__

* Creating a slr.std folder to hold common extension to core to the DSL

* Updating makefile to make cleaning less drastic

* Fix slr import issue.

* maturin workflow

* Including build requirement

* Moving building wheels before pytest

* Simplier maturin workflow

* Adding py 3.11 and 3.12 to workflow.

* Adding pre-commit checks to the workflow

* Adding running pytest to linux workflow

* Setting up a venv for maturin in linux workflow

* Making the venv persistent in linux workflow

* Isolating the venv for testing.

* Reusing built wheel for test purposes.

* Have venv install wheel of the correct python version.

* Run pytest according to maturin

* Using the original linux workflow from maturin

* Adding debug info to check linux pytest workflow

* For pip to not look in pypi

* fix pip typo

* Force specific wheel to install

* Forcing install of wheel for other linux versions

* Refining workflow for linux aarch64

* Adding additional build requirements for ppc64le

* Refinements of using prebuilt packages for linux workflow

* Simplifying workflow

* opening up available archs

* Restricting Linux version to most common systems.

* fixing action typo

* Add pytest to Windows workflow

* Attempting to use prebuilt binaries for Windows pytest workflow

* Adding pytest for macos workflow

* Adding optional_dependency tests for linux workflow

* Adding pytest optional_dependency to other OS workflows

* Adding py3.11, py3.12 and running pre-commits for Linux workflow.

* Reverses different python version for Linux

* Adding different python version to linux workflow again

* Adding pypi submission workflow job

* Fixing std import

* Adding in duration for MOps in PyPMIR

* Polishing makefile to work with Windows

* Comment out rust+cpp build for now

---------

Co-authored-by: Ciaran Ryan-Anderson <[email protected]>
@ciaranra ciaranra changed the title Pypecos PyPECOS Mar 9, 2024
@ciaranra
Copy link
Member Author

This is essentially the old version of PR #77

@ciaranra ciaranra mentioned this pull request Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant