PyQTorch functions
PyQObservablesParser
Convert InputType object observables into native PyQTorch object, especially for
running expectation
method from PyQTorch interface class. InputType can be
qadence2-expressions or any other module that implement the same methods.
build(observable)
classmethod
Parses an input expression or list of expressions into a native PyQTorch object.
PARAMETER | DESCRIPTION |
---|---|
observable
|
the input expression. Any qadence2-expressions expression compatible object or object with same methods.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Observable
|
An PyQTorch Observable object. |