# Cycle Benchmarking (CB)¶

This example explores implementing Cycle Benchmarking (CB), including the selection of useful parameters. While the example uses a simulator, the circuits generated by this protocol can also be used to characterize the process infidelity of a dressed cycle (a target cycle preceded by a cycle of random elements of the twirling group) in hardware.

## Choosing Parameters¶

The make_cb() method generates a circuit collection to perform cycle benchmarking. The first argument required by make_cb() is the cycle to be benchmarked. The second parameter n_random_cycles is also a required parameter, it tells make_cb() how many times to apply the dressed cycle in each random circuitl.

The number of circuits for each circuit length, n_circuits, is 30 by default and should be chosen to optimize the tradeoff between desired speed and accuracy of the estimation.

The number of randomly chosen Pauli decay strings used to measure the process fidelity, n_decays, should be chosen to exceed $min(20, 4 * n_{qubits} - 1)$. The default value for n_decays is 20 to satisfy this bound. Choosing a value lower than $min(20, 4 * n_{qubits} - 1)$ may result in a biased estimate of the fidelity of the dressed cycle.

The twirl parameter specifies which twirling group the random gates which form the pre-compiled dressed cycles are pulled from. By default, make_cb() uses the Pauli group, "P".

The choice of circuit lengths in n_random_cycles depends on the cycle being characterized as well as the selection of twirling group. If the cycle is a Clifford and the twirling group is "P", lengths should be chosen such that applying the cycle to be benchmarked n_random_cycles times will result in an identity operation. In the example below, we benchmark a cycle containing an $X$ gate and a controlled-$Z$ gate, both of which apply an identity operation when raised to even powers. We therefore choose cycle lengths 4, 12, 64. While the values of n_random_cycles can be any multiple of 2 for this example, users should be careful to choose a range of values such that the exponential decay is evident in the plot; this will ensure that the fit function gets enough information to accurately estimate the fidelity of the dressed cycle. To validate that this condition has been satisfied, users can plot the data from the CB circuits after running the circuits on a simulator or on hardware to see where the chosen data points fall.

The final parameter is a bool, propagate_correction, which tells make_cb() whether to compile correction gates for the twirling group into neighbouring cycles (propagate_correction = False) or propagate them to the end of the circuit (propagate_correction = True). By default, propagate_correction = False. Warning: propagating correction to the end of the circuit can result in arbitrary two-qubit gates at the end of the circuit! The final circuit can be converted to a user-specified gateset using the Configuration tools.

## Benchmarking a Cycle¶

Initialize a cycle to benchmark:

import trueq as tq

cycle = {(0,): tq.Gate.x, (1, 2): tq.Gate.cz}


Generate a circuit collection to run CB on the above cycle with n_circuits = 30 random circuits for each circuit length in n_random_cycles = [4, 12, 64] and n_decays = 24 randomly chosen Pauli decay strings. For the purpose of demonstrating how to recognize a poor choice of n_random_cycles, we generate a second CB circuit collection with the same parameters, except n_random_cycles = [2, 4, 6]. A good choice of n_random_cycles will result in a lower uncertainty in the fit parameters and therefore a more accurate estimate of the average gate fidelity.

circuits = tq.make_cb(cycle, [4, 12, 64], 30, 24)
bad_circuits = tq.make_cb(cycle, [2, 4, 6], 30, 6)


Initialize a simulator with stochastic Pauli noise and run the cycle benchmarking circuits on the simulator to populate their results. Given this error model, we expect the individual Pauli infidelities corresponding to strings with more than two $Z$ or $Y$ to be $0.01 \times 2 \times$ # of $Z/X$ terms, where the factor of two comes from simulating errors in both the random and interleaved cycles.

sim = tq.Simulator().add_stochastic_pauli(px=0.01)
sim.run(circuits)
sim.run(bad_circuits)


Plot the results of the circuits with badly chosen n_random_cycles:

bad_circuits.plot.raw()


We can see in the plots above that our choices of n_random_cycles are sampling from the nearly linear portion of the exponential decay. While this is valid, it is not efficient (in terms of the amount of required data) at precisely learning the decay rates. Below, we show the same plots for the better choice n_random_cycles = [4, 12, 64] (ideally, the best place to sample is $1/e\approx 0.37$).

circuits.plot.raw()


The output parameters of this protocol are displayed below using the fit() function. When the circuits were generated, n_decays = 24 random three-qubit Paulis were chosen as representatives, and the rate of decay of each was measured; these decay rates are reported. However, the parameter of interest is the composite parameter e_F, which is an estimate of the process infidelity of the entire cycle.

circuits.fit()

