-
Notifications
You must be signed in to change notification settings - Fork 12
Standard Error Amplification circuit #1601
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
Draft
ElStabilini
wants to merge
20
commits into
qiboteam:main
Choose a base branch
from
ElStabilini:sea
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
29987f1
started implementing pea
ElStabilini a329016
rewrite sea as calibration protocol similar to flipping
ElStabilini 686d566
added runcard test, not tested yet
ElStabilini 532f356
fix: remove amplitude update
ElStabilini e726eb0
fix: complete amplitude update removal
ElStabilini 802c5a5
doc: started sketching protocol documentation
ElStabilini c2f6f1c
fix: fix fit function for sea
ElStabilini 28d248d
doc: write documentation for sea
ElStabilini d152c56
remove unnecessary line on resonator tyoe for data storage
ElStabilini 365e115
fix typo
ElStabilini 41fda22
listed sea in protocol documentation
ElStabilini ae3746e
fix: specified RuntimError for failed fit convergence
ElStabilini 64f3a33
fix: fix pulse sequence construction
ElStabilini 4b0ab94
Merge branch 'sea' of github.com:ElStabilini/qibocal into sea
ElStabilini cd22af8
fix: fix cz pulse handling in sequence construction
ElStabilini ea93fe2
fix: fix fit function and bounds
ElStabilini ef67d17
fix: uniform documentation with the updated fit function
ElStabilini 92eea4e
Merge branch 'main' into sea
ElStabilini af8b6a8
Merge branch 'sea' of github.com:ElStabilini/qibocal into sea
ElStabilini 6d9cc8f
style: fix ruff complain
ElStabilini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| .. _standard_error_amplification: | ||
|
|
||
| Standard Error Amplification | ||
|
ElStabilini marked this conversation as resolved.
|
||
| ============================ | ||
|
|
||
| The goal of the Standard Error Amplification experiment is to estimate the error on the conditional phase acquired by the :math:`CZ` gate. | ||
|
|
||
| An ideal :math:`CZ` gate applies a phase of :math:`\pi` to the :math:`\ket{11}` component of the two-qubit state and leaves the other computational states unchanged. | ||
| In practice, the gate implemented on hardware applies a phase :math:`\pi + \delta`, where :math:`\delta` is a small, unknown error. | ||
|
|
||
| The implementation of the protocol follows the one described in :cite:p:`sea`. | ||
|
|
||
| Standard Error Amplification | ||
| ----------------------------- | ||
|
|
||
| Let :math:`Q_a` be the probe qubit and :math:`Q_b` the control qubit of the pair. | ||
|
|
||
| The experiment consists of the following circuit: | ||
|
|
||
| .. | ||
| missing svg image of the circuit | ||
|
|
||
| The net phase accumulated by :math:`Q_a` after the full sequence is, up to known and calculable offsets, | ||
|
|
||
| .. math:: \phi_n = n\,\delta . | ||
| :label: sea_phase | ||
|
|
||
| The final :math:`X(\pi/2)` pulse on :math:`Q_a` is the same rotation as the initial one: it converts the phase :math:`\phi_n` of :eq:`sea_phase` into a measurable excited-state population | ||
|
|
||
| .. math:: P(\ket{1}_{Q_a}) \approx \cos^2\left(\frac{n\,\delta}{2}\right) | ||
| :label: sea_population | ||
|
|
||
| By measuring :math:`P(\ket{1}_{Q_a})` as a function of the number of repetitions :math:`n` and fitting it to a sinusoid, it is possible to extract :math:`\delta`. | ||
|
|
||
| Parameters | ||
| ^^^^^^^^^^ | ||
|
|
||
| .. autoclass:: | ||
| qibocal.protocols.two_qubit_interaction.sea.StandardErrorAmplificationParameters | ||
| :noindex: | ||
|
|
||
| Example | ||
| ^^^^^^^ | ||
| It follows a runcard example of this experiment. | ||
|
|
||
| .. code-block:: yaml | ||
|
|
||
| - id: standard_error_amplification | ||
| operation: standard_error_amplification | ||
| targets: [[0, 1]] | ||
| parameters: | ||
| nshots: 2000 | ||
| repetitions_max: 10 | ||
| repetitions_step: 1 | ||
|
|
||
| The expected output is the following: | ||
|
|
||
| .. image:: | ||
|
|
||
|
|
||
| Requirements | ||
| ^^^^^^^^^^^^ | ||
|
|
||
| - :ref:`cz_amplitude` | ||
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.