Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User exposure tagging #385

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Build and run tests

on:
push:
branches-ignore: [ "beta" ]
branches-ignore: [ "beta", "user-exposure-tagging" ]
# Hacky way to only run pull requests from forked repositories (assumes : is not used in branch names unless forked)
# https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
pull_request:
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/compilers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN)
"""
Clifford circuit, CNOT circuit, and stabilizer state/measurement generation compilation routines
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/contract.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal, forsaken (EGN)
"""
GST contraction algorithms
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/core.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: high (EGN - for "old"-style GST API e.g. run_gst_fit)
"""
Core GST algorithms
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/directx.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal, forsaken (EGN - we don't use this anymore and never really did)
"""
Functions for generating Direct-(LGST, MC2GST, MLGST) models
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/fiducialpairreduction.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: high (EGN - users use these functions for building GST experiment designs)
"""
Functions for reducing the number of required fiducial pairs for analysis.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/fiducialselection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: high (CIO, EGN - users use these functions for building GST experiment designs)
"""
Functions for selecting a complete set of fiducials for a GST analysis.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/gaugeopt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (CIO, EGN - manually gauge optimizing models is typically an advanced use case)
"""
GST gauge optimization algorithms
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/germselection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: high (CIO, EGN - users use these functions for building GST experiment designs)
"""
Functions for selecting a complete set of germs for a GST analysis.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/grammatrix.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (CIO, EGN - Only presently utilized in creation of gram matrix spectrum plots in reports)
"""
Utility functions related to Gram matrix construction.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/grasp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure : minimal (???, EGN Used internally in certain combinatorial optimization problems, but also less frequently nowadays)
"""
Functions to facilitate using GRASP.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/mirroring.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (??, EGN Tentative, probably only used in RB internals, but check with Timothy or Jordan)
"""
circuit mirroring functions.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/randomcircuit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (??, EGN Tentative, probably only used in RB internals, but check with Jordan)
"""
Random circuit sampling functions.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/rbfit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (??, EGN Tentative, probably only used in RB internals, but check with Jordan; FitResults may be independently used by Users extracting RB parameters from RB results)
"""
Functions for analyzing RB data
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/robust_phase_estimation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (??, EGN Tentative, probably only used in RPE internals, but check with Kenny)
"""
Robust Phase Estimation platform agnostic portion
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/algorithms/scoring.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (CIO, EGN - used internally in a number of experiment design related combinatorial optimization routines)
"""
Common functions used in scoring germ and fiducial sets.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/_compatibility.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - internal use only; module already begins with underscore)
"""
Tools for general compatibility.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/advancedoptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: high (EGN - not necessarily used a lot, but the purpose of the objects herein is to give end users access to advance protocol options)
"""
Utilities for defining advanced low-level parameterizations for various pyGSTi operations
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/basis.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: high (EGN - in particular Basis.cast and access to Basis attributes)
"""
Defines the Basis object and supporting functions
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/basisconstructors.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - most current access to basis functionality should be through the Basis object; this may be used in old code however, and so deprecating these might be a good idea)
"""
Functions for creating the standard sets of matrices in the standard, Pauli, Gell-Mann, and qutrit bases
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/errorgenbasis.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - using these objects directly is uncommon and power-user functionality.)
"""
Defines the ElementaryErrorgenBasis class and supporting functionality.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/errorgenlabel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - using these objects directly is uncommon and power-user functionality. Ensuring they can be created from simple strings/tuples however may be "high" exposure)
"""
Defines the ElementaryErrorgenLabel class and supporting functionality.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/errorgenspace.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - using these objects directly is uncommon and power-user functionality.)
"""
Defines the ErrorgenSpace class and supporting functionality.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - we don't even use these in the pygsti code except maybe in a few rare cases.)
"""
Defines GST exception classes
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/label.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - using these objects directly is uncommon, though their ability to act like and be created from strings & tuples is utilized by even novice users perhaps unknowingly)
"""
Defines the Label class
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/mongoserializable.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - this is unadvertized functionality and not used by anyone but Erik currently.)
"""
Defines the MongoSerializable class
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/nicelyserializable.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - this is a base class for many others but not used directly by end users.)
"""
Defines the NicelySerializable class
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/opcalc/fastopcalc.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - these should just be subroutines of higher-level api functions)
# encoding: utf-8
# cython: profile=False
# cython: linetrace=False
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/opcalc/slowopcalc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - parallel to fastopcalc.pyx)
"""Python implementations of common polynomial operations"""
#***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/outcomelabeldict.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - using these objects directly is power-user functionality, though the ability of an OutcomeLabelDict to act like a normal dict is "high" exposure.)
"""
Defines the OutcomeLabelDict class
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/polynomial.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - only used by "TermForwardSimulator" and under the hood even there.)
"""
Defines the Polynomial class
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/profiler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - internal use only.)
"""
Defines the Profiler class and supporting functionality
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/protectedarray.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - I expect never used directly, but functionality accessed as the base class for TP maps.)
"""
Defines the ProtectedArray class
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/qubitgraph.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - not used direclty except by power users, though conversions from names like geometry='line' is used by many uses.)
"""
Defines the QubitGraph class and supporting functions
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/resourceallocation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - internal use only.)
"""
Resource allocation manager
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/smartcache.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - internal use only.)
"""
Defines SmartCache and supporting functions
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/statespace.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - used directly only by power users. Created implicitly by conversion from integers to QubitSpaces, etc.)
"""
Defines OrderedDict-derived classes used to store specific pyGSTi objects
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/unitarygatefunction.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: minimal (EGN - only power users creating their own continuously parameterized gates would make use of this class.)
"""
Defines the UnitaryGateFunction class and supporting functionality.
"""
Expand Down
1 change: 1 addition & 0 deletions pygsti/baseobjs/verbosityprinter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## user-exposure: low (EGN - almost always created internally by casting from an integer.)
"""
Defines the VerbosityPrinter class, used for logging output.
"""
Expand Down