qermit.mittask¶
- class qermit.taskgraph.mittask.MitTask(_label, _n_in_wires, _n_out_wires, _method=None)[source]¶
An object a TaskGraph node is comprised of. A MitTask object is defined by the _method attribute, which holds a pure function that requires _n_in_wires input arguments and returns a Tuple of _n_out_wires objects. The object callable is defined as the _method attribute.
- Parameters:
- Returns:
MitTask object for adding to TaskGraph.
- __call__(input_wires)[source]¶
Call self as a function.
- Return type:
List[Union[CircuitShots,Circuit,BackendResult,ResultHandle,AnsatzCircuit,ObservableExperiment,int,float,bool,str,QubitPauliOperator,Dict[Qubit,Bit],Dict]]
- __weakref__¶
list of weak references to the object