From 879f7de0f1a6bb345e214d267aad53e41bef5a8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrique=20Silv=C3=A9rio?= Date: Mon, 11 Apr 2022 15:46:16 +0200 Subject: [PATCH] Removing duplicate NoiseModel definition (#361) --- pulser/simulation/noises.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pulser/simulation/noises.py b/pulser/simulation/noises.py index 72aace52..5cff475d 100644 --- a/pulser/simulation/noises.py +++ b/pulser/simulation/noises.py @@ -19,22 +19,14 @@ """ from __future__ import annotations -from typing import Callable, Optional +from typing import Optional import numpy as np from pulser.register import Register +from pulser.sampler.noise_model import NoiseModel from pulser.sampler.samples import QubitSamples -NoiseModel = Callable[[QubitSamples], QubitSamples] -"""A function that apply some noise on a list of QubitSamples. - -A NoiseModel corresponds to a source of noises present in a device which is -relevant when sampling the input pulses. Physical effects contributing to -modifications of the shined amplitude, detuning and phase felt by qubits of the -register are susceptible to be implemented by a NoiseModel. -""" - def amplitude( reg: Register,