qiskit-documentation/docs/api/qiskit-ibm-runtime/0.25/qiskit_ibm_runtime.options....

54 lines
2.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: ZneOptions
description: API reference for qiskit_ibm_runtime.options.ZneOptions
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit_ibm_runtime.options.ZneOptions
---
# ZneOptions
<Class id="qiskit_ibm_runtime.options.ZneOptions" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.25/qiskit_ibm_runtime/options/zne_options.py#L35-L116" signature="ZneOptions(*args, **kwargs)" modifiers="class">
Zero noise extrapolation mitigation options. This is only used by V2 Estimator.
**Parameters**
* **amplifier**
Which technique to use for amplifying noise. One of:
* ”gate\_folding” (default) uses 2-qubit gate folding to amplify noise. If the noise factor requires amplifying only a subset of the gates, then these gates are chosen randomly.
* ”gate\_folding\_front” uses 2-qubit gate folding to amplify noise. If the noise factor requires amplifying only a subset of the gates, then these gates are selected from the front of the topologically ordered DAG circuit.
* ”gate\_folding\_back” uses 2-qubit gate folding to amplify noise. If the noise factor requires amplifying only a subset of the gates, then these gates are selected from the back of the topologically ordered DAG circuit.
* **noise\_factors** Noise factors to use for noise amplification. Default: (1, 3, 5).
* **extrapolator**
Extrapolator(s) to try (in order) for extrapolating to zero noise. One or more of:
* ”linear”
* ”exponential”
* ”double\_exponential”
* ”polynomial\_degree\_(1 \<= k \<= 7)”
Default: (“exponential”, “linear”).
## Attributes
### amplifier
<Attribute id="qiskit_ibm_runtime.options.ZneOptions.amplifier" attributeTypeHint="UnsetType | Literal['gate_folding', 'gate_folding_front', 'gate_folding_back']" attributeValue="Unset" />
### extrapolator
<Attribute id="qiskit_ibm_runtime.options.ZneOptions.extrapolator" attributeTypeHint="UnsetType | Literal['linear', 'exponential', 'double_exponential', 'polynomial_degree_1', 'polynomial_degree_2', 'polynomial_degree_3', 'polynomial_degree_4', 'polynomial_degree_5', 'polynomial_degree_6', 'polynomial_degree_7'] | Sequence[Literal['linear', 'exponential', 'double_exponential', 'polynomial_degree_1', 'polynomial_degree_2', 'polynomial_degree_3', 'polynomial_degree_4', 'polynomial_degree_5', 'polynomial_degree_6', 'polynomial_degree_7']]" attributeValue="Unset" />
### noise\_factors
<Attribute id="qiskit_ibm_runtime.options.ZneOptions.noise_factors" attributeTypeHint="UnsetType | Sequence[float]" attributeValue="Unset" />
## Methods
</Class>