pygsti.algorithms.test_germ_list_finitel

pygsti.algorithms.test_germ_list_finitel(gateset, germsToTest, L, weights=None, returnSpectrum=False, tol=1e-06)

Test whether a set of germs is able to amplify all of the gateset’s non-gauge parameters.

Parameters:
  • gateset (GateSet) – The gate set (associates gate matrices with gate labels).
  • germsToTest (list of GateStrings) – List of germs gate sequences to test for completeness.
  • L (int) – The finite length to use in amplification testing. Larger values take longer to compute but give more robust results.
  • weights (numpy array, optional) – A 1-D array of weights with length equal len(germsToTest), which multiply the contribution of each germ to the total jacobian matrix determining parameter amplification. If None, a uniform weighting of 1.0/len(germsToTest) is applied.
  • returnSpectrum (bool, optional) – If True, return the jacobian^T*jacobian spectrum in addition to the success flag.
  • tol (float, optional) – Tolerance: an eigenvalue of jacobian^T*jacobian is considered zero and thus a parameter un-amplified when it is less than tol.
Returns:

  • success (bool) – Whether all non-gauge parameters were amplified.
  • spectrum (numpy array) – Only returned when returnSpectrum == True. Sorted array of eigenvalues (from small to large) of the jacobian^T * jacobian matrix used to determine parameter amplification.