96 lines
7.5 KiB
Plaintext
96 lines
7.5 KiB
Plaintext
---
|
||
title: PropertySet
|
||
description: API reference for qiskit.transpiler.PropertySet
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.transpiler.PropertySet
|
||
---
|
||
|
||
# qiskit.transpiler.PropertySet
|
||
|
||
<Class id="qiskit.transpiler.PropertySet" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/transpiler/propertyset.py" signature="PropertySet" modifiers="class">
|
||
A default dictionary-like object
|
||
|
||
### \_\_init\_\_
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.__init__" signature="__init__(*args, **kwargs)">
|
||
Initialize self. See help(type(self)) for accurate signature.
|
||
</Function>
|
||
|
||
## Methods
|
||
|
||
| | |
|
||
| --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||
| [`__init__`](#qiskit.transpiler.PropertySet.__init__ "qiskit.transpiler.PropertySet.__init__")(\*args, \*\*kwargs) | Initialize self. |
|
||
| [`clear`](#qiskit.transpiler.PropertySet.clear "qiskit.transpiler.PropertySet.clear")() | |
|
||
| [`copy`](#qiskit.transpiler.PropertySet.copy "qiskit.transpiler.PropertySet.copy")() | |
|
||
| [`fromkeys`](#qiskit.transpiler.PropertySet.fromkeys "qiskit.transpiler.PropertySet.fromkeys")(\[value]) | Create a new dictionary with keys from iterable and values set to value. |
|
||
| [`get`](#qiskit.transpiler.PropertySet.get "qiskit.transpiler.PropertySet.get")(key\[, default]) | Return the value for key if key is in the dictionary, else default. |
|
||
| [`items`](#qiskit.transpiler.PropertySet.items "qiskit.transpiler.PropertySet.items")() | |
|
||
| [`keys`](#qiskit.transpiler.PropertySet.keys "qiskit.transpiler.PropertySet.keys")() | |
|
||
| [`pop`](#qiskit.transpiler.PropertySet.pop "qiskit.transpiler.PropertySet.pop")(k\[,d]) | If key is not found, d is returned if given, otherwise KeyError is raised |
|
||
| [`popitem`](#qiskit.transpiler.PropertySet.popitem "qiskit.transpiler.PropertySet.popitem")() | 2-tuple; but raise KeyError if D is empty. |
|
||
| [`setdefault`](#qiskit.transpiler.PropertySet.setdefault "qiskit.transpiler.PropertySet.setdefault")(key\[, default]) | Insert key with a value of default if key is not in the dictionary. |
|
||
| [`update`](#qiskit.transpiler.PropertySet.update "qiskit.transpiler.PropertySet.update")(\[E, ]\*\*F) | If E is present and has a .keys() method, then does: for k in E: D\[k] = E\[k] If E is present and lacks a .keys() method, then does: for k, v in E: D\[k] = v In either case, this is followed by: for k in F: D\[k] = F\[k] |
|
||
| [`values`](#qiskit.transpiler.PropertySet.values "qiskit.transpiler.PropertySet.values")() | |
|
||
|
||
### clear
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.clear" signature="clear() → None. Remove all items from D." />
|
||
|
||
### copy
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.copy" signature="copy() → a shallow copy of D" />
|
||
|
||
### fromkeys
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.fromkeys" signature="fromkeys(value=None, /)">
|
||
Create a new dictionary with keys from iterable and values set to value.
|
||
</Function>
|
||
|
||
### get
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.get" signature="get(key, default=None, /)">
|
||
Return the value for key if key is in the dictionary, else default.
|
||
</Function>
|
||
|
||
### items
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.items" signature="items() → a set-like object providing a view on D’s items" />
|
||
|
||
### keys
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.keys" signature="keys() → a set-like object providing a view on D’s keys" />
|
||
|
||
### pop
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.pop" signature="pop(k[, d]) → v, remove specified key and return the corresponding value.">
|
||
If key is not found, d is returned if given, otherwise KeyError is raised
|
||
</Function>
|
||
|
||
### popitem
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.popitem" signature="popitem() → (k, v), remove and return some (key, value) pair as a">
|
||
2-tuple; but raise KeyError if D is empty.
|
||
</Function>
|
||
|
||
### setdefault
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.setdefault" signature="setdefault(key, default=None, /)">
|
||
Insert key with a value of default if key is not in the dictionary.
|
||
|
||
Return the value for key if key is in the dictionary, else default.
|
||
</Function>
|
||
|
||
### update
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.update" signature="update([E, ]**F) → None. Update D from dict/iterable E and F.">
|
||
If E is present and has a .keys() method, then does: for k in E: D\[k] = E\[k] If E is present and lacks a .keys() method, then does: for k, v in E: D\[k] = v In either case, this is followed by: for k in F: D\[k] = F\[k]
|
||
</Function>
|
||
|
||
### values
|
||
|
||
<Function id="qiskit.transpiler.PropertySet.values" signature="values() → an object providing a view on D’s values" />
|
||
</Class>
|
||
|