-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 <[email protected]> * Apply suggestions from code review Co-authored-by: Kartik Singhal <[email protected]> * 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 <[email protected]> Co-authored-by: Ciarán Ryan-Anderson <[email protected]> Co-authored-by: Kartik Singhal <[email protected]>
- Loading branch information
1 parent
cec47a4
commit 387207e
Showing
143 changed files
with
6,662 additions
and
305 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
29 changes: 29 additions & 0 deletions
29
docs/reference/_autosummary/pecos.engines.cvm.wasm_vms.wasmtime.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pecos.engines.cvm.wasm\_vms.wasmtime | ||
==================================== | ||
|
||
.. automodule:: pecos.engines.cvm.wasm_vms.wasmtime | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
read_wasmtime | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains 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
29 changes: 29 additions & 0 deletions
29
docs/reference/_autosummary/pecos.error_models.simple_depolarizing_error_model.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pecos.error\_models.simple\_depolarizing\_error\_model | ||
====================================================== | ||
|
||
.. automodule:: pecos.error_models.simple_depolarizing_error_model | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
SimpleDepolarizingErrorModel | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ pecos.reps.pypmir.block\_types | |
|
||
Block | ||
IfBlock | ||
QParallelBlock | ||
SeqBlock | ||
|
||
|
||
|
29 changes: 29 additions & 0 deletions
29
docs/reference/_autosummary/pecos.reps.pypmir.instr_type.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pecos.reps.pypmir.instr\_type | ||
============================= | ||
|
||
.. automodule:: pecos.reps.pypmir.instr_type | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
Instr | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
31 changes: 31 additions & 0 deletions
31
docs/reference/_autosummary/pecos.reps.pypmir.list_types.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
pecos.reps.pypmir.list\_types | ||
============================= | ||
|
||
.. automodule:: pecos.reps.pypmir.list_types | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
InstrList | ||
OpList | ||
QOpList | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
29 changes: 29 additions & 0 deletions
29
docs/reference/_autosummary/pecos.reps.pypmir.name_resolver.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pecos.reps.pypmir.name\_resolver | ||
================================ | ||
|
||
.. automodule:: pecos.reps.pypmir.name_resolver | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
sim_name_resolver | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,5 +41,7 @@ | |
pecos.qeccs | ||
pecos.reps | ||
pecos.simulators | ||
pecos.slr | ||
pecos.tools | ||
pecos.typed_list | ||
|
23 changes: 23 additions & 0 deletions
23
docs/reference/_autosummary/pecos.simulators.cointoss.bindings.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
pecos.simulators.cointoss.bindings | ||
================================== | ||
|
||
.. automodule:: pecos.simulators.cointoss.bindings | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
30 changes: 30 additions & 0 deletions
30
docs/reference/_autosummary/pecos.simulators.cointoss.gates.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
pecos.simulators.cointoss.gates | ||
=============================== | ||
|
||
.. automodule:: pecos.simulators.cointoss.gates | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
ignore_gate | ||
measure | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
pecos.simulators.cointoss | ||
========================= | ||
|
||
.. automodule:: pecos.simulators.cointoss | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Modules | ||
|
||
.. autosummary:: | ||
:toctree: | ||
:recursive: | ||
|
||
pecos.simulators.cointoss.bindings | ||
pecos.simulators.cointoss.gates | ||
pecos.simulators.cointoss.state | ||
|
29 changes: 29 additions & 0 deletions
29
docs/reference/_autosummary/pecos.simulators.cointoss.state.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pecos.simulators.cointoss.state | ||
=============================== | ||
|
||
.. automodule:: pecos.simulators.cointoss.state | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
CoinToss | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains 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
Oops, something went wrong.