pygsti.circuits.rpecircuits
Functions for creating circuit lists
Module Contents
Functions
|
Make alpha cosine and sine circuit lists for (approx) X pi/4 and Z pi/2 gates. |
|
Make epsilon cosine and sine circuit lists for (approx) X pi/4 and Z pi/2 gates. |
|
Make theta cosine and sine circuit lists for (approx) X pi/4 and Z pi/2 gates. |
|
Creates a dictionary containing all the circuits needed for RPE. |
- pygsti.circuits.rpecircuits.make_rpe_alpha_str_lists_gx_gz(k_list)
Make alpha cosine and sine circuit lists for (approx) X pi/4 and Z pi/2 gates.
These circuits are used to estimate alpha (Z rotation angle).
Parameters
- k_listlist of ints
The list of “germ powers” to be used. Typically successive powers of two; e.g. [1,2,4,8,16].
Returns
- cosStrListlist of Circuits
The list of “cosine strings” to be used for alpha estimation.
- sinStrListlist of Circuits
The list of “sine strings” to be used for alpha estimation.
- pygsti.circuits.rpecircuits.make_rpe_epsilon_str_lists_gx_gz(k_list)
Make epsilon cosine and sine circuit lists for (approx) X pi/4 and Z pi/2 gates.
These circuits are used to estimate epsilon (X rotation angle).
Parameters
- k_listlist of ints
The list of “germ powers” to be used. Typically successive powers of two; e.g. [1,2,4,8,16].
Returns
- epsilonCosStrListlist of Circuits
The list of “cosine strings” to be used for epsilon estimation.
- epsilonSinStrListlist of Circuits
The list of “sine strings” to be used for epsilon estimation.
- pygsti.circuits.rpecircuits.make_rpe_theta_str_lists_gx_gz(k_list)
Make theta cosine and sine circuit lists for (approx) X pi/4 and Z pi/2 gates.
These circuits are used to estimate theta (X-Z axes angle).
Parameters
- k_listlist of ints
The list of “germ powers” to be used. Typically successive powers of two; e.g. [1,2,4,8,16].
Returns
- thetaCosStrListlist of Circuits
The list of “cosine strings” to be used for theta estimation.
- thetaSinStrListlist of Circuits
The list of “sine strings” to be used for theta estimation.
- pygsti.circuits.rpecircuits.make_rpe_string_list_d(log2k_max)
Creates a dictionary containing all the circuits needed for RPE.
This includes circuits for all RPE cosine and sine experiments for all three angles.
Parameters
- log2k_maxint
Maximum number of times to repeat an RPE “germ”
Returns
- totalStrListDdict
A dictionary containing all circuits for all sine and cosine experiments for alpha, epsilon, and theta. The keys of the returned dictionary are:
‘alpha’,’cos’ : List of circuits for cosine experiments used to determine alpha.
‘alpha’,’sin’ : List of circuits for sine experiments used to determine alpha.
- ‘epsilon’,’cos’List of circuits for cosine experiments used to
determine epsilon.
‘epsilon’,’sin’ : List of circuits for sine experiments used to determine epsilon.
‘theta’,’cos’ : List of circuits for cosine experiments used to determine theta.
‘theta’,’sin’ : List of circuits for sine experiments used to determine theta.
‘totalStrList’ : All above circuits combined into one list; duplicates removed.