qml.queuing.process_queue¶
- process_queue(queue)[source]¶
Process the annotated queue, creating a list of quantum operations and measurement processes.
- Parameters
queue (AnnotatedQueue) – The queue to be processed into individual lists
- Returns
The list of tape operations, the list of tape measurements
- Return type
tuple[list(Operation), list(MeasurementProcess)]
- Raises
QueuingError – If the queue contains objects that cannot be processed into a QuantumScript
code/api/pennylane.queuing.process_queue
Download Python script
Download Notebook
View on GitHub