pygsti.extras.idletomography.idttools.extract_idle_errors

pygsti.extras.idletomography.idttools.extract_idle_errors#

extract_idle_errors(nqubits, model, hamiltonian=True, stochastic=True, affine=True, scale_for_idt=True)#

Get error rates on the global idle operation within a CloudNoiseModel object.

Parameters:
  • nqubits (int) – The number of qubits.

  • model (CloudNoiseModel) – The model, to get the idle errors of.

  • hamiltonian (bool, optional) – Whether model includes Hamiltonian, Stochastic, and/or Affine errors (e.g. if the model was built with “H+S” parameterization, then only hamiltonian and stochastic should be set to True).

  • stochastic (bool, optional) – Whether model includes Hamiltonian, Stochastic, and/or Affine errors (e.g. if the model was built with “H+S” parameterization, then only hamiltonian and stochastic should be set to True).

  • affine (bool, optional) – Whether model includes Hamiltonian, Stochastic, and/or Affine errors (e.g. if the model was built with “H+S” parameterization, then only hamiltonian and stochastic should be set to True).

  • scale_for_idt (bool, optional) – Whether rates should be scaled to match the intrinsic rates output by idle tomography. If False, then the rates are simply the coefficients of corresponding terms in the error generator.

Returns:

hamiltonian_rates, stochastic_rates, affine_rates – Dictionaries of error rates. Keys are Pauli labels of length nqubits, e.g. “XIX”, “IIX”, “XZY”. Only nonzero rates are returned.

Return type:

dict