qat.tomo.util.prepare_gatesets_and_fiducials

qat.tomo.util.prepare_gatesets_and_fiducials(x_pi2='X_PI2', y_pi2='Y_PI2', x_pi='X_PI')

Prepare various gatesets and fiducials

Uses exclusively \(RX(\pi/2)\), \(RX(\pi)\) and/or \(RY(\pi/2)\) gates

Parameters
  • x_pi2 (string, optional) – string denoting \(RX(\pi/2)\). Defaults to X_PI2.

  • x_pi (string, optional) – string denoting \(RX(\pi)\). Defaults to X_PI.

  • y_pi2 (string, optional) – string denoting \(RY(\pi/2)\). Defaults to Y_PI2.

Returns

three dictionaries gatesets, prep_fiducials, meas_fiducials. Possible keys are

  • ’gb1’: Gateset {\(X(\pi/2)\), \(Y(\pi/2)\)}, fiducials {{}, {\(X(\pi/2)\)}, {\(Y(\pi/2)\)}, {\(X(\pi/2)\), \(X(\pi/2)\)}}

  • ’gb2’: Gateset {\(X(\pi/2)\), \(Y(\pi/2)\), \(X(\pi)\)}, fiducials {{}, {\(X(\pi/2)\)}, {\(Y(\pi/2)\)}, {\(X(\pi)\)}}

  • ’bk1’: same gateset as ‘gb1’, fiducials {{}, {\(X(\pi/2)\)}, {\(Y(\pi/2)\)}, {\(X(\pi/2)\), \(X(\pi/2)\)}, {\(X(\pi/2)\), \(X(\pi/2)\), \(X(\pi/2)\)}, {\(Y(\pi/2)\), \(Y(\pi/2)\), \(Y(\pi/2)\)}}

  • ’gb1xgb1’: Gateset ‘gb1’ u {CNOT}, fiducials: cartesian product of ‘gb1’ fiducials

Note

This method is available as an application in Qaptiva Access.