{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# An example showing how to generate bootstrapped error bars."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Populating the interactive namespace from numpy and matplotlib\n"
]
}
],
"source": [
"import os\n",
"import sys\n",
"import time\n",
"import json\n",
"\n",
"import pygsti\n",
"from pygsti.modelpacks.legacy import std1Q_XYI\n",
"\n",
"%pylab inline"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"-- Std Practice: Iter 1 of 1 (TP) --: \n",
" --- Iterative MLGST: [##################################################] 100.0% 1282 operation sequences ---\n",
" Iterative MLGST Total Time: 7.2s\n"
]
}
],
"source": [
"#Get a GST estimate (similar to Tutorial 0)\n",
"\n",
"# 1) get the target Model\n",
"target_model = std1Q_XYI.target_model()\n",
"\n",
"# 2) get the building blocks needed to specify which operation sequences are needed\n",
"prep_fiducials, meas_fiducials = std1Q_XYI.prepStrs, std1Q_XYI.effectStrs\n",
"germs = std1Q_XYI.germs\n",
"maxLengths = [1,2,4,8,16]\n",
"\n",
"# 3) generate \"fake\" data from a depolarized version of target_model\n",
"mdl_datagen = target_model.depolarize(op_noise=0.1, spam_noise=0.001)\n",
"listOfExperiments = pygsti.construction.create_lsgst_circuits(\n",
" target_model, prep_fiducials, meas_fiducials, germs, maxLengths)\n",
"ds = pygsti.construction.simulate_data(mdl_datagen, listOfExperiments, nSamples=1000,\n",
" sampleError=\"binomial\", seed=1234)\n",
"\n",
"\n",
"results = pygsti.run_stdpractice_gst(ds, target_model, prep_fiducials, meas_fiducials,\n",
" germs, maxLengths, modes=\"TP\")\n",
"estimated_model = results.estimates['TP'].models['stdgaugeopt']"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Parametric Bootstrapping\n",
"Here we do parametric bootstrapping, as indicated by the 'parametric' argument below.\n",
"The output is eventually stored in the \"mean\" and \"std\" Models, which hold the mean and standard deviation values of the set of bootstrapped models (after gauge optimization). It is this latter \"standard deviation Model\"\n",
"which holds the collection of error bars. Note: due to print setting issues, the outputs that are printed here will not necessarily reflect the true accuracy of the estimates made.\n"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Creating DataSets: \n",
"0 Generating parametric dataset.\n",
"1 Generating parametric dataset.\n",
"2 Generating parametric dataset.\n",
"3 Generating parametric dataset.\n",
"4 Generating parametric dataset.\n",
"5 Generating parametric dataset.\n",
"6 Generating parametric dataset.\n",
"7 Generating parametric dataset.\n",
"8 Generating parametric dataset.\n",
"9 Generating parametric dataset.\n",
"Creating Models: \n",
"Running MLGST Iteration 0 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244653976670047\n",
" 1.192830953128653\n",
" 0.9689326363609111\n",
" 0.9189157715091224\n",
" 0.07422658287182586\n",
" 0.011606078537692615\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 54.3315 (92 data params - 31 model params = expected mean of 61; p-value = 0.7144)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 54.4952\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 139.054 (168 data params - 31 model params = expected mean of 137; p-value = 0.434979)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 139.281\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 433.775 (450 data params - 31 model params = expected mean of 419; p-value = 0.298928)\n",
" Completed in 0.6s\n",
" 2*Delta(log(L)) = 434.566\n",
" Iteration 3 took 0.8s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 871.047 (862 data params - 31 model params = expected mean of 831; p-value = 0.16274)\n",
" Completed in 1.2s\n",
" 2*Delta(log(L)) = 872.842\n",
" Iteration 4 took 1.4s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1273.04 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.325873)\n",
" Completed in 1.8s\n",
" 2*Delta(log(L)) = 1274.82\n",
" Iteration 5 took 2.1s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 637.362 below upper bound of -2.136e+06\n",
" 2*Delta(log(L)) = 1274.72 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.313964)\n",
" Completed in 2.1s\n",
" 2*Delta(log(L)) = 1274.72\n",
" Final MLGST took 2.1s\n",
" \n",
"Iterative MLGST Total Time: 7.2s\n",
"Running MLGST Iteration 1 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.243869714012627\n",
" 1.16340135495376\n",
" 0.9505771532444359\n",
" 0.9192169139457478\n",
" 0.03669226197655027\n",
" 0.007493766406182375\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 62.8464 (92 data params - 31 model params = expected mean of 61; p-value = 0.410693)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 62.9639\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 141.38 (168 data params - 31 model params = expected mean of 137; p-value = 0.38131)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 141.59\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 417.084 (450 data params - 31 model params = expected mean of 419; p-value = 0.517254)\n",
" Completed in 0.9s\n",
" 2*Delta(log(L)) = 417.095\n",
" Iteration 3 took 1.0s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 870.4 (862 data params - 31 model params = expected mean of 831; p-value = 0.166552)\n",
" Completed in 1.2s\n",
" 2*Delta(log(L)) = 870.82\n",
" Iteration 4 took 1.4s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1245.19 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.540991)\n",
" Completed in 2.1s\n",
" 2*Delta(log(L)) = 1245.74\n",
" Iteration 5 took 2.5s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 622.828 below upper bound of -2.13648e+06\n",
" 2*Delta(log(L)) = 1245.66 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.537301)\n",
" Completed in 6.6s\n",
" 2*Delta(log(L)) = 1245.66\n",
" Final MLGST took 6.6s\n",
" \n",
"Iterative MLGST Total Time: 12.3s\n",
"Running MLGST Iteration 2 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244707863399396\n",
" 1.1537403437788096\n",
" 0.9521888844551547\n",
" 0.9084465475528515\n",
" 0.03371022411959681\n",
" 0.02563577347463864\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 48.434 (92 data params - 31 model params = expected mean of 61; p-value = 0.878044)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 48.3704\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 122.032 (168 data params - 31 model params = expected mean of 137; p-value = 0.815624)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 122.378\n",
" Iteration 2 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 419.72 (450 data params - 31 model params = expected mean of 419; p-value = 0.480909)\n",
" Completed in 0.8s\n",
" 2*Delta(log(L)) = 420.806\n",
" Iteration 3 took 1.0s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 845.378 (862 data params - 31 model params = expected mean of 831; p-value = 0.356808)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 847.099\n",
" Iteration 4 took 1.5s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1301.32 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.157176)\n",
" Completed in 2.0s\n",
" 2*Delta(log(L)) = 1303.25\n",
" Iteration 5 took 2.4s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 651.59 below upper bound of -2.13642e+06\n",
" 2*Delta(log(L)) = 1303.18 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.148633)\n",
" Completed in 5.5s\n",
" 2*Delta(log(L)) = 1303.18\n",
" Final MLGST took 5.5s\n",
" \n",
"Iterative MLGST Total Time: 11.3s\n",
"Running MLGST Iteration 3 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244050277155162\n",
" 1.2124619829658454\n",
" 0.9762089809043478\n",
" 0.9203172425509635\n",
" 0.03313244495774025\n",
" 0.02235228395337996\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 63.0797 (92 data params - 31 model params = expected mean of 61; p-value = 0.402678)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 63.7862\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 135.696 (168 data params - 31 model params = expected mean of 137; p-value = 0.515429)\n",
" Completed in 0.3s\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" 2*Delta(log(L)) = 136.6\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 417.539 (450 data params - 31 model params = expected mean of 419; p-value = 0.510963)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 418.44\n",
" Iteration 3 took 0.9s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 805.317 (862 data params - 31 model params = expected mean of 831; p-value = 0.732436)\n",
" Completed in 1.0s\n",
" 2*Delta(log(L)) = 806.567\n",
" Iteration 4 took 1.3s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1185.16 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.907703)\n",
" Completed in 1.7s\n",
" 2*Delta(log(L)) = 1186.39\n",
" Iteration 5 took 2.1s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 593.158 below upper bound of -2.1362e+06\n",
" 2*Delta(log(L)) = 1186.32 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.90367)\n",
" Completed in 1.4s\n",
" 2*Delta(log(L)) = 1186.32\n",
" Final MLGST took 1.4s\n",
" \n",
"Iterative MLGST Total Time: 6.4s\n",
"Running MLGST Iteration 4 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.24484375709879\n",
" 1.1649382938018655\n",
" 0.9568638742519098\n",
" 0.9031869835559561\n",
" 0.033200958666622024\n",
" 0.017284232230193083\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 56.7701 (92 data params - 31 model params = expected mean of 61; p-value = 0.629839)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 56.8667\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 130.755 (168 data params - 31 model params = expected mean of 137; p-value = 0.634092)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 131.182\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 442.102 (450 data params - 31 model params = expected mean of 419; p-value = 0.209906)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 442.695\n",
" Iteration 3 took 0.8s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 888.55 (862 data params - 31 model params = expected mean of 831; p-value = 0.0812685)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 889.66\n",
" Iteration 4 took 1.6s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1313.66 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.106446)\n",
" Completed in 1.7s\n",
" 2*Delta(log(L)) = 1314.88\n",
" Iteration 5 took 2.1s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 657.405 below upper bound of -2.1359e+06\n",
" 2*Delta(log(L)) = 1314.81 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.102417)\n",
" Completed in 4.8s\n",
" 2*Delta(log(L)) = 1314.81\n",
" Final MLGST took 4.9s\n",
" \n",
"Iterative MLGST Total Time: 10.1s\n",
"Running MLGST Iteration 5 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244643403566763\n",
" 1.1562039604688137\n",
" 0.9496844028666662\n",
" 0.9318264748631984\n",
" 0.07270157916508631\n",
" 0.008013391048464916\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 46.2692 (92 data params - 31 model params = expected mean of 61; p-value = 0.918875)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 46.4106\n",
" Iteration 1 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 98.0874 (168 data params - 31 model params = expected mean of 137; p-value = 0.995035)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 98.0483\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 414.136 (450 data params - 31 model params = expected mean of 419; p-value = 0.557892)\n",
" Completed in 0.8s\n",
" 2*Delta(log(L)) = 414.601\n",
" Iteration 3 took 1.0s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 807.782 (862 data params - 31 model params = expected mean of 831; p-value = 0.711756)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 808.505\n",
" Iteration 4 took 1.6s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1206.65 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.811649)\n",
" Completed in 1.9s\n",
" 2*Delta(log(L)) = 1207.53\n",
" Iteration 5 took 2.2s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 603.738 below upper bound of -2.13676e+06\n",
" 2*Delta(log(L)) = 1207.48 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.80705)\n",
" Completed in 4.7s\n",
" 2*Delta(log(L)) = 1207.48\n",
" Final MLGST took 4.8s\n",
" \n",
"Iterative MLGST Total Time: 10.4s\n",
"Running MLGST Iteration 6 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.243488108495374\n",
" 1.165012987691403\n",
" 0.9474366699518069\n",
" 0.9203189657954223\n",
" 0.04090095083314043\n",
" 0.0070200724732477505\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 72.5965 (92 data params - 31 model params = expected mean of 61; p-value = 0.146998)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 72.4835\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 148.693 (168 data params - 31 model params = expected mean of 137; p-value = 0.23353)\n",
" Completed in 0.5s\n",
" 2*Delta(log(L)) = 148.773\n",
" Iteration 2 took 0.6s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 435.476 (450 data params - 31 model params = expected mean of 419; p-value = 0.279334)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 435.899\n",
" Iteration 3 took 0.8s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 867.184 (862 data params - 31 model params = expected mean of 831; p-value = 0.186384)\n",
" Completed in 1.1s\n",
" 2*Delta(log(L)) = 868.062\n",
" Iteration 4 took 1.3s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1278.84 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.285778)\n",
" Completed in 1.8s\n",
" 2*Delta(log(L)) = 1279.9\n",
" Iteration 5 took 2.1s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 639.908 below upper bound of -2.13566e+06\n",
" 2*Delta(log(L)) = 1279.82 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.27927)\n",
" Completed in 5.8s\n",
" 2*Delta(log(L)) = 1279.82\n",
" Final MLGST took 5.8s\n",
" \n",
"Iterative MLGST Total Time: 11.0s\n",
"Running MLGST Iteration 7 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" 4.244825840755222\n",
" 1.1607854217596698\n",
" 0.9292803921438999\n",
" 0.8958478552912302\n",
" 0.03648710217525403\n",
" 0.005481843557321346\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 61.4652 (92 data params - 31 model params = expected mean of 61; p-value = 0.45923)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 61.3186\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 126.314 (168 data params - 31 model params = expected mean of 137; p-value = 0.733237)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 126.31\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 408.23 (450 data params - 31 model params = expected mean of 419; p-value = 0.637659)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 408.489\n",
" Iteration 3 took 0.9s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 846.207 (862 data params - 31 model params = expected mean of 831; p-value = 0.349347)\n",
" Completed in 1.2s\n",
" 2*Delta(log(L)) = 846.906\n",
" Iteration 4 took 1.4s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1204.55 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.823037)\n",
" Completed in 1.8s\n",
" 2*Delta(log(L)) = 1205.22\n",
" Iteration 5 took 2.1s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 602.585 below upper bound of -2.13604e+06\n",
" 2*Delta(log(L)) = 1205.17 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.819723)\n",
" Completed in 4.0s\n",
" 2*Delta(log(L)) = 1205.17\n",
" Final MLGST took 4.0s\n",
" \n",
"Iterative MLGST Total Time: 9.3s\n",
"Running MLGST Iteration 8 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244918327291839\n",
" 1.1497175414386247\n",
" 0.9499958939687557\n",
" 0.8863416645506449\n",
" 0.03990669419647161\n",
" 0.028278621122238244\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 38.1221 (92 data params - 31 model params = expected mean of 61; p-value = 0.99049)\n",
" Completed in 0.5s\n",
" 2*Delta(log(L)) = 38.2328\n",
" Iteration 1 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 117.187 (168 data params - 31 model params = expected mean of 137; p-value = 0.888629)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 117.364\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 397.889 (450 data params - 31 model params = expected mean of 419; p-value = 0.763857)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 398.011\n",
" Iteration 3 took 0.8s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 771.555 (862 data params - 31 model params = expected mean of 831; p-value = 0.930295)\n",
" Completed in 1.1s\n",
" 2*Delta(log(L)) = 772.308\n",
" Iteration 4 took 1.3s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1147.5 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.982818)\n",
" Completed in 1.8s\n",
" 2*Delta(log(L)) = 1148.41\n",
" Iteration 5 took 2.2s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 574.173 below upper bound of -2.13653e+06\n",
" 2*Delta(log(L)) = 1148.35 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.982039)\n",
" Completed in 1.4s\n",
" 2*Delta(log(L)) = 1148.35\n",
" Final MLGST took 1.4s\n",
" \n",
"Iterative MLGST Total Time: 6.6s\n",
"Running MLGST Iteration 9 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244329086925476\n",
" 1.170786859388005\n",
" 0.9552770215877492\n",
" 0.9397649029334779\n",
" 0.030389543292175643\n",
" 0.017057158675289986\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 45.9565 (92 data params - 31 model params = expected mean of 61; p-value = 0.923886)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 46.0754\n",
" Iteration 1 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 112.293 (168 data params - 31 model params = expected mean of 137; p-value = 0.939692)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 112.386\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 400.962 (450 data params - 31 model params = expected mean of 419; p-value = 0.728788)\n",
" Completed in 0.6s\n",
" 2*Delta(log(L)) = 400.815\n",
" Iteration 3 took 0.8s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 835.78 (862 data params - 31 model params = expected mean of 831; p-value = 0.446954)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 836.156\n",
" Iteration 4 took 1.5s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1205.73 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.816695)\n",
" Completed in 1.7s\n",
" 2*Delta(log(L)) = 1205.95\n",
" Iteration 5 took 2.1s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 602.944 below upper bound of -2.13618e+06\n",
" 2*Delta(log(L)) = 1205.89 (1282 data params - 31 model params = expected mean of 1251; p-value = 0.815828)\n",
" Completed in 4.8s\n",
" 2*Delta(log(L)) = 1205.89\n",
" Final MLGST took 4.8s\n",
" \n",
"Iterative MLGST Total Time: 10.0s\n"
]
}
],
"source": [
"#The number of simulated datasets & models made for bootstrapping purposes. \n",
"# For good statistics, should probably be greater than 10.\n",
"numGatesets=10\n",
"\n",
"param_boot_models = pygsti.drivers.make_bootstrap_models(\n",
" numGatesets, ds, 'parametric', prep_fiducials, meas_fiducials, germs, maxLengths,\n",
" inputModel=estimated_model, startSeed=0, returnData=False,\n",
" verbosity=2)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Spam weight 0\n",
"Spam weight 1\n",
"Spam weight 2\n",
"Spam weight 3\n",
"Spam weight 4\n",
"Spam weight 5\n",
"Spam weight 6\n",
"Spam weight 7\n",
"Spam weight 8\n",
"Spam weight 9\n",
"Spam weight 10\n",
"Spam weight 11\n",
"Spam weight 12\n",
"Best SPAM weight is 1.0\n"
]
}
],
"source": [
"gauge_opt_pboot_models = pygsti.drivers.gauge_optimize_model_list(param_boot_models, estimated_model,\n",
" plot=False) #plotting support removed w/matplotlib"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Parametric bootstrapped error bars, with 10 resamples\n",
"\n",
"Error in rho vec:\n",
"TPSPAMVec with dimension 4\n",
" 0.71 0 0 0\n",
"\n",
"\n",
"Error in effect vecs:\n",
"TPPOVM with effect vectors:\n",
"0: FullSPAMVec with dimension 4\n",
" 0 0 0 0\n",
"\n",
"1: ComplementSPAMVec with dimension 4\n",
" 1.41 0 0 0\n",
"\n",
"\n",
"\n",
"Error in Gi:\n",
"TPDenseOp with shape (4, 4)\n",
" 1.00 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
"\n",
"\n",
"Error in Gx:\n",
"TPDenseOp with shape (4, 4)\n",
" 1.00 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
"\n",
"\n",
"Error in Gy:\n",
"TPDenseOp with shape (4, 4)\n",
" 1.00 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
"\n"
]
}
],
"source": [
"pboot_mean = pygsti.drivers.to_mean_model(gauge_opt_pboot_models, estimated_model)\n",
"pboot_std = pygsti.drivers.to_std_model(gauge_opt_pboot_models, estimated_model)\n",
"\n",
"#Summary of the error bars\n",
"print(\"Parametric bootstrapped error bars, with\", numGatesets, \"resamples\\n\")\n",
"print(\"Error in rho vec:\") \n",
"print(pboot_std['rho0'], end='\\n\\n')\n",
"print(\"Error in effect vecs:\")\n",
"print(pboot_std['Mdefault'], end='\\n\\n')\n",
"print(\"Error in Gi:\")\n",
"print(pboot_std['Gi'], end='\\n\\n')\n",
"print(\"Error in Gx:\")\n",
"print(pboot_std['Gx'], end='\\n\\n')\n",
"print(\"Error in Gy:\")\n",
"print(pboot_std['Gy'])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Non-parametric Bootstrapping\n",
"Here we do non-parametric bootstrapping, as indicated by the 'nonparametric' argument below.\n",
"The output is again eventually stored in the \"mean\" and \"std\" Models, which hold the mean and standard deviation values of the set of bootstrapped models (after gauge optimization). It is this latter \"standard deviation Model\"\n",
"which holds the collection of error bars. Note: due to print setting issues, the outputs that are printed here will not necessarily reflect the true accuracy of the estimates made.\n",
"\n",
"(Technical note: ddof = 1 is by default used when computing the standard deviation -- see numpy.std -- meaning that we are computing a standard deviation of the sample, not of the population.)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Creating DataSets: \n",
"0 Generating non-parametric dataset.\n",
"1 Generating non-parametric dataset.\n",
"2 Generating non-parametric dataset.\n",
"3 Generating non-parametric dataset.\n",
"4 Generating non-parametric dataset.\n",
"5 Generating non-parametric dataset.\n",
"6 Generating non-parametric dataset.\n",
"7 Generating non-parametric dataset.\n",
"8 Generating non-parametric dataset.\n",
"9 Generating non-parametric dataset.\n",
"Creating Models: \n",
"Running MLGST Iteration 0 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244845695931912\n",
" 1.180285364189147\n",
" 0.9862995636431281\n",
" 0.902101822920102\n",
" 0.09233562824970798\n",
" 0.06946279872379223\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 163.213 (92 data params - 31 model params = expected mean of 61; p-value = 2.89595e-11)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 163.979\n",
" Iteration 1 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 366.335 (168 data params - 31 model params = expected mean of 137; p-value = 0)\n",
" Completed in 0.6s\n",
" 2*Delta(log(L)) = 367.229\n",
" Iteration 2 took 0.7s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1002.45 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 1004.83\n",
" Iteration 3 took 0.9s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1811.85 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 1815.26\n",
" Iteration 4 took 1.5s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2698.48 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.8s\n",
" 2*Delta(log(L)) = 2701.78\n",
" Iteration 5 took 2.2s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1350.7 below upper bound of -2.13485e+06\n",
" 2*Delta(log(L)) = 2701.4 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.4s\n",
" 2*Delta(log(L)) = 2701.4\n",
" Final MLGST took 1.4s\n",
" \n",
"Iterative MLGST Total Time: 7.0s\n",
"Running MLGST Iteration 1 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244188636580856\n",
" 1.1517827075400349\n",
" 0.9655135770562866\n",
" 0.9082976321749557\n",
" 0.04860263960205439\n",
" 0.02186639107735652\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 146.601 (92 data params - 31 model params = expected mean of 61; p-value = 5.25726e-09)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 147.869\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 274.874 (168 data params - 31 model params = expected mean of 137; p-value = 2.78093e-11)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 276.479\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 861.635 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.8s\n",
" 2*Delta(log(L)) = 864.309\n",
" Iteration 3 took 0.9s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1662.57 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.1s\n",
" 2*Delta(log(L)) = 1664.8\n",
" Iteration 4 took 1.4s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2456.71 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 2.8s\n",
" 2*Delta(log(L)) = 2459.77\n",
" Iteration 5 took 3.1s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1229.73 below upper bound of -2.13563e+06\n",
" 2*Delta(log(L)) = 2459.47 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.7s\n",
" 2*Delta(log(L)) = 2459.47\n",
" Final MLGST took 1.7s\n",
" \n",
"Iterative MLGST Total Time: 7.8s\n",
"Running MLGST Iteration 2 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.2448073300699045\n",
" 1.141572198045367\n",
" 0.9828516150265091\n",
" 0.8821924040403455\n",
" 0.03264139759550893\n",
" 0.018800305608607182\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 152.32 (92 data params - 31 model params = expected mean of 61; p-value = 9.10147e-10)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 152.971\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 298.087 (168 data params - 31 model params = expected mean of 137; p-value = 5.62883e-14)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 299.453\n",
" Iteration 2 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 937.718 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 941.677\n",
" Iteration 3 took 0.8s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1719.38 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 1724.64\n",
" Iteration 4 took 1.6s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2633.13 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.7s\n",
" 2*Delta(log(L)) = 2639.19\n",
" Iteration 5 took 2.0s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1319.4 below upper bound of -2.13523e+06\n",
" 2*Delta(log(L)) = 2638.8 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.4s\n",
" 2*Delta(log(L)) = 2638.8\n",
" Final MLGST took 1.4s\n",
" \n",
"Iterative MLGST Total Time: 6.7s\n",
"Running MLGST Iteration 3 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.243897328409793\n",
" 1.2017515643930934\n",
" 0.9736351960551161\n",
" 0.9362239850082709\n",
" 0.029479066656238114\n",
" 0.006692004333867255\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 174.837 (92 data params - 31 model params = expected mean of 61; p-value = 6.36491e-13)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 175.493\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 325.315 (168 data params - 31 model params = expected mean of 137; p-value = 0)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 326.067\n",
" Iteration 2 took 0.4s\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 858.545 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 859.868\n",
" Iteration 3 took 0.8s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1692.02 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 1694.63\n",
" Iteration 4 took 1.8s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2494.42 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 2.2s\n",
" 2*Delta(log(L)) = 2497.55\n",
" Iteration 5 took 2.6s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1248.61 below upper bound of -2.13547e+06\n",
" 2*Delta(log(L)) = 2497.23 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.5s\n",
" 2*Delta(log(L)) = 2497.23\n",
" Final MLGST took 1.5s\n",
" \n",
"Iterative MLGST Total Time: 7.5s\n",
"Running MLGST Iteration 4 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.246202328766042\n",
" 1.1520853452470667\n",
" 0.9764545650798362\n",
" 0.9066489771225429\n",
" 0.07354357830082349\n",
" 0.019302775885633176\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 176.392 (92 data params - 31 model params = expected mean of 61; p-value = 3.78142e-13)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 177.609\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 316.436 (168 data params - 31 model params = expected mean of 137; p-value = 3.33067e-16)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 318.349\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 913.377 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 915.855\n",
" Iteration 3 took 0.8s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1743.39 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 1746.68\n",
" Iteration 4 took 1.5s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2606.38 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.7s\n",
" 2*Delta(log(L)) = 2610.2\n",
" Iteration 5 took 2.0s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1304.96 below upper bound of -2.13509e+06\n",
" 2*Delta(log(L)) = 2609.92 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 3.5s\n",
" 2*Delta(log(L)) = 2609.92\n",
" Final MLGST took 3.5s\n",
" \n",
"Iterative MLGST Total Time: 8.6s\n",
"Running MLGST Iteration 5 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244598260247877\n",
" 1.1437330330943303\n",
" 0.9616678165967568\n",
" 0.9507864730743012\n",
" 0.032108008334019424\n",
" 0.01837190929970882\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 116.694 (92 data params - 31 model params = expected mean of 61; p-value = 2.32753e-05)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 117.694\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 249.287 (168 data params - 31 model params = expected mean of 137; p-value = 1.50925e-08)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 250.142\n",
" Iteration 2 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 884.985 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.9s\n",
" 2*Delta(log(L)) = 888.74\n",
" Iteration 3 took 1.0s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1681.69 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 1685.49\n",
" Iteration 4 took 1.5s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2479.15 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 2.1s\n",
" 2*Delta(log(L)) = 2483.66\n",
" Iteration 5 took 2.5s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1241.68 below upper bound of -2.13534e+06\n",
" 2*Delta(log(L)) = 2483.36 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 2.1s\n",
" 2*Delta(log(L)) = 2483.36\n",
" Final MLGST took 2.1s\n",
" \n",
"Iterative MLGST Total Time: 8.0s\n",
"Running MLGST Iteration 6 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244215220611\n",
" 1.1794071130858117\n",
" 0.9621288682814436\n",
" 0.9237222775504998\n",
" 0.03227630273126832\n",
" 0.017188885795577733\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 160.089 (92 data params - 31 model params = expected mean of 61; p-value = 7.8896e-11)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 160.35\n",
" Iteration 1 took 0.3s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 321.056 (168 data params - 31 model params = expected mean of 137; p-value = 1.11022e-16)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 321.985\n",
" Iteration 2 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 907.37 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 908.307\n",
" Iteration 3 took 0.9s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1832.64 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.4s\n",
" 2*Delta(log(L)) = 1836.11\n",
" Iteration 4 took 1.7s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2766.72 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.9s\n",
" 2*Delta(log(L)) = 2771.52\n",
" Iteration 5 took 2.3s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1385.58 below upper bound of -2.13458e+06\n",
" 2*Delta(log(L)) = 2771.16 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.3s\n",
" 2*Delta(log(L)) = 2771.16\n",
" Final MLGST took 1.3s\n",
" \n",
"Iterative MLGST Total Time: 7.0s\n",
"Running MLGST Iteration 7 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244815425123308\n",
" 1.149149730793523\n",
" 0.9449066135785853\n",
" 0.8893549404955351\n",
" 0.05783633057230394\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" 0.03235959131326644\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 186.944 (92 data params - 31 model params = expected mean of 61; p-value = 1.04361e-14)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 187.248\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 361.082 (168 data params - 31 model params = expected mean of 137; p-value = 0)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 361.613\n",
" Iteration 2 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 916.064 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.8s\n",
" 2*Delta(log(L)) = 918.454\n",
" Iteration 3 took 0.9s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1693.04 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.4s\n",
" 2*Delta(log(L)) = 1696.61\n",
" Iteration 4 took 1.6s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2570.75 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.8s\n",
" 2*Delta(log(L)) = 2575.11\n",
" Iteration 5 took 2.2s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1287.42 below upper bound of -2.13547e+06\n",
" 2*Delta(log(L)) = 2574.84 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 5.7s\n",
" 2*Delta(log(L)) = 2574.84\n",
" Final MLGST took 5.7s\n",
" \n",
"Iterative MLGST Total Time: 11.4s\n",
"Running MLGST Iteration 8 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244035041550426\n",
" 1.1358903361549433\n",
" 0.9427163127298118\n",
" 0.9110426801402571\n",
" 0.09879829799276398\n",
" 0.02505584386042377\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 112.981 (92 data params - 31 model params = expected mean of 61; p-value = 5.91678e-05)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 113.15\n",
" Iteration 1 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 264.276 (168 data params - 31 model params = expected mean of 137; p-value = 4.06604e-10)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 264.144\n",
" Iteration 2 took 0.5s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 837.798 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.8s\n",
" 2*Delta(log(L)) = 838.614\n",
" Iteration 3 took 1.0s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1605.14 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.6s\n",
" 2*Delta(log(L)) = 1606.16\n",
" Iteration 4 took 1.8s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2494.35 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.8s\n",
" 2*Delta(log(L)) = 2496.13\n",
" Iteration 5 took 2.1s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1247.91 below upper bound of -2.13539e+06\n",
" 2*Delta(log(L)) = 2495.82 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 3.3s\n",
" 2*Delta(log(L)) = 2495.82\n",
" Final MLGST took 3.3s\n",
" \n",
"Iterative MLGST Total Time: 9.1s\n",
"Running MLGST Iteration 9 \n",
"--- Circuit Creation ---\n",
" 1282 sequences created\n",
" Dataset has 1282 entries: 1282 utilized, 0 requested sequences were missing\n",
"--- LGST ---\n",
" Singular values of I_tilde (truncating to first 4 of 6) = \n",
" 4.244395806039566\n",
" 1.1575590718440645\n",
" 0.9761127108175292\n",
" 0.9288056665120381\n",
" 0.07242344826070647\n",
" 0.02966632169440047\n",
" \n",
" Singular values of target I_tilde (truncating to first 4 of 6) = \n",
" 4.244164062089174\n",
" 1.169453419312999\n",
" 0.9475116980891475\n",
" 0.9403516426340927\n",
" 2.709096598579531e-16\n",
" 1.7684881472925075e-16\n",
" \n",
"--- Iterative MLGST: Iter 1 of 5 92 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 144.031 (92 data params - 31 model params = expected mean of 61; p-value = 1.14063e-08)\n",
" Completed in 0.3s\n",
" 2*Delta(log(L)) = 144.887\n",
" Iteration 1 took 0.3s\n",
" \n",
"--- Iterative MLGST: Iter 2 of 5 168 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 311.047 (168 data params - 31 model params = expected mean of 137; p-value = 1.44329e-15)\n",
" Completed in 0.4s\n",
" 2*Delta(log(L)) = 313.029\n",
" Iteration 2 took 0.4s\n",
" \n",
"--- Iterative MLGST: Iter 3 of 5 450 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 885.685 (450 data params - 31 model params = expected mean of 419; p-value = 0)\n",
" Completed in 0.7s\n",
" 2*Delta(log(L)) = 889.834\n",
" Iteration 3 took 0.9s\n",
" \n",
"--- Iterative MLGST: Iter 4 of 5 862 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 1697.91 (862 data params - 31 model params = expected mean of 831; p-value = 0)\n",
" Completed in 1.2s\n",
" 2*Delta(log(L)) = 1702.77\n",
" Iteration 4 took 1.4s\n",
" \n",
"--- Iterative MLGST: Iter 5 of 5 1282 operation sequences ---: \n",
" --- Minimum Chi^2 GST ---\n",
" Sum of Chi^2 = 2511.4 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.9s\n",
" 2*Delta(log(L)) = 2516.97\n",
" Iteration 5 took 2.2s\n",
" \n",
" Switching to ML objective (last iteration)\n",
" --- MLGST ---\n",
" Maximum log(L) = 1258.34 below upper bound of -2.13552e+06\n",
" 2*Delta(log(L)) = 2516.69 (1282 data params - 31 model params = expected mean of 1251; p-value = 0)\n",
" Completed in 1.6s\n",
" 2*Delta(log(L)) = 2516.69\n",
" Final MLGST took 1.6s\n",
" \n",
"Iterative MLGST Total Time: 6.8s\n"
]
}
],
"source": [
"#The number of simulated datasets & models made for bootstrapping purposes. \n",
"# For good statistics, should probably be greater than 10.\n",
"numModels=10\n",
"\n",
"nonparam_boot_models = pygsti.drivers.make_bootstrap_models(\n",
" numModels, ds, 'nonparametric', prep_fiducials, meas_fiducials, germs, maxLengths,\n",
" targetModel=estimated_model, startSeed=0, returnData=False, verbosity=2)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Spam weight 0\n",
"Spam weight 1\n",
"Spam weight 2\n",
"Spam weight 3\n",
"Spam weight 4\n",
"Spam weight 5\n",
"Spam weight 6\n",
"Spam weight 7\n",
"Spam weight 8\n",
"Spam weight 9\n",
"Spam weight 10\n",
"Spam weight 11\n",
"Spam weight 12\n",
"Best SPAM weight is 1.0\n"
]
}
],
"source": [
"gauge_opt_npboot_models = pygsti.drivers.gauge_optimize_model_list(nonparam_boot_models, estimated_model,\n",
" plot=False) #plotting removed w/matplotlib"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Non-parametric bootstrapped error bars, with 10 resamples\n",
"\n",
"Error in rho vec:\n",
"TPSPAMVec with dimension 4\n",
" 0.71 0 0 0\n",
"\n",
"\n",
"Error in effect vecs:\n",
"TPPOVM with effect vectors:\n",
"0: FullSPAMVec with dimension 4\n",
" 0 0 0 0\n",
"\n",
"1: ComplementSPAMVec with dimension 4\n",
" 1.41 0 0 0\n",
"\n",
"\n",
"\n",
"Error in Gi:\n",
"TPDenseOp with shape (4, 4)\n",
" 1.00 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
"\n",
"\n",
"Error in Gx:\n",
"TPDenseOp with shape (4, 4)\n",
" 1.00 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
"\n",
"\n",
"Error in Gy:\n",
"TPDenseOp with shape (4, 4)\n",
" 1.00 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
" 0 0 0 0\n",
"\n"
]
}
],
"source": [
"npboot_mean = pygsti.drivers.to_mean_model(gauge_opt_npboot_models, estimated_model)\n",
"npboot_std = pygsti.drivers.to_std_model(gauge_opt_npboot_models, estimated_model)\n",
"\n",
"#Summary of the error bars\n",
"print(\"Non-parametric bootstrapped error bars, with\", numGatesets, \"resamples\\n\")\n",
"print(\"Error in rho vec:\")\n",
"print(npboot_std['rho0'], end='\\n\\n')\n",
"print(\"Error in effect vecs:\")\n",
"print(npboot_std['Mdefault'], end='\\n\\n')\n",
"print(\"Error in Gi:\")\n",
"print(npboot_std['Gi'], end='\\n\\n')\n",
"print(\"Error in Gx:\")\n",
"print(npboot_std['Gx'], end='\\n\\n')\n",
"print(\"Error in Gy:\")\n",
"print(npboot_std['Gy'])"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/plain": [
"Text(0.5,1,'Scatter plot comparing param vs. non-param bootstrapping error bars.')"
]
},
"execution_count": 9,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