True-Q formatting will not be loaded without trusting this notebook or rerunning the affected cells. Notebooks can be marked as trusted by clicking "File -> Trust Notebook".
 CB Cycle Benchmarking Paulis (0,) : Gate.x (1, 2) : Gate.cz Key: cycle: Cycle((0,): Gate.x, (1, 2): Gate.cz, immutable=True) labels: (0, 1, 2) protocol: CB twirl: Paulis on [0, 1, 2] ${e}_{F}$ The probability of an error acting on the specified labels during a dressed cycle of interest. 6.2e-02 (4.0e-03) 0.06221191681845506, 0.0040425736623681055 ${e}_{III}$ The probability of the subscripted error acting on the specified labels. 9.4e-01 (4.0e-03) 0.9377880831815449, 0.0040425736623681055 ${p}_{ZZZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.0e-01 (1.1e-02) 0.8992333407466755, 0.010604680027039338 ${p}_{ZZY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.2e-01 (9.5e-03) 0.9151110913758359, 0.009519970774509614 ${p}_{ZYX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.3e-01 (8.2e-03) 0.9265963177920054, 0.008188506552926722 ${p}_{ZXZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.2e-01 (7.8e-03) 0.9225165151912873, 0.007774973151079855 ${p}_{ZXX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.3e-01 (8.7e-03) 0.9272290075565915, 0.00869341713790345 ${p}_{ZXI}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (3.5e-03) 0.9424970532028283, 0.0034605019328734178 ${p}_{ZIY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.1e-01 (6.8e-03) 0.9061096071674914, 0.006816026738461729 ${p}_{ZIX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (4.1e-03) 0.942180940452861, 0.004114679780268866 ${p}_{YYZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.0e-01 (9.8e-03) 0.8993664447397012, 0.009824466612816683 ${p}_{YYI}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.1e-01 (1.1e-02) 0.9090008949001485, 0.011298682391042043 ${p}_{YXX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.1e-01 (8.1e-03) 0.9118660782182565, 0.0081347240360422 ${p}_{YIZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.2e-01 (1.0e-02) 0.9229723089605378, 0.010002168653772783 ${p}_{YII}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (2.9e-03) 0.9561227880877006, 0.002924787645782992 ${p}_{XZZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.3e-01 (7.3e-03) 0.9326427140323468, 0.007343261747479945 ${p}_{XZY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (5.7e-03) 0.9400105969586566, 0.005658762579410924 ${p}_{XYY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (4.0e-03) 0.9606923363237224, 0.003953981663440181 ${p}_{XYX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (3.7e-03) 0.9579175895751006, 0.0036746766052819964 ${p}_{XYI}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (4.8e-03) 0.940022398918536, 0.004832883686816612 ${p}_{XXX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.7e-01 (3.0e-03) 0.9670923049676443, 0.002979473977835915 ${p}_{XIX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (1.1e-03) 0.9804559775960302, 0.0010840482033728678 ${p}_{IZI}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (1.7e-03) 0.9632027007509395, 0.001660889244108422 ${p}_{IYZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (5.4e-03) 0.9405538676613959, 0.005427799465928027 ${p}_{IXY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (3.3e-03) 0.9635525625375633, 0.003255795988073647 ${p}_{IIX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (6.6e-04) 0.9799685586432233, 0.0006576188946675825 ${A}_{ZZZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 8.7e-01 (6.1e-02) 0.8685919767000206, 0.06109544427326692 ${A}_{ZZY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 8.9e-01 (5.3e-02) 0.8931891497645637, 0.05323987394299524 ${A}_{ZYX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.5e-01 (5.4e-02) 0.9492397103375977, 0.05360387015663851 ${A}_{ZXZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 1.1e+00 (4.4e-02) 1.0584216924475478, 0.04409760183284941 ${A}_{ZXX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.1e-01 (4.8e-02) 0.9068564777325977, 0.048208775286963726 ${A}_{ZXI}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (2.2e-02) 0.9560888400612179, 0.022252278456975548 ${A}_{ZIY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.7e-01 (4.2e-02) 0.969371707938732, 0.041997416216649444 ${A}_{ZIX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (2.7e-02) 0.9556369313301264, 0.026820552338652628 ${A}_{YYZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (5.9e-02) 0.97615722014122, 0.059399038386465666 ${A}_{YYI}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.2e-01 (6.0e-02) 0.9203091037194573, 0.06032274664966607 ${A}_{YXX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 1.0e+00 (5.4e-02) 1.0168789372111646, 0.05365580035447985 ${A}_{YIZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (5.3e-02) 0.964249838379339, 0.05301445771532479 ${A}_{YII}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 1.0e+00 (2.1e-02) 1.005612304849155, 0.020679183594183144 ${A}_{XZZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.0e-01 (4.8e-02) 0.9012669448549355, 0.047586217056815865 ${A}_{XZY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.5e-01 (4.0e-02) 0.952890574489664, 0.03980384556934923 ${A}_{XYY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.5e-01 (2.6e-02) 0.9516644000621054, 0.02644862474378531 ${A}_{XYX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (2.7e-02) 0.98298314224882, 0.02746007514584155 ${A}_{XYI}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (2.9e-02) 0.9622118067033194, 0.029244506983501246 ${A}_{XXX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 8.8e-01 (2.1e-02) 0.8767171778198499, 0.02064254898823595 ${A}_{XIX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (1.1e-02) 0.944454623362838, 0.01117725937873403 ${A}_{IZI}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (1.2e-02) 0.9593660761859736, 0.011731547512659564 ${A}_{IYZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.9e-01 (3.4e-02) 0.9862178013815408, 0.033974982874871974 ${A}_{IXY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.5e-01 (2.4e-02) 0.9545455409329325, 0.024422156846899315 ${A}_{IIX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (6.2e-03) 0.9800208529070009, 0.006200989102328245

The default fit is to the process infidelity of the entire dressed cycle. We can also manually specify qubit labels to query the process infidelity of subsets of qubits, whose errors will be with respect to the context of the entire cycle.

circuits.fit(labels=[0, [1, 2], [0, 1, 2]]).plot.compare_twirl("e_F")


Finally, we can compare the individual Pauli infidelities (see CB for definitions), whose average value estimates the process infidelity. See also stochastic calibration SC to select these curves manually.

circuits.plot.compare_pauli_infidelities()


## Targeting Specific Errors¶

We can also use cycle benchmarking to estimate the probabilities of specific errors. These errors can be supplied using an optional parameter targeted_errors at generation (see make_cb() for more details) or by updating the keys of existing CB circuits. We demonstrate the latter approach below. Note that if your circuits are already populated with results, the length of each error must correspond to the number of measurements in your circuits.

targets = ("XII", "ZII", "IIX", "IIZ")
circuits.update_keys(targeted_errors=targets)
circuits.fit()

True-Q formatting will not be loaded without trusting this notebook or rerunning the affected cells. Notebooks can be marked as trusted by clicking "File -> Trust Notebook".
 CB Cycle Benchmarking Paulis (0,) : Gate.x (1, 2) : Gate.cz Key: cycle: Cycle((0,): Gate.x, (1, 2): Gate.cz, immutable=True) labels: (0, 1, 2) protocol: CB twirl: Paulis on [0, 1, 2] ${e}_{F}$ The probability of an error acting on the specified labels during a dressed cycle of interest. 6.2e-02 (4.0e-03) 0.06221191681845506, 0.0040425736623681055 ${e}_{ZII}$ The probability of the subscripted error acting on the specified labels. -2.1e-03 (4.1e-03) -0.002058786258320122, 0.004118837635151202 ${e}_{XII}$ The probability of the subscripted error acting on the specified labels. 1.8e-02 (2.9e-03) 0.01765952668264309, 0.0028703661480129926 ${e}_{IIZ}$ The probability of the subscripted error acting on the specified labels. -7.3e-03 (3.9e-03) -0.007345836738872624, 0.003893147825829716 ${e}_{IIX}$ The probability of the subscripted error acting on the specified labels. 9.5e-03 (3.8e-03) 0.00947475770364603, 0.003816950989023968 ${e}_{III}$ The probability of the subscripted error acting on the specified labels. 9.4e-01 (4.0e-03) 0.9377880831815449, 0.0040425736623681055 ${p}_{ZZZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.0e-01 (1.1e-02) 0.8992333407466755, 0.010604680027039338 ${p}_{ZZY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.2e-01 (9.5e-03) 0.9151110913758359, 0.009519970774509614 ${p}_{ZYX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.3e-01 (8.2e-03) 0.9265963177920054, 0.008188506552926722 ${p}_{ZXZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.2e-01 (7.8e-03) 0.9225165151912873, 0.007774973151079855 ${p}_{ZXX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.3e-01 (8.7e-03) 0.9272290075565915, 0.00869341713790345 ${p}_{ZXI}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (3.5e-03) 0.9424970532028283, 0.0034605019328734178 ${p}_{ZIY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.1e-01 (6.8e-03) 0.9061096071674914, 0.006816026738461729 ${p}_{ZIX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (4.1e-03) 0.942180940452861, 0.004114679780268866 ${p}_{YYZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.0e-01 (9.8e-03) 0.8993664447397012, 0.009824466612816683 ${p}_{YYI}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.1e-01 (1.1e-02) 0.9090008949001485, 0.011298682391042043 ${p}_{YXX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.1e-01 (8.1e-03) 0.9118660782182565, 0.0081347240360422 ${p}_{YIZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.2e-01 (1.0e-02) 0.9229723089605378, 0.010002168653772783 ${p}_{YII}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (2.9e-03) 0.9561227880877006, 0.002924787645782992 ${p}_{XZZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.3e-01 (7.3e-03) 0.9326427140323468, 0.007343261747479945 ${p}_{XZY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (5.7e-03) 0.9400105969586566, 0.005658762579410924 ${p}_{XYY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (4.0e-03) 0.9606923363237224, 0.003953981663440181 ${p}_{XYX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (3.7e-03) 0.9579175895751006, 0.0036746766052819964 ${p}_{XYI}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (4.8e-03) 0.940022398918536, 0.004832883686816612 ${p}_{XXX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.7e-01 (3.0e-03) 0.9670923049676443, 0.002979473977835915 ${p}_{XIX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (1.1e-03) 0.9804559775960302, 0.0010840482033728678 ${p}_{IZI}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (1.7e-03) 0.9632027007509395, 0.001660889244108422 ${p}_{IYZ}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (5.4e-03) 0.9405538676613959, 0.005427799465928027 ${p}_{IXY}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (3.3e-03) 0.9635525625375633, 0.003255795988073647 ${p}_{IIX}$ Decay parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (6.6e-04) 0.9799685586432233, 0.0006576188946675825 ${A}_{ZZZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 8.7e-01 (6.1e-02) 0.8685919767000206, 0.06109544427326692 ${A}_{ZZY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 8.9e-01 (5.3e-02) 0.8931891497645637, 0.05323987394299524 ${A}_{ZYX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.5e-01 (5.4e-02) 0.9492397103375977, 0.05360387015663851 ${A}_{ZXZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 1.1e+00 (4.4e-02) 1.0584216924475478, 0.04409760183284941 ${A}_{ZXX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.1e-01 (4.8e-02) 0.9068564777325977, 0.048208775286963726 ${A}_{ZXI}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (2.2e-02) 0.9560888400612179, 0.022252278456975548 ${A}_{ZIY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.7e-01 (4.2e-02) 0.969371707938732, 0.041997416216649444 ${A}_{ZIX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (2.7e-02) 0.9556369313301264, 0.026820552338652628 ${A}_{YYZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (5.9e-02) 0.97615722014122, 0.059399038386465666 ${A}_{YYI}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.2e-01 (6.0e-02) 0.9203091037194573, 0.06032274664966607 ${A}_{YXX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 1.0e+00 (5.4e-02) 1.0168789372111646, 0.05365580035447985 ${A}_{YIZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (5.3e-02) 0.964249838379339, 0.05301445771532479 ${A}_{YII}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 1.0e+00 (2.1e-02) 1.005612304849155, 0.020679183594183144 ${A}_{XZZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.0e-01 (4.8e-02) 0.9012669448549355, 0.047586217056815865 ${A}_{XZY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.5e-01 (4.0e-02) 0.952890574489664, 0.03980384556934923 ${A}_{XYY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.5e-01 (2.6e-02) 0.9516644000621054, 0.02644862474378531 ${A}_{XYX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (2.7e-02) 0.98298314224882, 0.02746007514584155 ${A}_{XYI}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (2.9e-02) 0.9622118067033194, 0.029244506983501246 ${A}_{XXX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 8.8e-01 (2.1e-02) 0.8767171778198499, 0.02064254898823595 ${A}_{XIX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.4e-01 (1.1e-02) 0.944454623362838, 0.01117725937873403 ${A}_{IZI}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.6e-01 (1.2e-02) 0.9593660761859736, 0.011731547512659564 ${A}_{IYZ}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.9e-01 (3.4e-02) 0.9862178013815408, 0.033974982874871974 ${A}_{IXY}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.5e-01 (2.4e-02) 0.9545455409329325, 0.024422156846899315 ${A}_{IIX}$ SPAM parameter of the exponential decay $Ap^m$ for the given Pauli term. 9.8e-01 (6.2e-03) 0.9800208529070009, 0.006200989102328245

We can plot the probability of specific errors acting on the qubits during the cycle of interest:

circuits.plot.compare_twirl([f"e_{targ}" for targ in targets])


Total running time of the script: ( 0 minutes 13.744 seconds)

Gallery generated by Sphinx-Gallery