-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for noise model and level 1 data to local sampler
This change passes through the `simulator.noise_model` option to the `BackendSamplerV2` as a `noise_model` option under `run_options` if the primitive supports the `run_options` option (support was added in Qiskit 1.3). Additionally, this change translates the `execution.meas_type` option into `meas_level` and `meas_return` options under `run_options` for the `BackendSamplerV2` if it supports `run_options`. This change allows support for level 1 data in local testing mode, where otherwise the default is only to return classified data.
- Loading branch information
Showing
3 changed files
with
162 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Add support for noise model and level 1 data to local sampler | ||
|
||
The ``simulator.noise_model`` option of :class:`~.SamplerV2` is now passed | ||
through to the :class:`~qiskit.primitives.BackendSamplerV2` as a `noise_model` | ||
option under `run_options` if the primitive supports the `run_options` option | ||
(support was added in Qiskit 1.3). | ||
|
||
Similarly, the ``execution.meas_type`` option of :class:`~.SamplerV2` is now | ||
translated into ``meas_level`` and ``meas_return`` options under | ||
``run_options`` of the :class:`~qiskit.primitives.BackendSamplerV2` if it | ||
supports ``run_options``. This change allows support for level 1 data in local | ||
testing mode, where previously the only level 2 (classified) data was | ||
supported. |
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