Skip to main content
IBM Quantum Platform

FrozenDict

class samplomatic.utils.FrozenDict(*args, **kwargs)

GitHub

Bases: Mapping

An immutable and hashable dictionary-like mapping.

Keys and values must be hashable. Views onto keys, items, and values are read-only and preserve insertion order. Standard operands like | are supported, but return copies when necessary.

Methods Summary

Column 1
Column 2
copy()Return self, since this instance is immutable.
get(k[,d])
items()
keys()
values()

Methods Documentation

copy

copy()

GitHub

Return self, since this instance is immutable.

get

get(k[, d]) → D[k] if k in D, else d.  d defaults to None.

GitHub

items

items() → a set-like object providing a view on D's items

GitHub

keys

keys() → a set-like object providing a view on D's keys

GitHub

values

values() → an object providing a view on D's values

GitHub
Was this page helpful?
Report a bug, typo, or request content on GitHub.