ManyQuditGatesPredicate
- class ManyQuditGatesPredicate(check_circuit=True, check_model=True)[source]
Bases:
PassPredicateCheck if many-qudit gates are in the circuit and/or model.
- __init__(check_circuit=True, check_model=True)[source]
Construct a ManyQuditGatesPredicate.
- Parameters:
check_circuit (
bool) – Whether to check the circuit for many-qudit gates. (Default: True)check_model (
bool) – Whether to check the model for many-qudit gates. (Default: True)
- Raises:
ValueError – If both check_circuit and check_model are False.
Methods
get_truth_value(circuit, data)Call this predicate, see
PassPredicatefor more info.