qbraid.runtime.NoiseModelSet
- class NoiseModelSet[source]
Class managing a registry of noise models.
Methods
__init__
()add
(name[, description, overwrite])Add a new noise model to the registry.
clear
()Clear all noise models from the registry.
discard
(name)Remove a noise model if it exists; do nothing otherwise.
from_dict
(data)Create a NoiseModelSet instance from a dictionary.
from_iterable
(data)Create a NoiseModelSet instance from a list, set, or tuple.
get
(key[, default])Retrieve a noise model by name.
items
()Return an iterator over the (name, noise model) pairs.
keys
()pop
(k[,d])If key is not found, d is returned if given, otherwise KeyError is raised.
popitem
()as a 2-tuple; but raise KeyError if D is empty.
remove
(name)Remove a noise model from the registry.
setdefault
(k[,d])update
(other)Update the registry with another NoiseModelSet instance.
values
()Return an iterator over the noise models.