---
title: NoiseLearnerV3Results (latest version)
description: API reference for qiskit_ibm_runtime.results.NoiseLearnerV3Results in the latest version of qiskit-ibm-runtime
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit-ibm-runtime/results-noise-learner-v3-results
---

# NoiseLearnerV3Results

*class* `NoiseLearnerV3Results(data, metadata=None)`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/results/noise_learner_v3.py#L129-L201)

Bases: `object`

The results of a noise learner experiment.

**Parameters**

- **data** (*Iterable\[*[*NoiseLearnerV3Result*](/docs/api/qiskit-ibm-runtime/results-noise-learner-v3-result "qiskit_ibm_runtime.results.NoiseLearnerV3Result")*]*) – The data in this result object.
- **metadata** ([*Metadata*](/docs/api/qiskit-ibm-runtime/results-metadata "qiskit_ibm_runtime.results.Metadata") *| None*) – A dictionary of metadata.

## Methods

### \_\_getitem\_\_

`__getitem__(idx)`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/results/noise_learner_v3.py#L191-L192)

**Parameters**

**idx** (*int*)

**Return type**

[*NoiseLearnerV3Result*](/docs/api/qiskit-ibm-runtime/results-noise-learner-v3-result "qiskit_ibm_runtime.results.noise_learner_v3.NoiseLearnerV3Result")

### \_\_len\_\_

`__len__()`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/results/noise_learner_v3.py#L197-L198)

**Return type**

int

### to\_dict

`to_dict(instructions, require_refs=True)`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/results/noise_learner_v3.py#L141-L189)

Convert to dictionary from `InjectNoise.ref` to `PauliLindbladMap` objects.

This function iterates over a sequence of instructions, extracts the `ref` value from the inject noise annotation of each instruction, and returns a dictionary mapping those refs to the corresponding noise data (in `PauliLindbladMap` format) stored in this [`NoiseLearnerV3Results`](#qiskit_ibm_runtime.results.NoiseLearnerV3Results "qiskit_ibm_runtime.results.NoiseLearnerV3Results") object.

**Parameters**

- **instructions** (*Sequence\[CircuitInstruction]*) – The instructions to get the refs from.
- **require\_refs** (*bool*) – Whether to raise if some of the instructions do not own an inject noise annotation. If `False`, all the instructions that do not contain an inject noise annotations are simply skipped when constructing the returned dictionary.

**Raises**

- **ValueError** – If `instructions` contains a number of elements that is not equal to the item in this [`NoiseLearnerV3Results`](#qiskit_ibm_runtime.results.NoiseLearnerV3Results "qiskit_ibm_runtime.results.NoiseLearnerV3Results") object.
- **ValueError** – If some of the instructions do not contain a box.
- **ValueError** – If multiple instructions have the same `ref`.
- **ValueError** – If some of the instructions have no inject noise annotation and `require_refs` if `True`.

**Return type**

dict\[int, PauliLindbladMap]
