{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [], "source": [ "from pygsti.extras import rb" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Importing importer-test.txt...Complete.\n" ] }, { "data": { "text/plain": [ "6" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data = rb.io.import_rb_summary_data(['importer-test.txt',])\n", "data.number_of_qubits" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false }, "outputs": [], "source": [ "out = rb.analysis.std_practice_analysis(data,bootstrap_samples=100)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "[0.81500000000000006,\n", " 0.65156250000000004,\n", " 0.52874999999999994,\n", " 0.42687500000000006,\n", " 0.35906249999999995,\n", " 0.27999999999999997,\n", " 0.21843750000000001,\n", " 0.18437500000000001,\n", " 0.14718749999999997]" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "out.data.ASPs" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/plain": [ "0.0082457900086740157" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "out.fits['full'].estimates['r']" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.3" } }, "nbformat": 4, "nbformat_minor": 2 }