infidelity_stf¶
-
static
OperationNamespace.
infidelity_stf
(sample_times, hamiltonian, target_operator, noise_operators=None, *, name=None)¶ Creates the total infidelity of the given system.
See
infidelity_pwc
for information about the total infidelity created by this function.- Parameters
sample_times (np.ndarray(1D, real)) – The times at which the Hamiltonian and noise operators (if present) should be sampled for the integration. Must start with 0, be ordered, and contain at least one element.
hamiltonian (Stf) – The control Hamiltonian \(H_{\mathrm c}(t)\). You can provide either a single Hamiltonian or a batch of them.
target_operator (Target) – The object describing the target gate \(U_\mathrm{target}\) and (optionally) the filter function projector \(P\). If you provide a batch of Hamiltonians, the function uses the same target for all the elements in the batch.
noise_operators (List[Stf], optional) – The perturbative noise operators \(\{N_j(t)\}\). You can omit this list if there are no noises.
name (str, optional) – The name of the node.
- Returns
The infidelity of the given system with respect to the given target at the last time in sample_times. If you provide a batch of Hamiltonians, the function returns a batch of infidelities contaning one infidelity for each Hamiltonian of the input batch.
- Return type
See also
infidelity_pwc()
Corresponding function for piecewise-constant controls.