pygsti.extras.idletomography.idtcore.idle_tomography_fidpairs

pygsti.extras.idletomography.idtcore.idle_tomography_fidpairs#

idle_tomography_fidpairs(nqubits, maxweight=2, include_hamiltonian=True, include_stochastic=True, include_affine=True, ham_tmpl='auto', preferred_prep_basis_signs=('+', '+', '+'), preferred_meas_basis_signs=('+', '+', '+'))#

Construct a list of Pauli-basis fiducial pairs for idle tomography.

This function constructs the “standard” set of fiducial pairs used to generate idle tomography sequences which probe Hamiltonian, Stochastic, and/or Affine errors in an idle gate.

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

  • maxweight (int, optional) – The maximum weight of errors to consider.

  • include_hamiltonian (bool, optional) – Whether to include fiducial pairs for finding Hamiltonian-, Stochastic-, and Affine-type errors.

  • include_stochastic (bool, optional) – Whether to include fiducial pairs for finding Hamiltonian-, Stochastic-, and Affine-type errors.

  • include_affine (bool, optional) – Whether to include fiducial pairs for finding Hamiltonian-, Stochastic-, and Affine-type errors.

  • ham_tmpl (tuple, optional) – A tuple of length-maxweight Pauli strings (i.e. string w/letters “X”, “Y”, or “Z”), describing how to construct the fiducial pairs used to detect Hamiltonian errors. The special (and default) value “auto” uses (“X”,”Y”,”Z”) and (“ZY”,”ZX”,”XZ”,”YZ”,”YX”,”XY”) for maxweight equal to 1 and 2, repectively, and will generate an error if maxweight > 2.

  • preferred_prep_basis_signs (tuple, optional) – A 3-tuple of “+” or “-” strings indicating which sign for preparing or measuring in the X, Y, and Z bases is preferable. Usually one orientation if preferred because it’s easier to achieve using the native model.

  • preferred_meas_basis_signs (tuple, optional) – A 3-tuple of “+” or “-” strings indicating which sign for preparing or measuring in the X, Y, and Z bases is preferable. Usually one orientation if preferred because it’s easier to achieve using the native model.

Returns:

a list of (prep,meas) 2-tuples of NQPauliState objects, each of length nqubits, representing the fiducial pairs.

Return type:

list