-
Notifications
You must be signed in to change notification settings - Fork 37
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
Postprocess jacobian result shape #159
Merged
speller26
merged 13 commits into
amazon-braket:main
from
albi3ro:adjoint-jacobian-result-type2
May 2, 2023
Merged
Postprocess jacobian result shape #159
speller26
merged 13 commits into
amazon-braket:main
from
albi3ro:adjoint-jacobian-result-type2
May 2, 2023
Conversation
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
Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Cody Wang <[email protected]>
Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]>
* feat: add Python 3.11 support (amazon-braket#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (amazon-braket#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 --------- Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci>
Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Cody Wang <[email protected]>
speller26
previously approved these changes
May 2, 2023
…bi3ro/amazon-braket-pennylane-plugin-python into adjoint-jacobian-result-type2
speller26
approved these changes
May 2, 2023
Codecov Report
@@ Coverage Diff @@
## main #159 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 957 957
Branches 228 228
=========================================
Hits 957 957
|
Integ test failures
|
mudit2812
pushed a commit
to lillian542/amazon-braket-pennylane-plugin-python
that referenced
this pull request
May 8, 2023
mudit2812
added a commit
to lillian542/amazon-braket-pennylane-plugin-python
that referenced
this pull request
Jul 7, 2023
* Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (amazon-braket#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (amazon-braket#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (amazon-braket#158) Also made plugin compatible with new return types specification (amazon-braket#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (amazon-braket#159) * fix: Tempfix for failing tests (amazon-braket#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (amazon-braket#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]>
mudit2812
added a commit
to lillian542/amazon-braket-pennylane-plugin-python
that referenced
this pull request
Jul 7, 2023
* Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (amazon-braket#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (amazon-braket#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (amazon-braket#158) Also made plugin compatible with new return types specification (amazon-braket#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (amazon-braket#159) * fix: Tempfix for failing tests (amazon-braket#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (amazon-braket#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]>
mudit2812
added a commit
to lillian542/amazon-braket-pennylane-plugin-python
that referenced
this pull request
Jul 14, 2023
…on` (#13) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (amazon-braket#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (amazon-braket#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (amazon-braket#158) Also made plugin compatible with new return types specification (amazon-braket#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (amazon-braket#159) * fix: Tempfix for failing tests (amazon-braket#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (amazon-braket#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Added PE to PulseSequence translation * Updated to support multiple pulses * Added comments for readability * Update src/braket/pennylane_plugin/translation.py Co-authored-by: Korbinian Kottmann <[email protected]> * Refactoring * Added test for pulse gate translation * Updated translation to stop fixing amplitude * Reformatting * Apply suggestions from code review Co-authored-by: lillian542 <[email protected]> * Added back translation for AAMS * fix: constrain tensorflow version (amazon-braket#185) * prepare release v1.17.1 * update development version to v1.17.2.dev0 * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (amazon-braket#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (amazon-braket#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (amazon-braket#158) Also made plugin compatible with new return types specification (amazon-braket#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (amazon-braket#159) * fix: Tempfix for failing tests (amazon-braket#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (amazon-braket#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Added unit tests * Linting * Updated return value of wires * Updated variable name * Update pennylane version constraint (amazon-braket#188) * Update src/braket/pennylane_plugin/translation.py Co-authored-by: lillian542 <[email protected]> * prepare release v1.17.2 * update development version to v1.17.3.dev0 * Updated tests * fix: set do_queue default to None (amazon-braket#175) Co-authored-by: Cody Wang <[email protected]> * prepare release v1.17.3 * update development version to v1.17.4.dev0 * Addressed code review --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> Co-authored-by: Stephen Face <[email protected]> Co-authored-by: Kshitij Chhabra <[email protected]>
mudit2812
added a commit
to lillian542/amazon-braket-pennylane-plugin-python
that referenced
this pull request
Jul 25, 2023
* Updated translation to stop fixing amplitude * Reformatting * Apply suggestions from code review Co-authored-by: lillian542 <[email protected]> * Added back translation for AAMS * fix: constrain tensorflow version (amazon-braket#185) * prepare release v1.17.1 * update development version to v1.17.2.dev0 * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (amazon-braket#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (amazon-braket#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (amazon-braket#158) Also made plugin compatible with new return types specification (amazon-braket#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (amazon-braket#159) * fix: Tempfix for failing tests (amazon-braket#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (amazon-braket#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Added unit tests * Linting * Updated return value of wires * Updated variable name * Update src/braket/pennylane_plugin/translation.py Co-authored-by: lillian542 <[email protected]> * Updated tests * pulse validation * clean up after merge conflict * warn if pulse settings don't match * update validation functions * add tests that mostly work * working freq range test * tox formatting * allow qml.pulse.constant as constant parameters * Apply suggestions from code review * Added callable related changes to translation * Fix compatibility with the new Projector class (amazon-braket#189) * Fix attempt * support tests * Test error when not in Z basis * fix formatting * prepare release v1.17.4 * update development version to v1.17.5.dev0 * infra: Update CODEOWNERS (amazon-braket#184) Co-authored-by: Abe Coull <[email protected]> * feat: native mode (amazon-braket#187) You can now specify `verbatim` when creating a device to run tasks in verbatim mode. This enables using native gates on QPUs. * prepare release v1.18.0 * update development version to v1.18.1.dev0 --------- Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Stephen Face <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> Co-authored-by: BorjaRequena <[email protected]> Co-authored-by: Aaron Berdy <[email protected]>
speller26
added a commit
that referenced
this pull request
Aug 17, 2023
* Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Added PE to PulseSequence translation * Updated to support multiple pulses * Added comments for readability * Update src/braket/pennylane_plugin/translation.py Co-authored-by: Korbinian Kottmann <[email protected]> * Refactoring * add anharmonicities * Remove coupling from settings * add tests * tox formatting * fix code formatting issues * Added test for pulse gate translation * apply suggestions from code review * fix failing tests * docstrings * Updated translation to stop fixing amplitude * Reformatting * change name from settings to pulse_settings * Apply suggestions from code review Co-authored-by: lillian542 <[email protected]> * Added back translation for AAMS * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * fix: constrain tensorflow version (#185) * prepare release v1.17.1 * update development version to v1.17.2.dev0 * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Added unit tests * Linting * Updated return value of wires * Updated variable name * Update src/braket/pennylane_plugin/translation.py Co-authored-by: lillian542 <[email protected]> * Updated tests * pulse validation * Add translation function to get `PulseGate` from `ParametrizedEvolution` (#13) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Added PE to PulseSequence translation * Updated to support multiple pulses * Added comments for readability * Update src/braket/pennylane_plugin/translation.py Co-authored-by: Korbinian Kottmann <[email protected]> * Refactoring * Added test for pulse gate translation * Updated translation to stop fixing amplitude * Reformatting * Apply suggestions from code review Co-authored-by: lillian542 <[email protected]> * Added back translation for AAMS * fix: constrain tensorflow version (#185) * prepare release v1.17.1 * update development version to v1.17.2.dev0 * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Added unit tests * Linting * Updated return value of wires * Updated variable name * Update pennylane version constraint (#188) * Update src/braket/pennylane_plugin/translation.py Co-authored-by: lillian542 <[email protected]> * prepare release v1.17.2 * update development version to v1.17.3.dev0 * Updated tests * fix: set do_queue default to None (#175) Co-authored-by: Cody Wang <[email protected]> * prepare release v1.17.3 * update development version to v1.17.4.dev0 * Addressed code review --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> Co-authored-by: Stephen Face <[email protected]> Co-authored-by: Kshitij Chhabra <[email protected]> * remove unwanted changes to translation.py * revert unwanted changes to shadow_expval tests * fix typo from last commit * remove unwanted changes to test_translation * linting * more lint * raise clear NotImplementedError if pulse properties are called on other devices * update tests * Fix formatting * clean up after merge conflict * warn if pulse settings don't match * update validation functions * add tests that mostly work * working freq range test * tox formatting * allow qml.pulse.constant as constant parameters * Apply suggestions from code review * Added callable related changes to translation * Fix compatibility with the new Projector class (#189) * Fix attempt * support tests * Test error when not in Z basis * fix formatting * prepare release v1.17.4 * update development version to v1.17.5.dev0 * infra: Update CODEOWNERS (#184) Co-authored-by: Abe Coull <[email protected]> * feat: native mode (#187) You can now specify `verbatim` when creating a device to run tasks in verbatim mode. This enables using native gates on QPUs. * prepare release v1.18.0 * update development version to v1.18.1.dev0 * Adding docs * Updated docs * Updated white spacing * Updated docs * Pulse validation (#14) * Updated translation to stop fixing amplitude * Reformatting * Apply suggestions from code review Co-authored-by: lillian542 <[email protected]> * Added back translation for AAMS * fix: constrain tensorflow version (#185) * prepare release v1.17.1 * update development version to v1.17.2.dev0 * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Added unit tests * Linting * Updated return value of wires * Updated variable name * Update src/braket/pennylane_plugin/translation.py Co-authored-by: lillian542 <[email protected]> * Updated tests * pulse validation * clean up after merge conflict * warn if pulse settings don't match * update validation functions * add tests that mostly work * working freq range test * tox formatting * allow qml.pulse.constant as constant parameters * Apply suggestions from code review * Added callable related changes to translation * Fix compatibility with the new Projector class (#189) * Fix attempt * support tests * Test error when not in Z basis * fix formatting * prepare release v1.17.4 * update development version to v1.17.5.dev0 * infra: Update CODEOWNERS (#184) Co-authored-by: Abe Coull <[email protected]> * feat: native mode (#187) You can now specify `verbatim` when creating a device to run tasks in verbatim mode. This enables using native gates on QPUs. * prepare release v1.18.0 * update development version to v1.18.1.dev0 --------- Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Stephen Face <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> Co-authored-by: BorjaRequena <[email protected]> Co-authored-by: Aaron Berdy <[email protected]> * remove custom wire logic * use AwsDevice instead of BraketAwsQubitDevice * remove stray print statement * use ConstantWaveform for pulse.constant * chronological wire ordering * update docstring * further clarify docstring * clarify comment in validate_pulse_parameters * update _is_single_qubit_12_frame error message * make device required for ParametrizedEvolution dispatch * update documentation * black * update check_validity * received * update units documentation * fix formatting * add integration test * black formatting * handle device offline in integ tests * remove unused import in test file --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Stephen Face <[email protected]> Co-authored-by: Kshitij Chhabra <[email protected]> Co-authored-by: BorjaRequena <[email protected]> Co-authored-by: Aaron Berdy <[email protected]>
kshitijc
added a commit
that referenced
this pull request
Oct 24, 2023
* Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Added PE to PulseSequence translation * Updated to support multiple pulses * Added comments for readability * Update src/braket/pennylane_plugin/translation.py Co-authored-by: Korbinian Kottmann <[email protected]> * Refactoring * add anharmonicities * Remove coupling from settings * add tests * tox formatting * fix code formatting issues * Added test for pulse gate translation * apply suggestions from code review * fix failing tests * docstrings * Updated translation to stop fixing amplitude * Reformatting * change name from settings to pulse_settings * Apply suggestions from code review Co-authored-by: lillian542 <[email protected]> * Added back translation for AAMS * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * fix: constrain tensorflow version (#185) * prepare release v1.17.1 * update development version to v1.17.2.dev0 * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Added unit tests * Linting * Updated return value of wires * Updated variable name * Update src/braket/pennylane_plugin/translation.py Co-authored-by: lillian542 <[email protected]> * Updated tests * pulse validation * Add translation function to get `PulseGate` from `ParametrizedEvolution` (#13) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Added PE to PulseSequence translation * Updated to support multiple pulses * Added comments for readability * Update src/braket/pennylane_plugin/translation.py Co-authored-by: Korbinian Kottmann <[email protected]> * Refactoring * Added test for pulse gate translation * Updated translation to stop fixing amplitude * Reformatting * Apply suggestions from code review Co-authored-by: lillian542 <[email protected]> * Added back translation for AAMS * fix: constrain tensorflow version (#185) * prepare release v1.17.1 * update development version to v1.17.2.dev0 * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Added unit tests * Linting * Updated return value of wires * Updated variable name * Update pennylane version constraint (#188) * Update src/braket/pennylane_plugin/translation.py Co-authored-by: lillian542 <[email protected]> * prepare release v1.17.2 * update development version to v1.17.3.dev0 * Updated tests * fix: set do_queue default to None (#175) Co-authored-by: Cody Wang <[email protected]> * prepare release v1.17.3 * update development version to v1.17.4.dev0 * Addressed code review --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> Co-authored-by: Stephen Face <[email protected]> Co-authored-by: Kshitij Chhabra <[email protected]> * remove unwanted changes to translation.py * revert unwanted changes to shadow_expval tests * fix typo from last commit * remove unwanted changes to test_translation * linting * more lint * raise clear NotImplementedError if pulse properties are called on other devices * update tests * Fix formatting * clean up after merge conflict * warn if pulse settings don't match * update validation functions * add tests that mostly work * working freq range test * tox formatting * allow qml.pulse.constant as constant parameters * Apply suggestions from code review * Added callable related changes to translation * Fix compatibility with the new Projector class (#189) * Fix attempt * support tests * Test error when not in Z basis * fix formatting * prepare release v1.17.4 * update development version to v1.17.5.dev0 * infra: Update CODEOWNERS (#184) Co-authored-by: Abe Coull <[email protected]> * feat: native mode (#187) You can now specify `verbatim` when creating a device to run tasks in verbatim mode. This enables using native gates on QPUs. * prepare release v1.18.0 * update development version to v1.18.1.dev0 * Adding docs * Updated docs * Updated white spacing * Updated docs * Pulse validation (#14) * Updated translation to stop fixing amplitude * Reformatting * Apply suggestions from code review Co-authored-by: lillian542 <[email protected]> * Added back translation for AAMS * fix: constrain tensorflow version (#185) * prepare release v1.17.1 * update development version to v1.17.2.dev0 * Add `ParametrizedEvolution` to OQC Lucy's supported operations (#10) * Added `ParametrizedEvolution` support to OQC Lucy * feat: add Python 3.11 support (#148) * feat: add Python 3.11 support * prepare release v1.14.0 * update development version to v1.14.1.dev0 * test: parallelize test execution for pytest (#152) * prepare release v1.14.1 * update development version to v1.14.2.dev0 * feat: Add AHS devices (#158) Also made plugin compatible with new return types specification (#153) Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Postprocess jacobian result shape (#159) * fix: Tempfix for failing tests (#161) * prepare release v1.15.0 * update development version to v1.15.1.dev0 * doc: Correct README format for PyPI (#162) * prepare release v1.15.0.post0 * update development version to v1.15.1.dev0 * tests work weeeeee * Fixed shadow expval error --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> * Added unit tests * Linting * Updated return value of wires * Updated variable name * Update src/braket/pennylane_plugin/translation.py Co-authored-by: lillian542 <[email protected]> * Updated tests * pulse validation * clean up after merge conflict * warn if pulse settings don't match * update validation functions * add tests that mostly work * working freq range test * tox formatting * allow qml.pulse.constant as constant parameters * Apply suggestions from code review * Added callable related changes to translation * Fix compatibility with the new Projector class (#189) * Fix attempt * support tests * Test error when not in Z basis * fix formatting * prepare release v1.17.4 * update development version to v1.17.5.dev0 * infra: Update CODEOWNERS (#184) Co-authored-by: Abe Coull <[email protected]> * feat: native mode (#187) You can now specify `verbatim` when creating a device to run tasks in verbatim mode. This enables using native gates on QPUs. * prepare release v1.18.0 * update development version to v1.18.1.dev0 --------- Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Stephen Face <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> Co-authored-by: BorjaRequena <[email protected]> Co-authored-by: Aaron Berdy <[email protected]> * remove custom wire logic * use AwsDevice instead of BraketAwsQubitDevice * remove stray print statement * use ConstantWaveform for pulse.constant * chronological wire ordering * update docstring * further clarify docstring * clarify comment in validate_pulse_parameters * update _is_single_qubit_12_frame error message * make device required for ParametrizedEvolution dispatch * update documentation * black * update check_validity * received * update units documentation * fix formatting * add integration test * black formatting * handle device offline in integ tests * remove unused import in test file * set frequency range to 3-8 GHz * replace self.wires with wires * update error and tests for frequency range * use frame-specific dt value * tox/formatting clean up * move json dumps to seperate file pt1 * move json dumps to seperate file pt2 * remove warning when Ev operator contains interaction term * flake8 and black formatting * Update to use shift_phase Co-authored-by: Jean-Christophe Jaskula <[email protected]> * Update src/braket/pennylane_plugin/translation.py * Update src/braket/pennylane_plugin/translation.py * Update src/braket/pennylane_plugin/translation.py * remove unused imports --------- Co-authored-by: lillian542 <[email protected]> Co-authored-by: lillian542 <[email protected]> Co-authored-by: Abe Coull <[email protected]> Co-authored-by: ci <ci> Co-authored-by: Christina Lee <[email protected]> Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: Korbinian Kottmann <[email protected]> Co-authored-by: David Wierichs <[email protected]> Co-authored-by: Cody Wang <[email protected]> Co-authored-by: Stephen Face <[email protected]> Co-authored-by: Kshitij Chhabra <[email protected]> Co-authored-by: BorjaRequena <[email protected]> Co-authored-by: Aaron Berdy <[email protected]> Co-authored-by: Christian Bruun Madsen <[email protected]> Co-authored-by: Jean-Christophe Jaskula <[email protected]> Co-authored-by: Qottmann <[email protected]>
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.
The gradients also need a different result under the new return types designation. This change handles that post-processing.
According to @lillian542 , there are still some test failures due to use of
qml.jacobian
and an extra dimension occurring somewhere that is not getting squeezed out, but this change should fix at least one test failure.