This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optional resets and delays in RepetitionCode (#599)
Add the ability to run repetition codes without resets and with delays. * add delays and option to remove reset * add test for resets * linting * change qasm sim to aer * change default value of resets * test addition of delays * add reno * Update releasenotes/notes/optional-resets-and-delays-2cd301f1257b3962.yaml Co-authored-by: Matthew Treinish <[email protected]> * Update releasenotes/notes/optional-resets-and-delays-2cd301f1257b3962.yaml Co-authored-by: Matthew Treinish <[email protected]> * add notes on syndrome_measurement * Update qiskit/ignis/verification/topological_codes/fitters.py Co-authored-by: Matthew Treinish <[email protected]> * Update releasenotes/notes/optional-resets-and-delays-2cd301f1257b3962.yaml Co-authored-by: Matthew Treinish <[email protected]> * Update releasenotes/notes/optional-resets-and-delays-2cd301f1257b3962.yaml Co-authored-by: Matthew Treinish <[email protected]> * Update releasenotes/notes/optional-resets-and-delays-2cd301f1257b3962.yaml Co-authored-by: Matthew Treinish <[email protected]> * edit line breaks Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
1 parent
f0728b6
commit 0eb9dcc
Showing
4 changed files
with
70 additions
and
15 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
23 changes: 23 additions & 0 deletions
23
releasenotes/notes/optional-resets-and-delays-2cd301f1257b3962.yaml
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 @@ | ||
|
||
features: | ||
- | | ||
The :class:`~qiskit.ignis.verification.RepetitionCode` now has keyword arguments ``resets`` and ``delay``. | ||
The former determines whether reset gates are inserted after measurement. | ||
The latter allows a time (in dt) to be specificed for a delay after each | ||
measurement (and reset, if applicable). | ||
The :meth:`~qiskit.ignis.verification.RepitionCode.syndrome_measurement` method of | ||
:class:`~qiskit.ignis.verification.RepetitionCode` now has keyword | ||
arguments ``final`` and ``delay``. The former determines whether to add reset gates according | ||
to the global ``resets``, or to overwrite it with appropriate behavior for the | ||
final round of syndrome measurements. The latter allows a time (in dt) to be specificed | ||
for a delay after each measurement (and reset, if applicable). | ||
upgrade: | ||
- | | ||
The keyword argument `reset` has been removed for | ||
the :meth:`~qiskit.ignis.verification.RepitionCode.syndrome_measurement` method of | ||
:class:`~qiskit.ignis.verification.RepetitionCode`. This is replaced by the global | ||
``resets` keyword argument for the class as well as the keyword argument ``final`` | ||
for ``syndrome_measurement``. In cases where one would previously add the final | ||
measurement round using ``reset=False`` to avoid the final reset gates, one | ||
should now use ``final=True``. |
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