WidthPredicate
- class WidthPredicate(width)[source]
Bases:
PassPredicate
The WidthPredicate class.
The WidthPredicate class returns True if the circuit’s width (number of qudits) is less than a specified number.
- __init__(width)[source]
Construct a WidthPredicate.
- Parameters:
width (
int
) – Return true if the circuit’s width is less than this.
Methods
get_truth_value
(circuit, data)Call this predicate, see
PassPredicate
for more info.