Add Rabi Oscillations textbook notebook#188
Add Rabi Oscillations textbook notebook#188friedsam wants to merge 2 commits intoamazon-braket:mainfrom
Conversation
|
Thanks for updating the branch. Please let me know if any further changes or documentation updates are needed from my side. Thanks again for reviewing the notebook. |
|
Hi @friedsam , thanks for this contribution. This is a great idea for the textbook algorithm collection; it aligns with its educational direction (see Bell inequality). We are happy to add this if you could enrich it with 2-3 more demonstrations (in the same notebook is fine) that show how the effect of noise (T1, T2) can be simulated with Braket noisy circuits, and how the dynamics of off-resonant Rabi oscillation can be encoded with single qubit rotations, and maybe all of them combined. The circuits and the graphs will be more complex and will give the reader a good learning experience without going beyond the initial scope, i.e. Rabi oscillation. Also, happy to give more guidance on what part of the Braket Python SDK may be useful for this demo. What do you think? |
|
Hi Peter, thanks a lot for the detailed feedback — that’s very helpful! |
|
Wonderful! Thanks for the quick response. For noise simulation the Simulating_Noise_On_Amazon_Braket.ipynb notebook is a great place to start. Let us know if you hit any blocker. |
|
Thank you very much for the pointer to the Simulating_Noise_On_Amazon_Braket notebook — that’s very helpful. |
*Issue #, if available:*Originally prepared in relation to amazon-braket-sdk-python#1194
Description of changes:
This PR adds a Rabi Oscillations example to the Amazon Braket Algorithm Library.
The contribution includes:
• New utility functions rabi_probability and rabi_circuit under src/braket/experimental/algorithms/rabi_oscillations/
• Unit tests validating the new utilities
• A textbook notebook Rabi_Oscillations.ipynb demonstrating:
• Theoretical background and analytic expression for P(|1\rangle)
• Exact simulator results using shots=0
• Finite-shot sampling comparison
• A measurement histogram at \theta = \pi/2
• Resource usage and cost tracking using the Braket Tracker
• An updated README entry referencing the new notebook
No existing core functionality was modified.
Testing done:
Merge Checklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.