pygsti 0.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pygsti-0.0.0/CONTRIBUTING.md +68 -0
- pygsti-0.0.0/LICENSE +202 -0
- pygsti-0.0.0/MANIFEST.in +31 -0
- pygsti-0.0.0/PKG-INFO +240 -0
- pygsti-0.0.0/README.md +199 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/1QGST-InterpolatedOps.ipynb +557 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/2QGST-CreatingModels.ipynb +199 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/2QGST-ErrorBars.ipynb +115 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/2QGST-RunningIt.ipynb +197 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/BootstrappedErrorBars.ipynb +234 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/CirqIntegration.ipynb +609 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/ContextDependence.ipynb +188 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/FisherInformation.ipynb +255 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/GOpt-AddingNewOptimizations.ipynb +147 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/GOpt-NonIdealTargets.ipynb +179 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/Leakage.ipynb +401 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/MPI-GermSelection.ipynb +514 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/MPI-RunningGST.ipynb +159 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/ModelMemberGraph.ipynb +237 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/QutritGST.ipynb +168 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/Reports-LGSTonly.ipynb +86 -0
- pygsti-0.0.0/jupyter_notebooks/Examples/example_files/.git_placeholder +0 -0
- pygsti-0.0.0/jupyter_notebooks/FAQ.ipynb +428 -0
- pygsti-0.0.0/jupyter_notebooks/START_HERE.ipynb +75 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/00-Protocols.ipynb +340 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/01-Essential-Objects.ipynb +443 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/02-Using-Essential-Objects.ipynb +504 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/03-Miscellaneous.ipynb +41 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/CircuitSimulation.ipynb +212 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/DataSimulation.ipynb +272 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/DatasetComparison.ipynb +229 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/DriftCharacterization.ipynb +380 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/GST-Driverfunctions.ipynb +329 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/GST-Overview-functionbased.ipynb +124 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/GST-Overview.ipynb +155 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/GST-Protocols.ipynb +598 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/IdleTomography.ipynb +178 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/MirrorCircuitBenchmarks.ipynb +358 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/ModelTesting-functions.ipynb +220 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/ModelTesting.ipynb +272 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RB-BinaryRB.ipynb +218 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RB-CliffordRB.ipynb +396 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RB-DirectRB.ipynb +423 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RB-MirrorRB-Universal-Gate-Sets.ipynb +370 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RB-MirrorRB.ipynb +397 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RB-MultiRBExperiments.ipynb +800 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RB-Overview.ipynb +390 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RB-Samplers.ipynb +434 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/RobustPhaseEstimation.ipynb +236 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/VolumetricBenchmarks.ipynb +279 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/CircuitSimulation-CHP.ipynb +1124 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/CliffordRB-Simulation-ExplicitModel.ipynb +213 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/CliffordRB-Simulation-ImplicitModel.ipynb +221 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/ForwardSimulationTypes.ipynb +261 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/GST-FiducialAndGermSelection.ipynb +410 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/GST-FiducialPairReduction.ipynb +390 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/GST-LowLevel.ipynb +425 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/GaugeOpt.ipynb +251 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/algorithms/advanced/Time-dependent-GST.ipynb +370 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/Circuit.ipynb +763 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/CircuitLists.ipynb +253 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/DataSet.ipynb +248 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/ExperimentDesign.ipynb +553 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/ExplicitModel.ipynb +416 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/ImplicitModel.ipynb +566 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/ModelNoise.ipynb +723 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/ModelParameterization.ipynb +283 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/ProcessorSpec.ipynb +425 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/CustomOperator.ipynb +224 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/CustomPOVM.ipynb +332 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/GSTCircuitConstruction.ipynb +177 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/IBMQExperiment.ipynb +485 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/Instruments.ipynb +308 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/InterpolatedOperators.ipynb +404 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/MatrixBases.ipynb +192 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/ModelPacks.ipynb +180 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/MultiDataSet.ipynb +117 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/OperationFactories.ipynb +201 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/Operators.ipynb +465 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/ParameterBounds.ipynb +145 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/ParameterLabels.ipynb +192 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/Results.ipynb +296 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/StateSpace.ipynb +150 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/objects/advanced/TimestampedDataSets.ipynb +284 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/other/FileIO.ipynb +405 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/other/ParityBenchmarking.ipynb +1632 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/reporting/Metrics.ipynb +299 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/reporting/ModelAnalysisMetrics.ipynb +93 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/reporting/ProceduralErrorBars.ipynb +174 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/reporting/ReportGeneration.ipynb +375 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/reporting/Workspace.ipynb +109 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/reporting/WorkspaceExamples.ipynb +451 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/reporting/advanced/WorkspaceSwitchboards.ipynb +571 -0
- pygsti-0.0.0/jupyter_notebooks/Tutorials/tutorial_files/.git_placeholder +0 -0
- pygsti-0.0.0/optional-requirements.txt +13 -0
- pygsti-0.0.0/pygsti/__init__.py +36 -0
- pygsti-0.0.0/pygsti.egg-info/PKG-INFO +240 -0
- pygsti-0.0.0/pygsti.egg-info/SOURCES.txt +337 -0
- pygsti-0.0.0/pygsti.egg-info/dependency_links.txt +1 -0
- pygsti-0.0.0/pygsti.egg-info/requires.txt +76 -0
- pygsti-0.0.0/pygsti.egg-info/top_level.txt +1 -0
- pygsti-0.0.0/pyproject.toml +97 -0
- pygsti-0.0.0/requirements.txt +6 -0
- pygsti-0.0.0/scripts/upgrade2v0.9.7.py +458 -0
- pygsti-0.0.0/setup.cfg +17 -0
- pygsti-0.0.0/setup.py +360 -0
- pygsti-0.0.0/test/__init__.py +0 -0
- pygsti-0.0.0/test/output/.placeholder +0 -0
- pygsti-0.0.0/test/runTests.py +213 -0
- pygsti-0.0.0/test/test_packages/algorithms/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/algorithms/algorithmsTestCase.py +8 -0
- pygsti-0.0.0/test/test_packages/algorithms/basecase.py +45 -0
- pygsti-0.0.0/test/test_packages/algorithms/test_core.py +60 -0
- pygsti-0.0.0/test/test_packages/algorithms/test_fiducialpairreduction.py +83 -0
- pygsti-0.0.0/test/test_packages/algorithms/test_fogi_gst.py +381 -0
- pygsti-0.0.0/test/test_packages/algorithms/test_germselection.py +183 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/Fake_Dataset_none.txt +44 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/Fake_Dataset_none.txt.cache +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/Fake_Dataset_round.txt +44 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/IFPR_fidPairs_dict.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/analysis.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/analysis.model +42 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/analysis_lgst.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/calcMethods1Q.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/calcMethods1Q_redmod.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/create_reference_files.py +50 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/deprecated.dataset +8427 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/idt_nQsequenceCache.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/nqubit_1Q_seqs.json +361 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/nqubit_2Q.dataset +105 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/nqubit_2Q_seqs.json +1247 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/nqubit_2Qterms.cache +1 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.3.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.3.dataset.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.3.dataset.txt +442 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.3.gateset.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.3.gateset.txt +37 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.3.results.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.6.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.6.dataset.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.6.dataset.txt +1703 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.6.gateset.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.6.gateset.txt +40 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.6.results.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.7.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.7.dataset.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.7.dataset.txt +451 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.7.gateset.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.7.gateset.txt +41 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/pygsti0.9.7.results.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/rb_io_test.txt +723 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/repLib_dprobs.pkl +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/report_dashboard_template.html +114 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/reportgen.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/reportgen2.dataset +0 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/rpe_test_ds.txt +65 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/test1Qcalc_redmod_exact.json +1760 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/test1Qcalc_redmod_terms.json +1769 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/test1Qcalc_std_exact.json +1869 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/test1Qcalc_std_prunedpath.json +1716 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/test1Qcalc_std_terms.json +1716 -0
- pygsti-0.0.0/test/test_packages/cmp_chk_files/timeseries_data_trunc.txt +121 -0
- pygsti-0.0.0/test/test_packages/construction/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/construction/test_gateconstruction.py +34 -0
- pygsti-0.0.0/test/test_packages/construction/test_gatesetconstruction.py +70 -0
- pygsti-0.0.0/test/test_packages/drivers/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/drivers/demoCalcMethods2Q.py +270 -0
- pygsti-0.0.0/test/test_packages/drivers/test_calcmethods1Q.py +689 -0
- pygsti-0.0.0/test/test_packages/drivers/test_continuousgates.py +126 -0
- pygsti-0.0.0/test/test_packages/drivers/test_drivers.py +324 -0
- pygsti-0.0.0/test/test_packages/drivers/test_nqubit.py +297 -0
- pygsti-0.0.0/test/test_packages/drivers/test_timedep.py +178 -0
- pygsti-0.0.0/test/test_packages/extras/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/extras/test_drift.py +162 -0
- pygsti-0.0.0/test/test_packages/extras/test_idt.py +414 -0
- pygsti-0.0.0/test/test_packages/extras/test_interpygate.py +339 -0
- pygsti-0.0.0/test/test_packages/extras/test_rb.py +87 -0
- pygsti-0.0.0/test/test_packages/extras/test_rpe.py +92 -0
- pygsti-0.0.0/test/test_packages/extras/test_rpeobjects.py +39 -0
- pygsti-0.0.0/test/test_packages/iotest/__init__.py +138 -0
- pygsti-0.0.0/test/test_packages/iotest/references.py +212 -0
- pygsti-0.0.0/test/test_packages/iotest/test_codecs.py +332 -0
- pygsti-0.0.0/test/test_packages/iotest/test_loaders.py +101 -0
- pygsti-0.0.0/test/test_packages/iotest/test_niceserialization.py +100 -0
- pygsti-0.0.0/test/test_packages/iotest/test_stdinput.py +664 -0
- pygsti-0.0.0/test/test_packages/iotest/test_stdinputparser.py +830 -0
- pygsti-0.0.0/test/test_packages/iotest/test_writers.py +121 -0
- pygsti-0.0.0/test/test_packages/objects/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/objects/test_advancedgatesetparameterization.py +176 -0
- pygsti-0.0.0/test/test_packages/objects/test_circuit.py +45 -0
- pygsti-0.0.0/test/test_packages/objects/test_datasets.py +480 -0
- pygsti-0.0.0/test/test_packages/objects/test_evaltree.py +64 -0
- pygsti-0.0.0/test/test_packages/objects/test_gatesets.py +375 -0
- pygsti-0.0.0/test/test_packages/objects/test_hessian.py +403 -0
- pygsti-0.0.0/test/test_packages/objects/test_instruments.py +349 -0
- pygsti-0.0.0/test/test_packages/objects/test_labeldicts.py +56 -0
- pygsti-0.0.0/test/test_packages/objects/test_labels.py +80 -0
- pygsti-0.0.0/test/test_packages/objects/test_opfactories.py +182 -0
- pygsti-0.0.0/test/test_packages/objects/test_printermpi.py +31 -0
- pygsti-0.0.0/test/test_packages/objects/test_processorspec.py +19 -0
- pygsti-0.0.0/test/test_packages/objects/test_profiler.py +64 -0
- pygsti-0.0.0/test/test_packages/objects/test_replib.py +42 -0
- pygsti-0.0.0/test/test_packages/objects/test_resultsandestimate.py +35 -0
- pygsti-0.0.0/test/test_packages/objects/test_spamvecs.py +227 -0
- pygsti-0.0.0/test/test_packages/optimize/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/report/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/report/reportBaseCase.py +164 -0
- pygsti-0.0.0/test/test_packages/report/test_report.py +309 -0
- pygsti-0.0.0/test/test_packages/reportb/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/reportb/test_colormaps.py +96 -0
- pygsti-0.0.0/test/test_packages/reportb/test_notebook.py +87 -0
- pygsti-0.0.0/test/test_packages/reportb/test_reportables.py +211 -0
- pygsti-0.0.0/test/test_packages/reportb/test_workspace.py +711 -0
- pygsti-0.0.0/test/test_packages/temp_test_files/.placeholder +0 -0
- pygsti-0.0.0/test/test_packages/testutils/__init__.py +1 -0
- pygsti-0.0.0/test/test_packages/testutils/basecase.py +115 -0
- pygsti-0.0.0/test/test_packages/tools/__init__.py +0 -0
- pygsti-0.0.0/test/test_packages/tools/test_logl.py +89 -0
- pygsti-0.0.0/test/unit/__init__.py +8 -0
- pygsti-0.0.0/test/unit/algorithms/__init__.py +2 -0
- pygsti-0.0.0/test/unit/algorithms/fixtures.py +90 -0
- pygsti-0.0.0/test/unit/algorithms/test_compilers.py +370 -0
- pygsti-0.0.0/test/unit/algorithms/test_contract.py +139 -0
- pygsti-0.0.0/test/unit/algorithms/test_core.py +453 -0
- pygsti-0.0.0/test/unit/algorithms/test_fiducialpairreduction.py +179 -0
- pygsti-0.0.0/test/unit/algorithms/test_fiducialselection.py +250 -0
- pygsti-0.0.0/test/unit/algorithms/test_gaugeopt.py +226 -0
- pygsti-0.0.0/test/unit/algorithms/test_germselection.py +391 -0
- pygsti-0.0.0/test/unit/algorithms/test_grammatrix.py +27 -0
- pygsti-0.0.0/test/unit/algorithms/test_grasp.py +105 -0
- pygsti-0.0.0/test/unit/algorithms/test_randomcircuit.py +97 -0
- pygsti-0.0.0/test/unit/algorithms/test_scoring.py +21 -0
- pygsti-0.0.0/test/unit/construction/__init__.py +0 -0
- pygsti-0.0.0/test/unit/construction/test_circuitconstruction.py +253 -0
- pygsti-0.0.0/test/unit/construction/test_datasetconstruction.py +73 -0
- pygsti-0.0.0/test/unit/construction/test_gateconstruction.py +57 -0
- pygsti-0.0.0/test/unit/construction/test_modelconstruction.py +819 -0
- pygsti-0.0.0/test/unit/construction/test_nqnoiseconstruction.py +190 -0
- pygsti-0.0.0/test/unit/construction/test_qutrit.py +19 -0
- pygsti-0.0.0/test/unit/construction/test_stdlists.py +152 -0
- pygsti-0.0.0/test/unit/drivers/__init__.py +2 -0
- pygsti-0.0.0/test/unit/drivers/fixtures.py +35 -0
- pygsti-0.0.0/test/unit/drivers/test_bootstrap.py +129 -0
- pygsti-0.0.0/test/unit/drivers/test_longsequence.py +366 -0
- pygsti-0.0.0/test/unit/extras/__init__.py +0 -0
- pygsti-0.0.0/test/unit/extras/interpygate/__init__.py +0 -0
- pygsti-0.0.0/test/unit/extras/interpygate/test_construction.py +209 -0
- pygsti-0.0.0/test/unit/extras/rb/__init__.py +0 -0
- pygsti-0.0.0/test/unit/extras/rb/test_analysis.py +31 -0
- pygsti-0.0.0/test/unit/extras/rb/test_group.py +9 -0
- pygsti-0.0.0/test/unit/extras/rb/test_sample.py +273 -0
- pygsti-0.0.0/test/unit/extras/rb/test_theory.py +246 -0
- pygsti-0.0.0/test/unit/extras/rpe/__init__.py +0 -0
- pygsti-0.0.0/test/unit/extras/rpe/test_rpeconfig.py +10 -0
- pygsti-0.0.0/test/unit/extras/rpe/test_rpeconstruction.py +82 -0
- pygsti-0.0.0/test/unit/extras/rpe/test_rpetools.py +99 -0
- pygsti-0.0.0/test/unit/io/__init__.py +0 -0
- pygsti-0.0.0/test/unit/io/test_circuitparser.py +65 -0
- pygsti-0.0.0/test/unit/io/test_mongo.py +65 -0
- pygsti-0.0.0/test/unit/io/test_nice_serialization.py +124 -0
- pygsti-0.0.0/test/unit/io/test_stdinput.py +123 -0
- pygsti-0.0.0/test/unit/modelmembers/__init__.py +0 -0
- pygsti-0.0.0/test/unit/modelmembers/test_kraus_interface.py +261 -0
- pygsti-0.0.0/test/unit/modelmembers/test_modelmember.py +51 -0
- pygsti-0.0.0/test/unit/modelmembers/test_modelmembergraph.py +77 -0
- pygsti-0.0.0/test/unit/modelmembers/test_operation.py +815 -0
- pygsti-0.0.0/test/unit/modelmembers/test_spamvec.py +359 -0
- pygsti-0.0.0/test/unit/modelpacks/__init__.py +0 -0
- pygsti-0.0.0/test/unit/modelpacks/test_modelpack.py +42 -0
- pygsti-0.0.0/test/unit/mpi/run_me_with_mpiexec.py +340 -0
- pygsti-0.0.0/test/unit/mpi/test_mpi.py +32 -0
- pygsti-0.0.0/test/unit/objects/__init__.py +2 -0
- pygsti-0.0.0/test/unit/objects/fixtures.py +85 -0
- pygsti-0.0.0/test/unit/objects/smqfixtures.py +61 -0
- pygsti-0.0.0/test/unit/objects/test_basis.py +172 -0
- pygsti-0.0.0/test/unit/objects/test_circuit.py +792 -0
- pygsti-0.0.0/test/unit/objects/test_circuitstructure.py +46 -0
- pygsti-0.0.0/test/unit/objects/test_composed_spam.py +257 -0
- pygsti-0.0.0/test/unit/objects/test_cython_build.py +47 -0
- pygsti-0.0.0/test/unit/objects/test_datacomparator.py +95 -0
- pygsti-0.0.0/test/unit/objects/test_dataset.py +338 -0
- pygsti-0.0.0/test/unit/objects/test_estimate.py +84 -0
- pygsti-0.0.0/test/unit/objects/test_explicitmodel.py +155 -0
- pygsti-0.0.0/test/unit/objects/test_fogi.py +230 -0
- pygsti-0.0.0/test/unit/objects/test_forwardsim.py +361 -0
- pygsti-0.0.0/test/unit/objects/test_gaugegroup.py +136 -0
- pygsti-0.0.0/test/unit/objects/test_instrument.py +74 -0
- pygsti-0.0.0/test/unit/objects/test_label.py +124 -0
- pygsti-0.0.0/test/unit/objects/test_labeldicts.py +48 -0
- pygsti-0.0.0/test/unit/objects/test_localnoisemodel.py +134 -0
- pygsti-0.0.0/test/unit/objects/test_model.py +705 -0
- pygsti-0.0.0/test/unit/objects/test_modelfunction.py +26 -0
- pygsti-0.0.0/test/unit/objects/test_modelnoise.py +30 -0
- pygsti-0.0.0/test/unit/objects/test_multidataset.py +117 -0
- pygsti-0.0.0/test/unit/objects/test_objectivefns.py +468 -0
- pygsti-0.0.0/test/unit/objects/test_opcalc.py +42 -0
- pygsti-0.0.0/test/unit/objects/test_polynomial.py +620 -0
- pygsti-0.0.0/test/unit/objects/test_prefixtable.py +62 -0
- pygsti-0.0.0/test/unit/objects/test_processorspec.py +64 -0
- pygsti-0.0.0/test/unit/objects/test_protectedarray.py +49 -0
- pygsti-0.0.0/test/unit/objects/test_replib.py +46 -0
- pygsti-0.0.0/test/unit/objects/test_reportableqty.py +123 -0
- pygsti-0.0.0/test/unit/objects/test_results.py +90 -0
- pygsti-0.0.0/test/unit/objects/test_smartcache.py +52 -0
- pygsti-0.0.0/test/unit/objects/test_verbosityprinter.py +140 -0
- pygsti-0.0.0/test/unit/optimize/__init__.py +0 -0
- pygsti-0.0.0/test/unit/optimize/test_customcg.py +29 -0
- pygsti-0.0.0/test/unit/optimize/test_optimize.py +47 -0
- pygsti-0.0.0/test/unit/optimize/test_simplerlm.py +43 -0
- pygsti-0.0.0/test/unit/protocols/__init__.py +0 -0
- pygsti-0.0.0/test/unit/protocols/test_gst.py +423 -0
- pygsti-0.0.0/test/unit/protocols/test_protocols.py +177 -0
- pygsti-0.0.0/test/unit/protocols/test_rb.py +721 -0
- pygsti-0.0.0/test/unit/protocols/test_vb.py +29 -0
- pygsti-0.0.0/test/unit/protocols/test_vbdataframe.py +138 -0
- pygsti-0.0.0/test/unit/report/__init__.py +0 -0
- pygsti-0.0.0/test/unit/report/test_colormaps.py +95 -0
- pygsti-0.0.0/test/unit/report/test_formatter.py +148 -0
- pygsti-0.0.0/test/unit/report/test_table.py +98 -0
- pygsti-0.0.0/test/unit/report/test_textblock.py +22 -0
- pygsti-0.0.0/test/unit/tools/__init__.py +2 -0
- pygsti-0.0.0/test/unit/tools/fixtures.py +78 -0
- pygsti-0.0.0/test/unit/tools/test_basisconstructors.py +104 -0
- pygsti-0.0.0/test/unit/tools/test_basistools.py +283 -0
- pygsti-0.0.0/test/unit/tools/test_chi2fns.py +31 -0
- pygsti-0.0.0/test/unit/tools/test_edesigntools.py +295 -0
- pygsti-0.0.0/test/unit/tools/test_internalgates.py +28 -0
- pygsti-0.0.0/test/unit/tools/test_jamiolkowski.py +177 -0
- pygsti-0.0.0/test/unit/tools/test_legacytools.py +13 -0
- pygsti-0.0.0/test/unit/tools/test_likelihoodfns.py +86 -0
- pygsti-0.0.0/test/unit/tools/test_lindbladtools.py +90 -0
- pygsti-0.0.0/test/unit/tools/test_listtools.py +21 -0
- pygsti-0.0.0/test/unit/tools/test_matrixtools.py +194 -0
- pygsti-0.0.0/test/unit/tools/test_optools.py +414 -0
- pygsti-0.0.0/test/unit/tools/test_opttools.py +66 -0
- pygsti-0.0.0/test/unit/tools/test_pdftools.py +31 -0
- pygsti-0.0.0/test/unit/tools/test_slicetools.py +42 -0
- pygsti-0.0.0/test/unit/tools/test_symplectic.py +191 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Contributing to pyGSTi
|
|
2
|
+
|
|
3
|
+
Thanks for taking the time to contribute to pyGSTi! Open-source
|
|
4
|
+
projects like ours couldn't exist without contributors like you.
|
|
5
|
+
|
|
6
|
+
This document contains a set of guidelines for contributing to pyGSTi
|
|
7
|
+
and related packages hosted under the SandiaLabs organization. We ask
|
|
8
|
+
that contributors make an earnest effort to follow these guidelines,
|
|
9
|
+
but no one's keeping score here -- just use your best judgement, and
|
|
10
|
+
by all means, feel free to propose changes to these guidelines in a
|
|
11
|
+
pull request.
|
|
12
|
+
|
|
13
|
+
### Reporting Bugs
|
|
14
|
+
|
|
15
|
+
Found a bug in pyGSTi? We'd appreciate letting us know!
|
|
16
|
+
|
|
17
|
+
* First, **see if the bug has already been reported** by searching on
|
|
18
|
+
Github under [Issues][issues]. Make sure to check for issues that
|
|
19
|
+
are closed but have the *fixed-but-not-in-release* tag also - these
|
|
20
|
+
mean they are fixed in our `develop` branch, so you can try that to
|
|
21
|
+
see if it fixes your issue.
|
|
22
|
+
|
|
23
|
+
* If you can't find an open issue about the problem,
|
|
24
|
+
[open a new one][issues:bug]! Be sure to include a **title**, a
|
|
25
|
+
**clear description** of what went wrong, and **as much relevant
|
|
26
|
+
information as possible.** If you can, try to include detailed steps
|
|
27
|
+
to reproduce the problem.
|
|
28
|
+
|
|
29
|
+
* Once you open an issue, please **keep an eye on it** -- you may be
|
|
30
|
+
asked to provide more details.
|
|
31
|
+
|
|
32
|
+
### Suggesting Features & Enhancements
|
|
33
|
+
|
|
34
|
+
Want to add a new feature or change an existing one?
|
|
35
|
+
|
|
36
|
+
* First, **see if the feature or enhancement has already been
|
|
37
|
+
suggested** by searching on Github under [Issues][issues].
|
|
38
|
+
|
|
39
|
+
* If you can't find a similar suggestion in the issue tracker,
|
|
40
|
+
[open a new issue][issues:feature] for your feature suggestion.
|
|
41
|
+
|
|
42
|
+
### Making a Contribution
|
|
43
|
+
|
|
44
|
+
Want to fix a bug, add a feature, or change an existing feature?
|
|
45
|
+
|
|
46
|
+
Because pyGSTi is a project of the Quantum Performance Lab at Sandia
|
|
47
|
+
National Labs, the process of contributing to pyGSTi is different for
|
|
48
|
+
contributors working at Sandia.
|
|
49
|
+
|
|
50
|
+
#### For non-Sandians
|
|
51
|
+
|
|
52
|
+
If you're interested in making contributions please let us know by email at
|
|
53
|
+
[pygsti@sandia.gov][email] so we can get you a Contributor License Agreement
|
|
54
|
+
(CLA). This needs to be signed and through our system before you can contribute.
|
|
55
|
+
|
|
56
|
+
#### For Sandians
|
|
57
|
+
|
|
58
|
+
* **Join the SandiaLabs organization**.
|
|
59
|
+
|
|
60
|
+
* **Contact the authors** at [pygsti@sandia.gov][email] to
|
|
61
|
+
request an invite to the [repository][pygsti].
|
|
62
|
+
|
|
63
|
+
[email]: mailto:pygsti@sandia.gov
|
|
64
|
+
[issues:bug]: https://github.com/sandialabs/pyGSTi/issues/new?labels=bug&template=bug_report.md
|
|
65
|
+
[issues:feature]: https://github.com/sandialabs/pyGSTi/issues/new?labels=enhancement&template=feature_request.md
|
|
66
|
+
[issues:new]: https://github.com/sandialabs/pyGSTi/issues/new
|
|
67
|
+
[issues]: https://github.com/sandialabs/pyGSTi/issues
|
|
68
|
+
[pygsti]: https://github.com/sandialabs/pyGSTi
|
pygsti-0.0.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
pygsti-0.0.0/MANIFEST.in
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
include README.md CONTRIBUTING.md LICENSE
|
|
2
|
+
include pyproject.toml
|
|
3
|
+
include install_locally.py
|
|
4
|
+
include requirements.txt
|
|
5
|
+
include optional-requirements.txt
|
|
6
|
+
include jupyter_notebooks/START_HERE.ipynb
|
|
7
|
+
include jupyter_notebooks/FAQ.ipynb
|
|
8
|
+
include jupyter_notebooks/Tutorials/*.ipynb
|
|
9
|
+
include jupyter_notebooks/Tutorials/algorithms/*.ipynb
|
|
10
|
+
include jupyter_notebooks/Tutorials/objects/*.ipynb
|
|
11
|
+
include jupyter_notebooks/Tutorials/reporting/*.ipynb
|
|
12
|
+
include jupyter_notebooks/Tutorials/other/*.ipynb
|
|
13
|
+
include jupyter_notebooks/Tutorials/algorithms/advanced/*.ipynb
|
|
14
|
+
include jupyter_notebooks/Tutorials/objects/advanced/*.ipynb
|
|
15
|
+
include jupyter_notebooks/Tutorials/reporting/advanced/*.ipynb
|
|
16
|
+
include jupyter_notebooks/Tutorials/other/advanced/*.ipynb
|
|
17
|
+
include jupyter_notebooks/Examples/*.ipynb
|
|
18
|
+
include jupyter_notebooks/Tutorials/tutorial_files/.git_placeholder
|
|
19
|
+
include jupyter_notebooks/Examples/example_files/.git_placeholder
|
|
20
|
+
include scripts/upgrade2v0.9.7.py
|
|
21
|
+
include test/runTests.py
|
|
22
|
+
include test/__init__.py
|
|
23
|
+
include test/unit/__init__.py
|
|
24
|
+
include test/unit/*/*.py
|
|
25
|
+
include test/unit/extras/*/*.py
|
|
26
|
+
include test/output/.placeholder
|
|
27
|
+
include test/test_packages/*/*.py
|
|
28
|
+
include test/test_packages/extras/*.py
|
|
29
|
+
include test/test_packages/cmp_chk_files/*
|
|
30
|
+
include test/test_packages/temp_test_files/.placeholder
|
|
31
|
+
recursive-include doc/html *
|
pygsti-0.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pygsti
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: A python implementation of Gate Set Tomography
|
|
5
|
+
Author: Erik Nielsen, Stefan Seritan, Corey Ostrove, Riley Murray, Jordan Hines, Kenneth Rudinger, Timothy Proctor, John Gamble, Robin Blume-Kohout
|
|
6
|
+
Author-email: pygsti@sandia.gov
|
|
7
|
+
Project-URL: Homepage, https://www.pygsti.info
|
|
8
|
+
Project-URL: Repository, https://github.com/sandialabs/pyGSTi
|
|
9
|
+
Project-URL: Download, https://github.com/sandialabs/pyGSTi/tarball/master
|
|
10
|
+
Keywords: pygsti,tomography,gate set,pigsty,pig,quantum,qubit
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
|
+
Classifier: Operating System :: Unix
|
|
19
|
+
Requires-Python: >=3.9
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
Provides-Extra: diamond_norm
|
|
22
|
+
Provides-Extra: evolutionary_optimization
|
|
23
|
+
Provides-Extra: extensions
|
|
24
|
+
Provides-Extra: html_reports
|
|
25
|
+
Provides-Extra: interpygate
|
|
26
|
+
Provides-Extra: linting
|
|
27
|
+
Provides-Extra: memory_profiling
|
|
28
|
+
Provides-Extra: mongodb
|
|
29
|
+
Provides-Extra: msgpack
|
|
30
|
+
Provides-Extra: multiprocessor
|
|
31
|
+
Provides-Extra: notebooks
|
|
32
|
+
Provides-Extra: pytorch
|
|
33
|
+
Provides-Extra: report_pdf_figures
|
|
34
|
+
Provides-Extra: reports
|
|
35
|
+
Provides-Extra: testing_no_cython_mpi
|
|
36
|
+
Provides-Extra: testing_no_cython
|
|
37
|
+
Provides-Extra: testing
|
|
38
|
+
Provides-Extra: no_mpi
|
|
39
|
+
Provides-Extra: complete
|
|
40
|
+
License-File: LICENSE
|
|
41
|
+
|
|
42
|
+
********************************************************************************
|
|
43
|
+
pyGSTi 0.9.13.1
|
|
44
|
+
********************************************************************************
|
|
45
|
+
|
|
46
|
+
[](https://github.com/sandialabs/pyGSTi/actions/workflows/beta-master.yml)
|
|
47
|
+
[](https://github.com/sandialabs/pyGSTi/actions/workflows/develop.yml)
|
|
48
|
+
[](https://github.com/sandialabs/pyGSTi/actions/workflows/beta-master.yml)
|
|
49
|
+
|
|
50
|
+
pyGSTi
|
|
51
|
+
------
|
|
52
|
+
**pyGSTi** is an open-source software for *modeling and characterizing noisy quantum information processors*
|
|
53
|
+
(QIPs), i.e., systems of one or more qubits. It is licensed under the Apache License, Version 2.0.
|
|
54
|
+
Copyright information can be found in ``NOTICE``, and the license itself in ``LICENSE``.
|
|
55
|
+
|
|
56
|
+
There are three main objects in pyGSTi:
|
|
57
|
+
- `Circuit`: a quantum circuit (can have many qubits).
|
|
58
|
+
- `Model`: a description of a QIP's gate and SPAM operations (a noise model).
|
|
59
|
+
- `DataSet`: a dictionary-like container holding experimental data.
|
|
60
|
+
|
|
61
|
+
You can do various things by with these objects:
|
|
62
|
+
|
|
63
|
+
- **Circuit simulation**: compute a the outcome probabilities of a `Circuit` using a `Model`.
|
|
64
|
+
- **Data simulation**: simulate experimental data (a `DataSet`) using a `Model`.
|
|
65
|
+
- **Model testing**: Test whether a given `Model` fits the data in a `DataSet`.
|
|
66
|
+
- **Model estimation**: Estimate a `Model` from a `DataSet` (e.g. using GST).
|
|
67
|
+
- **Model-less characterization**: Perform Randomized Benchmarking on a `DataSet`.
|
|
68
|
+
|
|
69
|
+
In particular, there are a number of characterization protocols currently implemented in pyGSTi:
|
|
70
|
+
- **Gate Set Tomography (GST)** is the most complex and is where the software derives its name
|
|
71
|
+
(a "python GST implementation").
|
|
72
|
+
- **Randomized Benchmarking (RB)** is a well-known method for assessing the
|
|
73
|
+
quality of a QIP in an average sense. PyGSTi implements standard "Clifford" RB
|
|
74
|
+
as well as the more scalable "Direct" RB methods.
|
|
75
|
+
- **Robust Phase Estimation (RPE)** is a method designed for quickly learning
|
|
76
|
+
a few noise parameters of a QIP that particularly useful for tuning up qubits.
|
|
77
|
+
|
|
78
|
+
PyGSTi is designed with a modular structure so as to be highly customizable
|
|
79
|
+
and easily integrated to new or existing python software. It runs using
|
|
80
|
+
python 3.9 or higher. To faclilitate integration with software for running
|
|
81
|
+
cloud-QIP experiments, pyGSTi `Circuit` objects can be converted to IBM's
|
|
82
|
+
**OpenQASM** and Rigetti Quantum Computing's **Quil** circuit description languages.
|
|
83
|
+
|
|
84
|
+
Installation
|
|
85
|
+
------------
|
|
86
|
+
Apart from several optional Cython modules, pyGSTi is written entirely in Python.
|
|
87
|
+
To install pyGSTi and only its required dependencies run:
|
|
88
|
+
|
|
89
|
+
``pip install pygsti``
|
|
90
|
+
|
|
91
|
+
**Or**, to install pyGSTi with all its optional dependencies too, run:
|
|
92
|
+
|
|
93
|
+
``pip install pygsti[complete]``
|
|
94
|
+
|
|
95
|
+
The disadvantage to these approaches is that the numerous tutorials
|
|
96
|
+
included in the package will then be buried within your Python's
|
|
97
|
+
`site_packages` directory, which you'll likely want to access later on.
|
|
98
|
+
**Alternatively**, you can **locally install** pyGSTi using the following commands:
|
|
99
|
+
|
|
100
|
+
~~~
|
|
101
|
+
cd <install_directory>
|
|
102
|
+
git clone https://github.com/pyGSTio/pyGSTi.git
|
|
103
|
+
cd pyGSTi
|
|
104
|
+
pip install -e .[complete]
|
|
105
|
+
~~~
|
|
106
|
+
|
|
107
|
+
As above, you can leave off the `.[complete]` if you only went the minimal
|
|
108
|
+
set of dependencies installed. You could also replace the `git clone ...`
|
|
109
|
+
command with `unzip pygsti-0.9.x.zip` where the latter file is a downloaded
|
|
110
|
+
pyGSTi source archive. Any of the above installations *should* build
|
|
111
|
+
the set of optional Cython extension modules if a working C/C++ compiler
|
|
112
|
+
and the `Cython` package are present. If, however, compilation fails or
|
|
113
|
+
you later decided to add Cython support, you can rebuild the extension
|
|
114
|
+
modules (without reinstalling) if you've followed the local installation
|
|
115
|
+
approach above using the command:
|
|
116
|
+
|
|
117
|
+
`python setup.py build_ext --inplace`
|
|
118
|
+
|
|
119
|
+
Finally, [Jupyter notebook](http://jupyter.org/) is highly recommended as
|
|
120
|
+
it is generally convenient and the format of the included tutorials and
|
|
121
|
+
examples. It is installed automatically when `[complete]` is used, otherwise
|
|
122
|
+
it can be installed separately.
|
|
123
|
+
|
|
124
|
+
Getting Started
|
|
125
|
+
---------------
|
|
126
|
+
Here's a couple of simple examples to get you started.
|
|
127
|
+
|
|
128
|
+
#### Circuit simulation
|
|
129
|
+
To compute the outcome probabilities of a circuit, you just need to create
|
|
130
|
+
a `Circuit` object (describing your circuit) and a `Model` object containing
|
|
131
|
+
the operations contained in your circuit. Here we use a "stock" single-qubit `Model`
|
|
132
|
+
containing *Idle*, *X(π/2)*, and *Y(π/2)* gates labelled `Gi`, `Gx`,
|
|
133
|
+
and `Gy`, respectively:
|
|
134
|
+
~~~
|
|
135
|
+
import pygsti
|
|
136
|
+
from pygsti.modelpacks import smq1Q_XYI
|
|
137
|
+
|
|
138
|
+
mycircuit = pygsti.circuits.Circuit([('Gxpi2',0), ('Gypi2',0), ('Gxpi2',0)])
|
|
139
|
+
model = smq1Q_XYI.target_model()
|
|
140
|
+
outcome_probabilities = model.probabilities(mycircuit)
|
|
141
|
+
~~~
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
#### Gate Set Tomography
|
|
145
|
+
Gate Set Tomography is used to characterize the operations performed by
|
|
146
|
+
hardware designed to implement a (small) system of quantum bits (qubits).
|
|
147
|
+
Here's the basic idea:
|
|
148
|
+
|
|
149
|
+
1. you tell pyGSTi what gates you'd ideally like to perform
|
|
150
|
+
2. pyGSTi tells you what circuits it want's data for
|
|
151
|
+
3. you perform the requested experiments and place the resulting
|
|
152
|
+
data (outcome counts) into a text file that looks something like:
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
## Columns = 0 count, 1 count
|
|
156
|
+
{} 0 100 # the empty sequence (just prep then measure)
|
|
157
|
+
Gx 10 90 # prep, do a X(pi/2) gate, then measure
|
|
158
|
+
GxGy 40 60 # prep, do a X(pi/2) gate followed by a Y(pi/2), then measure
|
|
159
|
+
Gx^4 20 80 # etc...
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
4. pyGSTi takes the data file and outputs a "report" - currently a
|
|
163
|
+
HTML web page.
|
|
164
|
+
|
|
165
|
+
In code, running GST looks something like this:
|
|
166
|
+
~~~
|
|
167
|
+
import pygsti
|
|
168
|
+
from pygsti.modelpacks import smq1Q_XYI
|
|
169
|
+
|
|
170
|
+
# 1) get the ideal "target" Model (a "stock" model in this case)
|
|
171
|
+
mdl_ideal = smq1Q_XYI.target_model()
|
|
172
|
+
|
|
173
|
+
# 2) generate a GST experiment design
|
|
174
|
+
edesign = smq1Q_XYI.create_gst_experiment_design(4) # user-defined: how long do you want the longest circuits?
|
|
175
|
+
|
|
176
|
+
# 3) write a data-set template
|
|
177
|
+
pygsti.io.write_empty_dataset("MyData.txt", edesign.all_circuits_needing_data, "## Columns = 0 count, 1 count")
|
|
178
|
+
|
|
179
|
+
# STOP! "MyData.txt" now has columns of zeros where actual data should go.
|
|
180
|
+
# REPLACE THE ZEROS WITH ACTUAL DATA, then proceed with:
|
|
181
|
+
ds = pygsti.io.load_dataset("MyData.txt") # load data -> DataSet object
|
|
182
|
+
|
|
183
|
+
# OR: Create a simulated dataset with:
|
|
184
|
+
# ds = pygsti.data.simulate_data(mdl_ideal, edesign, num_samples=1000)
|
|
185
|
+
|
|
186
|
+
# 4) run GST (now using the modern object-based interface)
|
|
187
|
+
data = pygsti.protocols.ProtocolData(edesign, ds) # Step 1: Bundle up the dataset and circuits into a ProtocolData object
|
|
188
|
+
protocol = pygsti.protocols.StandardGST() # Step 2: Select a Protocol to run
|
|
189
|
+
results = protocol.run(data) # Step 3: Run the protocol!
|
|
190
|
+
|
|
191
|
+
# 5) Create a nice HTML report detailing the results
|
|
192
|
+
report = pygsti.report.construct_standard_report(results, title="My Report", verbosity=1)
|
|
193
|
+
report.write_html("myReport", auto_open=True, verbosity=1) # Can also write out Jupyter notebooks!
|
|
194
|
+
~~~
|
|
195
|
+
|
|
196
|
+
Tutorials and Examples
|
|
197
|
+
----------------------
|
|
198
|
+
There are numerous tutorials (meant to be pedagogical) and examples (meant to be demonstrate
|
|
199
|
+
how to do some particular thing) in the form of Jupyter notebooks beneath the `pyGSTi/jupyter_notebooks`
|
|
200
|
+
directory. The root "START HERE" notebook will direct you where to go based on what you're most
|
|
201
|
+
interested in learning about. You can view the
|
|
202
|
+
[read-only GitHub version of this notebook](https://github.com/pyGSTio/pyGSTi/blob/master/jupyter_notebooks/START_HERE.ipynb)
|
|
203
|
+
or you can [explore the tutorials interactively](https://mybinder.org/v2/gh/pyGSTio/pyGSTi/master)
|
|
204
|
+
using JupyterHub via Binder. Note the existence of a
|
|
205
|
+
[FAQ](https://github.com/pyGSTio/pyGSTi/blob/master/jupyter_notebooks/FAQ.ipynb), which
|
|
206
|
+
addresses common issues.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
#### Running notebooks *locally*
|
|
210
|
+
While it's possible to view the notebooks on GitHub using the links above, it's
|
|
211
|
+
usually nicer to run them *locally* so you can mess around with the code as
|
|
212
|
+
you step through it. To do this, you'll need to start up a Jupyter notebook
|
|
213
|
+
server using the following steps (this assumes you've followed the *local
|
|
214
|
+
installation* directions above):
|
|
215
|
+
|
|
216
|
+
* Changing to the notebook directory, by running:
|
|
217
|
+
``cd jupyter_notebooks/Tutorials/``
|
|
218
|
+
|
|
219
|
+
* Start up the Jupyter notebook server by running:
|
|
220
|
+
``jupyter notebook``
|
|
221
|
+
|
|
222
|
+
The Jupyter server should open up your web browser to the server root, from
|
|
223
|
+
where you can start the first "START_HERE.ipynb" notebook. Note that the key
|
|
224
|
+
command to execute a cell within the Jupyter notebook is ``Shift+Enter``, not
|
|
225
|
+
just ``Enter``.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
Documentation
|
|
229
|
+
-------------
|
|
230
|
+
Online documentation is hosted on [Read the Docs](http://pygsti.readthedocs.io).
|
|
231
|
+
|
|
232
|
+
License
|
|
233
|
+
-------
|
|
234
|
+
PyGSTi is licensed under the [Apache License Version 2.0](https://github.com/pyGSTio/pyGSTi/blob/master/LICENSE).
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
Questions?
|
|
238
|
+
----------
|
|
239
|
+
For help and support with pyGSTi, please contact the authors at
|
|
240
|
+
pygsti@sandia.gov.
|