gulps.analysis.calibration.calibrate¶
- gulps.analysis.calibration.calibrate(candidates, budget=1, local_layer_cost=0.0, workload=None, max_depth=MAX_DEPTH)[source]¶
Choose up to
budgetof the candidates.At each step, the search adds the candidate that lowers the score most, then revisits each chosen candidate once while holding the others fixed. It stops adding candidates when it reaches
budgetor exhausts them.- Parameters:
candidates (Sequence[tuple[float, Gate]]) – The pulses to choose from, each as
(cost, gate); seepower_candidates().budget (int) – The maximum number of candidates.
local_layer_cost (float) – The cost of one simultaneous local-gate layer. A sentence of n pulses has n + 1 such layers.
workload (QuantumCircuit | Sequence[Gate | Operator | ndarray | LocalEquivalenceClass] | None) – A circuit or a list of targets to score. Defaults to the Haar average.
max_depth (int) – Maximum two-qubit sentence depth. Candidates that exceed it score infinity; an all-infinite search raises
SearchDepthError.
- Return type: