3.5.6. qupulse.program.volatile

Classes

VolatileProperty(expression, dependencies)

Hashable representation of a volatile program property.

VolatileRepetitionCount(expression, scope)

VolatileValue(expression, scope)

Not hashable

Exceptions

InefficientVolatility

This warning is emitted if the requested volatility of a parameter cannot be implemented efficiently by the backend.

VolatileModificationWarning

This warning is emitted if the volatile part of a program gets modified.

exception InefficientVolatility[source]

Bases: RuntimeWarning

This warning is emitted if the requested volatility of a parameter cannot be implemented efficiently by the backend.

exception VolatileModificationWarning[source]

Bases: InefficientVolatility

This warning is emitted if the volatile part of a program gets modified. This might imply that the volatile parameter cannot be changed anymore.

class VolatileProperty(expression: Expression, dependencies: Mapping[str, Expression])

Bases: tuple

Hashable representation of a volatile program property. It does not contain the concrete value. Using the dependencies attribute to calculate the value might yield unexpected results.

Create new instance of VolatileProperty(expression, dependencies)

dependencies: Mapping[str, Expression]

Alias for field number 1

expression: Expression

Alias for field number 0

class VolatileRepetitionCount(expression: ExpressionScalar, scope: Scope)[source]

Bases: VolatileValue

update_volatile_dependencies(new_constants: Mapping[str, Number]) int[source]
class VolatileValue(expression: ExpressionScalar, scope: Scope)[source]

Bases: object

Not hashable

classmethod operation(expression, **operands)[source]
property volatile_property: VolatileProperty