LogErrorPass
- class LogErrorPass(error_threshold=None)[source]
Bases:
BasePassA pass that logs the current error to the BQSKit log.
- __init__(error_threshold=None)[source]
Construct a LogErrorPass.
- Parameters:
error_threshold (
float|None) – Logs a warning if the error is above this threshold. If None, never log a warning. (Default: None)
Attributes
The name of the pass.
Methods
execute(*args, **kwargs)Map a function over iterable arguments in parallel.
get_connectivity(_, data)Retrieve the current connectivity of the circuit.
get_model(_, data)Retrieve the machine model from the data dictionary.
get_placement(_, data)Retrieve the logical to physical qubit map from the data dictionary.
get_target(_, data)Retrieve the target from the data dictionary.
in_parallel(data)Return true if pass is being executed in a parallel.
run(circuit, data)Perform the pass's operation, see
BasePassfor more.