pygsti.models.qutrit.create_qutrit_model

pygsti.models.qutrit.create_qutrit_model#

create_qutrit_model(error_scale, x_angle=1.5707963267948966, y_angle=1.5707963267948966, ms_global=1.5707963267948966, ms_local=0, similarity=False, seed=None, basis='qt', evotype='default')#

Constructs a standard qutrit Model.

This model contains the identity, XX, YY, and Molmer-Sorenson gates.

Parameters:
  • error_scale (float) – Magnitude of random rotations to apply to the returned model. If zero, then perfect “ideal” gates are constructed.

  • x_angle (float, optional) – The rotation angle of each X in the XX gate.

  • y_angle (float, optional) – The rotation angle of each Y in the YY gate.

  • ms_global (float, optional) – The global Molmer-Sorenson angle (theta)

  • ms_local (float, optional) – The local Molmer-Sorenson angle (theta)

  • similarity (bool, optional) – If true, then apply the random rotations (whose strengths are given by error_scale) as similarity transformations rather than just as post-multiplications to the ideal operation matrices.

  • seed (int, optional) – The seed used to generate random rotations.

  • basis (str, optional) – The string abbreviation of the basis of the returned vector. Allowed values are Matrix-unit (std), Gell-Mann (gm) and Qutrit (qt). A Basis object may also be used.

  • evotype (Evotype or str, optional) – The evolution type. The special value “default” is equivalent to specifying the value of pygsti.evotypes.Evotype.default_evotype.

Return type:

Model