-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement experimental general
get_params_to_statevector
* Supports general operations beyond parameterized gate application * Allows for specification of parameters using dictionaries * Adds a classical register for storage of intermediate computations (e.g. mid-circuit-measurements) * Allows the user to define new gates identified by a string In addition: * Introduce unstable experimental API in experimental.py * Add `./examples/experimental` folder for notebooks using unstable API * Add `experimental/noise_channel_monte_carlo.ipynb` with example of simulating noise using Monte-Carlo/quantum trajectories * Add test_experimental.py for testing unstable API * Add `ParameterizedGateFunction`, `UnparameterizedGateFunction` types
- Loading branch information
Showing
18 changed files
with
1,184 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Experimental | ||
======================= | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
|
||
Pure state simulation <experimental/statetensor> | ||
|
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,13 @@ | ||
Pure state simulation | ||
======================= | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
|
||
statetensor/get_default_gates | ||
statetensor/get_default_operations | ||
statetensor/get_params_to_statetensor_func | ||
statetensor/get_params | ||
statetensor/parse_op | ||
statetensor/wrap_parameterised_tensor | ||
|
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,4 @@ | ||
get_default_gates | ||
============================================== | ||
|
||
.. autofunction:: qujax.experimental.statetensor.get_default_gates |
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,4 @@ | ||
get_default_operations | ||
============================================== | ||
|
||
.. autofunction:: qujax.experimental.statetensor.get_default_operations |
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,4 @@ | ||
get_params | ||
============================================== | ||
|
||
.. autofunction:: qujax.experimental.statetensor.get_params |
4 changes: 4 additions & 0 deletions
4
docs/experimental/statetensor/get_params_to_statetensor_func.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,4 @@ | ||
get_params_to_statetensor_func | ||
===================================== | ||
|
||
.. autofunction:: qujax.experimental.statetensor.get_params_to_statetensor_func |
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,4 @@ | ||
parse_op | ||
============================================== | ||
|
||
.. autofunction:: qujax.experimental.statetensor.parse_op |
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,4 @@ | ||
wrap_parameterised_tensor | ||
============================================== | ||
|
||
.. autofunction:: qujax.experimental.statetensor.wrap_parameterised_tensor |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apply_gate | ||
============================================== | ||
|
||
.. autofunction:: qujax.apply_gate | ||
.. autofunction:: qujax.experimental.statetensor.apply_gate |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.