pygsti.models.rpemodel

Functions for creating RPE Models

Module Contents

Functions

make_rpe_model(alpha_true, epsilon_true, y_rot, spam_depol)

Make a model for simulating RPE, paramaterized by rotation angles.

rpe_ensemble_test(alpha_true, epsilon_true, y_rot, ...)

Experimental test function

pygsti.models.rpemodel.make_rpe_model(alpha_true, epsilon_true, y_rot, spam_depol, gate_depol=None, with_id=True)

Make a model for simulating RPE, paramaterized by rotation angles.

Note that the output model also has thetaTrue, alpha_true, and epsilon_true added attributes.

Parameters

alpha_truefloat

Angle of Z rotation (canonical RPE requires alpha_true to be close to pi/2).

epsilon_truefloat

Angle of X rotation (canonical RPE requires epsilon_true to be close to pi/4).

y_rotfloat

Angle of rotation about Y axis that, by similarity transformation, rotates X rotation.

spam_depolfloat

Amount to depolarize SPAM by.

gate_depolfloat, optional

Amount to depolarize gates by (defaults to None).

with_idbool, optional

Do we include (perfect) identity or no identity? (Defaults to False; should be False for RPE, True for GST)

Returns

Model

The desired model for RPE; model also has attributes thetaTrue, alpha_true, and epsilon_true, automatically extracted.

pygsti.models.rpemodel.rpe_ensemble_test(alpha_true, epsilon_true, y_rot, spam_depol, log2k_max, n, runs)

Experimental test function