cirq.KeyCondition

A classical control condition based on a single measurement key.

Inherits From: Condition

This condition resolves to True iff the measurement key is non-zero at the time of resolution.

keys Gets the control keys.
qasm Returns the qasm of this condition.
key Dataclass field
index Dataclass field

Methods

replace_key

View source

Replaces the control keys.

resolve

View source

Resolves the condition based on the measurements.

__eq__

Return self==value.

index -1