-
Notifications
You must be signed in to change notification settings - Fork 57
WIP: TVD and other objectives in GST #649
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
base: develop
Are you sure you want to change the base?
Changes from all commits
bc64ecb
b6e540f
8f59891
986e528
ccf17ef
5959a53
19316be
9b73727
fb4818c
122fd11
2ef13e2
1c23251
6e9d366
7d20e53
d15110e
b0e72b5
2719da0
c33304a
f8fea8e
a67bece
2ed1c21
d028a77
48fb7ae
14c1a51
5de61b8
99619f1
8845e12
4d09819
8d3bdef
ac67824
5152605
74fcb68
5218e9f
b67161d
b011a2d
08ef8be
1505fc2
01d15cc
816663f
5566b37
6e27fe9
c60fd33
3290f81
661f5d3
f226822
b789eeb
25ee299
1599eb7
0ccaaad
b5ed48e
e77f99c
41cc795
fb6ddc6
b958304
4dc24d0
4cf4a3e
ca892e5
12d1ffb
5876e95
c268571
e12280d
87f91de
f6b1683
3c2580e
d1a9f58
ac89712
db5e406
509b94f
8723928
4cdcf78
5e08e32
9c64c9d
09d7046
cc687dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
wip_notebook_sharing/case0_reports_* | ||
*~ | ||
*.tmp | ||
*.bak | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
from pygsti.models.modelconstruction import _create_explicit_model, create_explicit_model | ||
from pygsti.protocols.gst import _load_pspec_or_model | ||
from pygsti.forwardsims import ForwardSimulator | ||
from typing import Optional | ||
from typing import Optional, Any | ||
|
||
ROBUST_SUFFIX_LIST = [".robust", ".Robust", ".robust+", ".Robust+"] | ||
DEFAULT_BAD_FIT_THRESHOLD = 2.0 | ||
|
@@ -315,7 +315,7 @@ def run_linear_gst(data_filename_or_set, target_model_filename_or_object, | |
def run_long_sequence_gst(data_filename_or_set, target_model_filename_or_object, | ||
prep_fiducial_list_or_filename, meas_fiducial_list_or_filename, | ||
germs_list_or_filename, max_lengths, gauge_opt_params=None, | ||
advanced_options=None, comm=None, mem_limit=None, | ||
advanced_options: Optional[dict[str,Any]]=None, comm=None, mem_limit=None, | ||
output_pkl=None, verbosity=2, checkpoint=None, checkpoint_path=None, | ||
disable_checkpointing=False, | ||
simulator: Optional[ForwardSimulator.Castable]=None, | ||
|
@@ -386,7 +386,12 @@ def run_long_sequence_gst(data_filename_or_set, target_model_filename_or_object, | |
Specifies advanced options most of which deal with numerical details of | ||
the objective function or expert-level functionality. The allowed keys | ||
and values include: | ||
- objective = {'chi2', 'logl'} | ||
|
||
HISTORICAL NOTE: "XX" indicates that we've at least _intended_ for the | ||
keyword argument to be removed. | ||
|
||
- objective = typically, a string in {'chi2', 'logl', 'tvd'}. But this can | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These arguments are only passed in the advanced_options dict. I can add the type annotation that advanced_options is |
||
be anything accepted by the `ObjectiveFunctionBuilder.create_from` function. | ||
- op_labels = list of strings | ||
- circuit_weights = dict or None | ||
- starting_point = "LGST-if-possible" (default), "LGST", or "target" | ||
|
@@ -402,19 +407,16 @@ def run_long_sequence_gst(data_filename_or_set, target_model_filename_or_object, | |
- prob_clip_interval = tuple (default == (-1e6,1e6) | ||
- radius = float (default == 1e-4) | ||
- use_freq_weighted_chi2 = True / False (default) | ||
- XX nested_circuit_lists = True (default) / False | ||
- XX include_lgst = True / False (default is True) | ||
- XX nested_circuit_lists = True (default) / False -- passed to StandardGSTDesign; seems to be functional | ||
- XX include_lgst = True / False (default is True) -- passed to StandardGSTDesign; seems to be functional | ||
- distribute_method = "default", "circuits" or "deriv" | ||
- profile = int (default == 1) | ||
- check = True / False (default) | ||
- XX op_label_aliases = dict (default = None) | ||
- XX op_label_aliases = dict (default = None) -- passed to StandardGSTDesign and used to set a GateSetTomography protocol object's oplabel_aliases field. | ||
- always_perform_mle = bool (default = False) | ||
- only_perform_mle = bool (default = False) | ||
- XX truncScheme = "whole germ powers" (default) or "truncated germ powers" or "length as exponent" | ||
- appendTo = Results (default = None) | ||
- estimateLabel = str (default = "default") | ||
- XX missingDataAction = {'drop','raise'} (default = 'drop') | ||
- XX string_manipulation_rules = list of (find,replace) tuples | ||
- XX string_manipulation_rules = list of (find,replace) tuples -- passed to _proto.StandardGSTDesign construct as its "circuit_rules" argument. | ||
- germ_length_limits = dict of form {germ: maxlength} | ||
- record_output = bool (default = True) | ||
- timeDependent = bool (default = False) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we allowing
p
to be a arraylike here, so that one can fully specify the distribution of weights?