qiskit-documentation/docs/api/qiskit/1.1/qiskit.passmanager.Workflow...

39 lines
1.5 KiB
Plaintext

---
title: WorkflowStatus
description: API reference for qiskit.passmanager.WorkflowStatus
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.passmanager.WorkflowStatus
---
# WorkflowStatus
<Class id="qiskit.passmanager.WorkflowStatus" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/passmanager/compilation_status.py#L35-L52" signature="qiskit.passmanager.WorkflowStatus(count=0, completed_passes=<factory>, previous_run=RunState.FAIL)" modifiers="class">
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.12)")
Collection of compilation status of workflow, i.e. pass manager run.
This data structure is initialized when the pass manager is run, and recursively handed over to underlying tasks. Each pass will update this status once after being executed, and the lifetime of the workflow status object is the time during which the pass manager is running.
## Attributes
### count
<Attribute id="qiskit.passmanager.WorkflowStatus.count" attributeTypeHint="int" attributeValue="0">
Current number of pass execution.
</Attribute>
### previous\_run
<Attribute id="qiskit.passmanager.WorkflowStatus.previous_run" attributeTypeHint="RunState" attributeValue="1">
Status of the latest pass run.
</Attribute>
### completed\_passes
<Attribute id="qiskit.passmanager.WorkflowStatus.completed_passes" attributeTypeHint="set">
Passes already run that have not been invalidated.
</Attribute>
</Class>