qml.queuing.AnnotatedQueue¶
-
class
AnnotatedQueue
[source]¶ Bases:
collections.OrderedDict
Lightweight 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
obj
into the queue withkwargs
metadata.get_info
(obj)Retrieve the metadata for
obj
.remove
(obj)Remove
obj
from the queue.update_info
(obj, **kwargs)Update
obj
’s metadata withkwargs
if it exists in the queue.-
code/api/pennylane.queuing.AnnotatedQueue
Download Python script
Download Notebook
View on GitHub