Skip to content

Commit

Permalink
Removing duplicate NoiseModel definition (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
HGSilveri authored Apr 11, 2022
1 parent 702af20 commit 879f7de
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions pulser/simulation/noises.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 879f7de

Please sign in to comment.