xir.ObservableStmt¶
- class ObservableStmt(pref: Union[Decimal, int, str], factors: Sequence[ObservableFactor], use_floats: bool = True)[source]¶
Bases:
object
Observable statements to be used in observable definitions.
- Parameters
pref (Decimal, int, str) – prefactor to the observable terms
factors (list[ObservableFactor]) – list of observable factors
use_floats (bool) – whether floats and complex types are returned instead of
Decimal
Attributes
Returns the terms in this observable statement.
Returns the prefactor of this observable statement.
Returns the float setting of this observable statement.
Returns the wires this observable statement is applied to.
- factors¶
Returns the terms in this observable statement.
- pref¶
Returns the prefactor of this observable statement.
- use_floats¶
Returns the float setting of this observable statement.
- wires¶
Returns the wires this observable statement is applied to.
api/xir.ObservableStmt
Download Python script
Download Notebook
View on GitHub