qml.devices.capabilities.ExecutionCondition

class ExecutionCondition(value)[source]

Bases: enum.Enum

The constraint on the support of something.

FINITE_SHOTS_ONLY

If the operator or measurement process is only supported with finite shots.

ANALYTIC_MODE_ONLY

If the operator or measurement process is only supported in analytic execution.

TERMS_MUST_COMMUTE

If the composite operator is supported only when its terms commute.

FINITE_SHOTS_ONLY = 'finiteshots'

If the operator or measurement process is only supported with finite shots.

ANALYTIC_MODE_ONLY = 'analytic'

If the operator or measurement process is only supported in analytic execution.

TERMS_MUST_COMMUTE = 'terms-commute'

If the composite operator is supported only when its terms commute.

Contents

Using PennyLane

Release news

Development

API

Internals