NotPredicate
- class NotPredicate(predicate)[source]
Bases:
PassPredicate
The NotPredicate class.
The NotPredicate takes a predicate and always returns the opposite truth value.
- __init__(predicate)[source]
Construct a NotPredicate.
- Parameters:
predicate (
PassPredicate
) – The predicate to invert.
Methods
get_truth_value
(circuit, data)Call this predicate, see
PassPredicate
for more info.