pygsti.constructionΒΆ
Gate Set Tomography Object Construction Python Package
Functions
build_gate (stateSpaceDims, stateSpaceLabels, ...) |
Build a Gate object from an expression. |
build_gateset (stateSpaceDims, ...[, basis, ...]) |
Build a new GateSet given lists of gate labels and expressions. |
build_identity_vec (stateSpaceDims[, basis]) |
Build a the identity vector for a given space and basis. |
build_spam_specs ([fiducialGateStrings, ...]) |
Computes rho and E specifiers based on optional arguments. |
build_vector (stateSpaceDims, ...[, basis]) |
Build a rho or E vector from an expression. |
create_gatestring_list (*args, **kwargs) |
Create a list of gate strings using a nested loop. |
gatestring_list (listOfGateLabelTuplesOrStrings) |
Converts a list of gate label tuples or strings to a list of GateString objects. |
gen_all_gatestrings (gateLabels, minlength, ...) |
Generator version of list_all_gatestrings |
gen_all_gatestrings_onelen (gateLabels, length) |
Generator version of list_all_gatestrings_onelen |
generate_fake_data (gatesetOrDataset, ...[, ...]) |
Creates a DataSet using the probabilities obtained from a gateset. |
generate_sim_rb_data (gateset, expRBdataset) |
Creates a DataSet using the gate strings from a given experimental RB DataSet and probabilities generated from a given GateSet. |
generate_sim_rb_data_perfect (gateset, ...[, N]) |
Creates a “perfect” DataSet using the gate strings from a given experimental RB DataSet and probabilities generated from a given GateSet. |
get_spam_strs (specs) |
Get just the string portion of a pair of rho and E specifiers by stripping last element of prepSpecs and first element of effectSpecs to get prepStrs and effectStrs. |
list_all_gatestrings (gateLabels, minlength, ...) |
List all the gate strings in a given length range. |
list_all_gatestrings_onelen (gateLabels, length) |
List all the gate strings of a given length. |
list_all_gatestrings_without_powers_and_cycles (...) |
|
list_lgst_gatestrings (specs, gateLabels) |
List the gate strings required for runnsing LGST. |
list_partial_strings (gateString) |
List the parial strings of gateString, that is, the strings that are the slices gateString[0:n] for 0 <= l <= len(gateString). |
list_random_gatestrings_onelen (gateLabels, ...) |
Create a list of random gate strings of a given length. |
list_strings_lgst_can_estimate (dataset, specs) |
Compute the gate strings that LGST is able to estimate given a set of fiducial strings or prepSpecs and effectSpecs. |
make_elgst_experiment_list (gateLabels, ...) |
Create a list of all the gate strings (i.e. |
make_elgst_lists (gateLabels, germList, ...) |
Create a set of gate string lists for eLGST based on germs and max-lengths |
make_lsgst_experiment_list (gateLabels, ...) |
Create a list of all the gate strings (i.e. |
make_lsgst_lists (gateLabels, prepStrs, ...) |
Create a set of gate string lists for LSGST based on germs and max-lengths. |
make_parameterized_rpe_gate_set (alphaTrue, ...) |
Make a gateset for simulating RPE, paramaterized by rotation angles. |
make_rpe_alpha_str_lists_gx_gz (kList) |
Make alpha cosine and sine gatestring lists for (approx) X pi/4 and Z pi/2 gates. |
make_rpe_data_set (gatesetOrDataset, ...[, ...]) |
Generate a fake RPE DataSet using the probabilities obtained from a gateset. |
make_rpe_epsilon_str_lists_gx_gz (kList) |
Make epsilon cosine and sine gatestring lists for (approx) X pi/4 and Z pi/2 gates. |
make_rpe_string_list_d (log2kMax) |
Generates a dictionary that contains gate strings for all RPE cosine and sine experiments for all three angles. |
make_rpe_theta_str_lists_gx_gz (kList) |
Make theta cosine and sine gatestring lists for (approx) X pi/4 and Z pi/2 gates. |
repeat (x, nTimes[, assertAtLeastOneRep]) |
Repeat x nTimes times. |
repeat_and_truncate (x, N[, assertAtLeastOneRep]) |
Repeat the gate string x so the repeated string has length greater than N, then truncate the string to be exactly length N. |
repeat_count_with_max_length (x, maxLength[, ...]) |
Compute the number of times a gate string x must be repeated such that the repeated string has length <= maxLength. |
repeat_remainder_for_truncation (x, N[, ...]) |
Repeat the gate string x the fewest number of times such that the repeated string has length greater than or equal to N. |
repeat_with_max_length (x, maxLength[, ...]) |
Repeat the gate string x an integer number of times such that the repeated string has length <= maxLength. |
rpe_ensemble_test (alphaTrue, epsilonTrue, ...) |
Experimental test function |
simplify_str (gateStringStr) |
Simplify a string representation of a gate string. |