-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add layer fidelity experiment (#1322)
### Summary Add a new experiment class to measure layer fidelity, which is a holistic benchmark to characterize the full quality of the devices at scale (https://arxiv.org/abs/2311.05933) Example notebook: [run_lf_qiskit_experiments_large.ipynb (Gist)](https://gist.github.com/itoko/28c7cc117614c67e2a1899a3757d4ad1) ### Experimental features: - Exceptionally `circuits()` method returns circuits on physical qubits (not virtual qubits as usual) - Add `reason` as an extra analysis result entry to tell users why the `quality` of the analysis was "bad" ### Follow-up items: - Add API for customizing DD (e.g. register DD sequence generator by name and specify the name in experiment_options) ``` def dd_func1(delay_length, backend) -> list[Instruction]; LayerFidelity.dd_functions = { "dd1": dd_func1, "dd2": dd_func2, } ``` ### Features decided not to include: - `full_sampling` option (`StandardRB` has). `LayerFidelity` behaves as if setting always `full_sampling==True` to avoid correlation between sequences, which RB theory does not consider. - `replicate_in_parallel` option that allows to use a common direct RB sequence for all qubit pairs. It turned out that `replicate_in_parallel==True` may underestimate some types of errors, suggesting it should always be set to `False`. ### Issues to be addressed separately - Poor interface for querying figures: No pointer to a relevant figure (or data used for fitting) is stored in `AnalysisResult` (i.e. users who find a bad fitting result in `AnalysisResult` cannot easily look at a figure relevant to the result) ==> For now, you can query a figure by its name; e.g. `exp_data.figure("DirectRB_Q83_Q82")` ### Dependencies: - [x] #1288 for Clifford synthesis with unidirectional 2q gates (e.g. IBM Eagle processors)
- Loading branch information
Showing
9 changed files
with
1,113 additions
and
8 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
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
Binary file added
BIN
+1.32 KB
qiskit_experiments/library/randomized_benchmarking/data/clifford_tensor_1q.npz
Binary file not shown.
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.