Skip to content

Commit

Permalink
Add NoiseModel and EmulatorConfig to API reference
Browse files Browse the repository at this point in the history
  • Loading branch information
HGSilveri committed Apr 26, 2024
1 parent 0a69416 commit 7e8b4b9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
5 changes: 5 additions & 0 deletions docs/source/apidoc/backend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ QPU
Emulators
----------

Configuration
^^^^^^^^^^^^^^
.. autoclass:: pulser.EmulatorConfig
:members:

Local
^^^^^^^
.. autoclass:: pulser_simulation.QutipBackend
Expand Down
5 changes: 4 additions & 1 deletion docs/source/apidoc/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ which when associated with a :class:`pulser.Sequence` condition its development.

.. autodata:: pulser.devices.DigitalAnalogDevice


Noise Model
--------------
.. automodule:: pulser.noise_model
:members:

Channels
---------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/apidoc/simulation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ in favour of :class:`QutipEmulator`.
SimConfig
----------------------

.. automodule:: pulser_simulation.simconfig
.. autoclass:: pulser_simulation.SimConfig
:members:

Simulation Results
Expand Down
18 changes: 12 additions & 6 deletions pulser-core/pulser/noise_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,39 @@ class NoiseModel:
are only taken into account when the related noise type is selected.
Args:
noise_types: Noise types to include in the emulation. Available
options:
noise_types: Noise types to include in the emulation.
Available options:
- "relaxation": Noise due to a decay from the Rydberg to
the ground state (parametrized by `relaxation_rate`), commonly
characterized experimentally by the T1 time.
- "dephasing": Random phase (Z) flip (parametrized
by `dephasing_rate`), commonly characterized experimentally
by the T2* time.
- "depolarizing": Quantum noise where the state is
turned into the maximally mixed state with rate
`depolarizing_rate`. While it does not describe a physical
phenomenon, it is a commonly used tool to test the system
under a uniform combination of phase flip (Z) and
bit flip (X) errors.
- "eff_noise": General effective noise channel defined by
the set of collapse operators `eff_noise_opers`
and the corresponding rates distribution
`eff_noise_rates`.
- "doppler": Local atom detuning due to termal motion of the
atoms and Doppler effect with respect to laser frequency.
Parametrized by the `temperature` field.
- "amplitude": Gaussian damping due to finite laser waist and
laser amplitude fluctuations. Parametrized by `laser_waist`
and `amp_sigma`.
- "SPAM": SPAM errors. Parametrized by `state_prep_error`,
`p_false_pos` and `p_false_neg`.
laser amplitude fluctuations. Parametrized by `laser_waist`
and `amp_sigma`.
- "SPAM": SPAM errors. Parametrized by
`state_prep_error`, `p_false_pos` and `p_false_neg`.
runs: Number of runs needed (each run draws a new random noise).
samples_per_run: Number of samples per noisy run. Useful for
Expand Down

0 comments on commit 7e8b4b9

Please sign in to comment.