qml.queuing.AnnotatedQueue¶
- class AnnotatedQueue[source]¶
Bases:
OrderedDictLightweight class that maintains a basic queue of operations, in addition to metadata annotations.
Attributes
Returns a list of objects in the annotated queue
- queue¶
Returns a list of objects in the annotated queue
Methods
append(obj, **kwargs)Append
objinto the queue withkwargsmetadata.get_info(obj)Retrieve the metadata for
obj.items()remove(obj)Remove
objfrom the queue.update_info(obj, **kwargs)Update
obj's metadata withkwargsif it exists in the queue.
code/api/pennylane.queuing.AnnotatedQueue
Download Python script
Download Notebook
View on GitHub