Refactor n memory#17
Closed
ciaranra wants to merge 337 commits into
Closed
Conversation
* Fixed issue with yielding instructions of blocks * bump to 0.5.0.dev3 + avoiding [] buffer yielding * Fixing linting because my pre-commit hook was off
#19) * add external phir dependency + remove Python 3.8 + test both required and optional dependencies * Updating workflow to include diff OSs. Added skipping of tests based on optional dependency OS/Python version support. * Skip wasmer tests on for Python >= 3.11 * Skipping test if Wasmer could not be imported. * More robust method for skipping tests of Wasmer due to unsupported systems * Add simple test of extern phir * Requirement update to phir 0.1.6 * Included PHIR model validation and related tests * small bump for requirements.txt --------- Co-authored-by: Ciaran Ryan-Anderson <ciaranra@gmail.com>
* Added support for qparallel. * Bumping to 0.5.0.dev4
* Fixed buggy yielding of Sequence/QParallel blocks * Add a test of the sequence of op buffers. * Reworked recursive iteration through blocks to be more elegant * Marked test using state-vec sim as optional dependency * Added Clifford Bell qparallel test and silence tz warning * Bumping version to 0.5.0.dev5 and updating requirements
* Fixing support of PHIR's multi-assignment * bump version to 0.5.0.dev6
…s#38) * Initial support for barriers (skips barriers for now). * Additional barrier testing and associated fixes
* updating requirements to phir ~= 0.3.0 * Fixes rare test error * Bumping version to 0.5.0.dev8 and updating requirements.txt
* Various small updates of docs including autogen of API docs * Small doc tweaks + fixing FT checking file issue that was detected by generating docs automatically --------- Co-authored-by: Ciaran Ryan-Anderson <ciaranra@gmail.com>
* CoinToss simulator implemented. * Replaced the old CuStateVec simulator (C API) with a version using the Python API. * Updated README with installation instructions for CuStateVec. --------- Co-authored-by: PabloAndresCQ <pablo.andres-martinez@cambridgequantum.com> Co-authored-by: Kartik Singhal <kartik.singhal@quantinuum.com>
* 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. * Adding general Instr type and list types * Adding slr code * Updated linting/formatting * Moving slr down to reduce nesting * fix slr __version__ * Creating a slr.std folder to hold common extension to core to the DSL * Fixing std import * Adding in duration for MOps in PyPMIR * Modifying qargs in mops appropriately. * Moving the old cuquantum code to cuquantum_old for now... * Updating actions/setup-python from v4 to v5 * Adding tests of SLR and gate name resolving + some fixes due to those * Update .pre-commit-config.yaml Co-authored-by: Kartik Singhal <kartik.singhal@quantinuum.com> * Apply suggestions from code review Co-authored-by: Kartik Singhal <kartik.singhal@quantinuum.com> * Updating pre-commit / running ruff/black * Updating the docs using autodoc * Changing PHIR test to only have bits set by 1 or 0 (not bool) --------- Co-authored-by: Ciaran Ryan-Anderson <ciaran.ryan-anderson@quantinuum.com> Co-authored-by: Ciarán Ryan-Anderson <70174051+qciaran@users.noreply.github.com> Co-authored-by: Kartik Singhal <kartik.singhal@quantinuum.com>
* Allows noise model to generate hybrid errors (classical and quantum instructions) * Adding internal cinterp registers for error models * removing internally generated measurements from results * Converts conditionals into COps --------- Co-authored-by: Ciaran Ryan-Anderson <ciaran.ryan-anderson@quantinuum.com>
… calls (PECOS-packages#62) Preventing infinite looping of WASM calls and providing additional details to users when WASM errors occur. --------- Co-authored-by: Ciarán Ryan-Anderson <70174051+qciaran@users.noreply.github.com>
* feat: add support for negative integers to phir * feat: add hypothesis-enabled unit tests for BinArray2 Also, clamp only for unsigned integer types * lint: fix typos and exclude cuquantum_old * feat: replace BinArray with BinArray2 * fix: set BinArray2's value correctly, or it can convert to ndarray * build: bump patch version to distinguish in testing * feat: partition data_types into signed and unsigned also make size optional for signed integer type * build: update to correct phir version Co-authored-by: Ciarán Ryan-Anderson <70174051+qciaran@users.noreply.github.com> --------- Co-authored-by: Ciarán Ryan-Anderson <70174051+qciaran@users.noreply.github.com>
* Updated argument names for new API (cuStateVec 1.6.0) * Bumped up version requirements * Fixing a bug in CuStateVec in the implementation of the RYY gate * Refactor of state.vector so that it returns a numpy array for easier testing and integration * Adding some of the changes from Dominic's PR PECOS-packages#58 * Added more bindings requested by @dlucchetti
…testing (PECOS-packages#55) * Adding a basic numpy statevector simulator * Adding more exhaustive tests against BasicSV * Adding a reset method
…ECOS-packages#68) * Added Qulacs simulator * Added wrapper for QuEST * Updated readme with simulator installation instructions * Adding tests for HybridEngine on statevector simulators * Supporting new statevector sims on HybridEngine * Fixed a bug in CuStateVec relating to HybridEngine
* Adding an MPS simulator * Adding tests for MPS * Using non-destructive measurements * Added a reset method to MPS * Including MPS as a qsim backend for HybridEngine * Adding more bindings for initialisation that are needing for the tests * Allowing users to provide parameters for the MPS simulation from HybridEngine * Add HybridEngine tests for MPS
* Removed sqrt and changed names so that they match the with_average pattern (assuming typo) * Fixed problem with quadratic idling * Rust needs help with types
* Add .wasm() to qasm_sim() in crates/pecos-qasm * Add wasm() to pecos-rslib
…. Users can just use the repo to build from source.
* Making sure conditional error modeling works
* Minimal Rust wrapper for PCG * Renaming clibs/ to clib/ since a library is already a collection of things * Remove sdist building for pecos-rslib due to external C source issues. Users can just use the repo to build from source.
888f3d5 to
48d0e4a
Compare
9ccb5ca to
cabc9a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.