PropertiesContainer#

class PropertiesContainer[source]#

Bases: MutableSet

The properties container class.

This class manages storage of Property objects. These objects are operator factories, generating the aux_operators that will be passed down to quantum algorithms which support their evaluation.

This container class can only contain a single instance of any Property kind. It enforces this via a MutableSet implementation.

Methods

add(value)[source]#

Add an element.

clear()#

This is slow (creates N new iterators!) but effective.

discard(value)[source]#

Remove an element. Do not raise an exception if absent.

isdisjoint(other)#

Return True if two sets have a null intersection.

pop()#

Return the popped value. Raise KeyError if empty.

remove(value)#

Remove an element. If not a member, raise a KeyError.