hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
f72bb6f0058e6022c5654db644c4f3a8d1350c2a
18,976
py
Python
ssd/modeling/backbone/basic.py
Sethan/deeplearning-graphics
ce164847a323d3f07cfe241f4bbed6029777c58d
[ "MIT" ]
null
null
null
ssd/modeling/backbone/basic.py
Sethan/deeplearning-graphics
ce164847a323d3f07cfe241f4bbed6029777c58d
[ "MIT" ]
null
null
null
ssd/modeling/backbone/basic.py
Sethan/deeplearning-graphics
ce164847a323d3f07cfe241f4bbed6029777c58d
[ "MIT" ]
null
null
null
import torch class BasicModel(torch.nn.Module): """ This is a basic backbone for SSD. The feature extractor outputs a list of 6 feature maps, with the sizes: [shape(-1, output_channels[0], 38, 38), shape(-1, output_channels[1], 19, 19), shape(-1, output_channels[2], 10, 10), shape(-1, output_channels[3], 5, 5), shape(-1, output_channels[3], 3, 3), shape(-1, output_channels[4], 1, 1)] where "output_channels" is the same as cfg.BACKBONE.OUT_CHANNELS """ def __init__(self, cfg): super().__init__() image_size = cfg.INPUT.IMAGE_SIZE output_channels = cfg.MODEL.BACKBONE.OUT_CHANNELS self.output_channels = output_channels image_channels = cfg.MODEL.BACKBONE.INPUT_CHANNELS self.output_feature_size = cfg.MODEL.PRIORS.FEATURE_MAPS self.num_filters = [32,64] self.feature_extractor38 = torch.nn.Sequential( #part 1 38x38 torch.nn.Conv2d( in_channels=image_channels, out_channels=self.num_filters[0], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[0]), torch.nn.MaxPool2d(2, stride=2), torch.nn.ELU(), torch.nn.Dropout2d(0.05), torch.nn.Conv2d( in_channels=self.num_filters[0], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.06), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.07), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.08), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.09), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.01), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.MaxPool2d(2, stride=2), torch.nn.ELU(), torch.nn.Dropout2d(0.11), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.12), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.13), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.num_filters[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.num_filters[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.14), torch.nn.Conv2d( in_channels=self.num_filters[1], out_channels=self.output_channels[0], kernel_size=3, stride=2, padding=1 ) ) self.feature_extractor19 = torch.nn.Sequential( #part 2 19x19 torch.nn.BatchNorm2d(self.output_channels[0]), torch.nn.ELU(), torch.nn.Dropout2d(0.15), torch.nn.Conv2d( in_channels=self.output_channels[0], out_channels=self.output_channels[0], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[0]), torch.nn.ELU(), torch.nn.Dropout2d(0.16), torch.nn.Conv2d( in_channels=self.output_channels[0], out_channels=self.output_channels[0], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[0]), torch.nn.ELU(), torch.nn.Dropout2d(0.17), torch.nn.Conv2d( in_channels=self.output_channels[0], out_channels=self.output_channels[0], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[0]), torch.nn.ELU(), torch.nn.Dropout2d(0.18), torch.nn.Conv2d( in_channels=self.output_channels[0], out_channels=self.output_channels[0], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[0]), torch.nn.ELU(), torch.nn.Dropout2d(0.19), torch.nn.Conv2d( in_channels=self.output_channels[0], out_channels=self.output_channels[0], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[0]), torch.nn.ELU(), torch.nn.Dropout2d(0.2), torch.nn.Conv2d( in_channels=self.output_channels[0], out_channels=self.output_channels[0], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[0]), torch.nn.ELU(), torch.nn.Dropout2d(0.21), torch.nn.Conv2d( in_channels=self.output_channels[0], out_channels=self.output_channels[0], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[0]), torch.nn.ELU(), torch.nn.Dropout2d(0.22), torch.nn.Conv2d( in_channels=self.output_channels[0], out_channels=self.output_channels[1], kernel_size=3, stride=2, padding=1 )) self.feature_extractor9 = torch.nn.Sequential( #part 3 10x10 torch.nn.BatchNorm2d(self.output_channels[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.23), torch.nn.Conv2d( in_channels=self.output_channels[1], out_channels=self.output_channels[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.24), torch.nn.Conv2d( in_channels=self.output_channels[1], out_channels=self.output_channels[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.25), torch.nn.Conv2d( in_channels=self.output_channels[1], out_channels=self.output_channels[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.26), torch.nn.Conv2d( in_channels=self.output_channels[1], out_channels=self.output_channels[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.27), torch.nn.Conv2d( in_channels=self.output_channels[1], out_channels=self.output_channels[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.28), torch.nn.Conv2d( in_channels=self.output_channels[1], out_channels=self.output_channels[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.29), torch.nn.Conv2d( in_channels=self.output_channels[1], out_channels=self.output_channels[1], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[1]), torch.nn.ELU(), torch.nn.Dropout2d(0.30), torch.nn.Conv2d( in_channels=self.output_channels[1], out_channels=self.output_channels[2], kernel_size=3, stride=2, padding=1 )) self.feature_extractor5 = torch.nn.Sequential( #part 4 5x5 torch.nn.BatchNorm2d(self.output_channels[2]), torch.nn.ELU(), torch.nn.Dropout2d(0.31), torch.nn.Conv2d( in_channels=self.output_channels[2], out_channels=self.output_channels[2], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[2]), torch.nn.ELU(), torch.nn.Dropout2d(0.32), torch.nn.Conv2d( in_channels=self.output_channels[2], out_channels=self.output_channels[2], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[2]), torch.nn.ELU(), torch.nn.Dropout2d(0.33), torch.nn.Conv2d( in_channels=self.output_channels[2], out_channels=self.output_channels[2], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[2]), torch.nn.ELU(), torch.nn.Dropout2d(0.34), torch.nn.Conv2d( in_channels=self.output_channels[2], out_channels=self.output_channels[2], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[2]), torch.nn.ELU(), torch.nn.Dropout2d(0.35), torch.nn.Conv2d( in_channels=self.output_channels[2], out_channels=self.output_channels[2], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[2]), torch.nn.ELU(), torch.nn.Dropout2d(0.36), torch.nn.Conv2d( in_channels=self.output_channels[2], out_channels=self.output_channels[2], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[2]), torch.nn.ELU(), torch.nn.Dropout2d(0.37), torch.nn.Conv2d( in_channels=self.output_channels[2], out_channels=self.output_channels[2], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[2]), torch.nn.ELU(), torch.nn.Dropout2d(0.38), torch.nn.Conv2d( in_channels=self.output_channels[2], out_channels=self.output_channels[3], kernel_size=3, stride=2, padding=1 )) self.feature_extractor3 = torch.nn.Sequential( #part 5 3x3 torch.nn.BatchNorm2d(self.output_channels[3]), torch.nn.ELU(), torch.nn.Dropout2d(0.39), torch.nn.Conv2d( in_channels=self.output_channels[3], out_channels=self.output_channels[3], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[3]), torch.nn.ELU(), torch.nn.Dropout2d(0.40), torch.nn.Conv2d( in_channels=self.output_channels[3], out_channels=self.output_channels[3], kernel_size=3, stride=1, padding=1 ), torch.nn.ELU(), torch.nn.Dropout2d(0.41), torch.nn.Conv2d( in_channels=self.output_channels[3], out_channels=self.output_channels[3], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[3]), torch.nn.ELU(), torch.nn.Dropout2d(0.42), torch.nn.Conv2d( in_channels=self.output_channels[3], out_channels=self.output_channels[3], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[3]), torch.nn.ELU(), torch.nn.Dropout2d(0.43), torch.nn.Conv2d( in_channels=self.output_channels[3], out_channels=self.output_channels[3], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[3]), torch.nn.ELU(), torch.nn.Dropout2d(0.44), torch.nn.Conv2d( in_channels=self.output_channels[3], out_channels=self.output_channels[3], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[3]), torch.nn.ELU(), torch.nn.Dropout2d(0.45), torch.nn.Conv2d( in_channels=self.output_channels[3], out_channels=self.output_channels[3], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[3]), torch.nn.ELU(), torch.nn.Dropout2d(0.46), torch.nn.Conv2d( in_channels=self.output_channels[3], out_channels=self.output_channels[4], kernel_size=3, stride=2, padding=1 )) self.feature_extractor1 = torch.nn.Sequential( #part 6 1x1 torch.nn.BatchNorm2d(self.output_channels[4]), torch.nn.ELU(), torch.nn.Dropout2d(0.48), torch.nn.Conv2d( in_channels=self.output_channels[4], out_channels=self.output_channels[4], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[4]), torch.nn.ELU(), torch.nn.Dropout2d(0.49), torch.nn.Conv2d( in_channels=self.output_channels[4], out_channels=self.output_channels[4], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[4]), torch.nn.ELU(), torch.nn.Dropout2d(0.50), torch.nn.Conv2d( in_channels=self.output_channels[4], out_channels=self.output_channels[4], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[4]), torch.nn.ELU(), torch.nn.Dropout2d(0.51), torch.nn.Conv2d( in_channels=self.output_channels[4], out_channels=self.output_channels[4], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[4]), torch.nn.ELU(), torch.nn.Dropout2d(0.52), torch.nn.Conv2d( in_channels=self.output_channels[4], out_channels=self.output_channels[4], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[4]), torch.nn.ELU(), torch.nn.Dropout2d(0.53), torch.nn.Conv2d( in_channels=self.output_channels[4], out_channels=self.output_channels[4], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[4]), torch.nn.ELU(), torch.nn.Dropout2d(0.54), torch.nn.Conv2d( in_channels=self.output_channels[4], out_channels=self.output_channels[4], kernel_size=3, stride=1, padding=1 ), torch.nn.BatchNorm2d(self.output_channels[4]), torch.nn.ELU(), torch.nn.Dropout2d(0.55), torch.nn.Conv2d( in_channels=self.output_channels[4], out_channels=self.output_channels[5], kernel_size=3, stride=1, padding=0 )) def forward(self, x): """ The forward functiom should output features with shape: [shape(-1, output_channels[0], 38, 38), shape(-1, output_channels[1], 19, 19), shape(-1, output_channels[2], 10, 10), shape(-1, output_channels[3], 5, 5), shape(-1, output_channels[3], 3, 3), shape(-1, output_channels[4], 1, 1)] We have added assertion tests to check this, iteration through out_features, where out_features[0] should have the shape: shape(-1, output_channels[0], 38, 38), """ out_features = [] out = self.feature_extractor38(x) out_features.append(out) out = self.feature_extractor19(out) out_features.append(out) out = self.feature_extractor9(out) out_features.append(out) out = self.feature_extractor5(out) out_features.append(out) out = self.feature_extractor3(out) out_features.append(out) out = self.feature_extractor1(out) out_features.append(out) feature_list = [38,19,10,5,3,1] for idx, feature in enumerate(out_features): expected_shape = (self.output_channels[idx], feature_list[idx], feature_list[idx]) assert feature.shape[1:] == expected_shape, \ f"Expected shape: {expected_shape}, got: {feature.shape[1:]} at output IDX: {idx}" return tuple(out_features)
32.108291
98
0.539155
2,241
18,976
4.400714
0.065149
0.148347
0.222673
0.216183
0.880045
0.869803
0.867268
0.863821
0.839485
0.829345
0
0.058387
0.340219
18,976
590
99
32.162712
0.729313
0.049852
0
0.838532
0
0.001835
0.004418
0
0
0
0
0
0.001835
1
0.00367
false
0
0.001835
0
0.009174
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
f7a1b39194867b400b05e475d6029c9bbf08acd2
157
py
Python
flash/graph/classification/__init__.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
1,457
2021-01-28T20:40:16.000Z
2022-03-31T06:22:05.000Z
flash/graph/classification/__init__.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
1,123
2021-01-28T20:37:56.000Z
2022-03-31T19:34:44.000Z
flash/graph/classification/__init__.py
Actis92/lightning-flash
49972268cfc0f95f1bd2b8fbf25036970cc44b59
[ "Apache-2.0" ]
170
2021-01-29T00:41:39.000Z
2022-03-29T16:09:52.000Z
from flash.graph.classification.data import GraphClassificationData # noqa: F401 from flash.graph.classification.model import GraphClassifier # noqa: F401
52.333333
81
0.834395
18
157
7.277778
0.611111
0.137405
0.21374
0.427481
0
0
0
0
0
0
0
0.042553
0.101911
157
2
82
78.5
0.886525
0.133758
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
5417ad11c21e878f08943bf5930b50874f4bb213
34,831
py
Python
generated/resources/bgp_as_a_service_heat.py
atsgen/tf-heat-plugin
5c0405eb93287368f60f7e227e5af5ada6bfeed2
[ "Apache-2.0" ]
1
2020-04-05T19:43:40.000Z
2020-04-05T19:43:40.000Z
generated/resources/bgp_as_a_service_heat.py
atsgen/tf-heat-plugin
5c0405eb93287368f60f7e227e5af5ada6bfeed2
[ "Apache-2.0" ]
null
null
null
generated/resources/bgp_as_a_service_heat.py
atsgen/tf-heat-plugin
5c0405eb93287368f60f7e227e5af5ada6bfeed2
[ "Apache-2.0" ]
1
2020-08-25T12:47:27.000Z
2020-08-25T12:47:27.000Z
# AUTO-GENERATED file from IFMapApiGenerator. Do Not Edit! from contrail_heat.resources import contrail try: from heat.common.i18n import _ except ImportError: pass from heat.engine import attributes from heat.engine import constraints from heat.engine import properties try: from heat.openstack.common import log as logging except ImportError: from oslo_log import log as logging import uuid from vnc_api import vnc_api LOG = logging.getLogger(__name__) class ContrailBgpAsAService(contrail.ContrailResource): PROPERTIES = ( NAME, FQ_NAME, BGPAAS_SESSION_ATTRIBUTES, BGPAAS_SESSION_ATTRIBUTES_BGP_ROUTER, BGPAAS_SESSION_ATTRIBUTES_ADMIN_DOWN, BGPAAS_SESSION_ATTRIBUTES_PASSIVE, BGPAAS_SESSION_ATTRIBUTES_AS_OVERRIDE, BGPAAS_SESSION_ATTRIBUTES_HOLD_TIME, BGPAAS_SESSION_ATTRIBUTES_LOOP_COUNT, BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES, BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY, BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_TYPE, BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY_ID, BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY, BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_ADDRESS_FAMILY, BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_LOOP_COUNT, BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT, BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT_MAXIMUM, DISPLAY_NAME, BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT, BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP, BGPAAS_IP_ADDRESS, AUTONOMOUS_SYSTEM, BGP_ROUTER_REFS, VIRTUAL_MACHINE_INTERFACE_REFS, PROJECT ) = ( 'name', 'fq_name', 'bgpaas_session_attributes', 'bgpaas_session_attributes_bgp_router', 'bgpaas_session_attributes_admin_down', 'bgpaas_session_attributes_passive', 'bgpaas_session_attributes_as_override', 'bgpaas_session_attributes_hold_time', 'bgpaas_session_attributes_loop_count', 'bgpaas_session_attributes_address_families', 'bgpaas_session_attributes_address_families_family', 'bgpaas_session_attributes_auth_data', 'bgpaas_session_attributes_auth_data_key_type', 'bgpaas_session_attributes_auth_data_key_items', 'bgpaas_session_attributes_auth_data_key_items_key_id', 'bgpaas_session_attributes_auth_data_key_items_key', 'bgpaas_session_attributes_family_attributes', 'bgpaas_session_attributes_family_attributes_address_family', 'bgpaas_session_attributes_family_attributes_loop_count', 'bgpaas_session_attributes_family_attributes_prefix_limit', 'bgpaas_session_attributes_family_attributes_prefix_limit_maximum', 'display_name', 'bgpaas_suppress_route_advertisement', 'bgpaas_ipv4_mapped_ipv6_nexthop', 'bgpaas_ip_address', 'autonomous_system', 'bgp_router_refs', 'virtual_machine_interface_refs', 'project' ) properties_schema = { NAME: properties.Schema( properties.Schema.STRING, _('NAME.'), update_allowed=True, required=False, ), FQ_NAME: properties.Schema( properties.Schema.STRING, _('FQ_NAME.'), update_allowed=True, required=False, ), BGPAAS_SESSION_ATTRIBUTES: properties.Schema( properties.Schema.MAP, _('BGPAAS_SESSION_ATTRIBUTES.'), update_allowed=True, required=False, schema={ BGPAAS_SESSION_ATTRIBUTES_BGP_ROUTER: properties.Schema( properties.Schema.STRING, _('BGPAAS_SESSION_ATTRIBUTES_BGP_ROUTER.'), update_allowed=True, required=False, ), BGPAAS_SESSION_ATTRIBUTES_ADMIN_DOWN: properties.Schema( properties.Schema.BOOLEAN, _('BGPAAS_SESSION_ATTRIBUTES_ADMIN_DOWN.'), update_allowed=True, required=False, ), BGPAAS_SESSION_ATTRIBUTES_PASSIVE: properties.Schema( properties.Schema.BOOLEAN, _('BGPAAS_SESSION_ATTRIBUTES_PASSIVE.'), update_allowed=True, required=False, ), BGPAAS_SESSION_ATTRIBUTES_AS_OVERRIDE: properties.Schema( properties.Schema.BOOLEAN, _('BGPAAS_SESSION_ATTRIBUTES_AS_OVERRIDE.'), update_allowed=True, required=False, ), BGPAAS_SESSION_ATTRIBUTES_HOLD_TIME: properties.Schema( properties.Schema.INTEGER, _('BGPAAS_SESSION_ATTRIBUTES_HOLD_TIME.'), update_allowed=True, required=False, constraints=[ constraints.Range(0, 65535), ], ), BGPAAS_SESSION_ATTRIBUTES_LOOP_COUNT: properties.Schema( properties.Schema.INTEGER, _('BGPAAS_SESSION_ATTRIBUTES_LOOP_COUNT.'), update_allowed=True, required=False, constraints=[ constraints.Range(0, 16), ], ), BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES: properties.Schema( properties.Schema.MAP, _('BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES.'), update_allowed=True, required=False, schema={ BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY: properties.Schema( properties.Schema.LIST, _('BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY.'), update_allowed=True, required=False, constraints=[ constraints.AllowedValues([u'inet', u'inet-vpn', u'e-vpn', u'erm-vpn', u'route-target', u'inet6', u'inet6-vpn']), ], ), } ), BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA: properties.Schema( properties.Schema.MAP, _('BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA.'), update_allowed=True, required=False, schema={ BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_TYPE: properties.Schema( properties.Schema.STRING, _('BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_TYPE.'), update_allowed=True, required=False, constraints=[ constraints.AllowedValues([u'md5']), ], ), BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS: properties.Schema( properties.Schema.LIST, _('BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS.'), update_allowed=True, required=False, schema=properties.Schema( properties.Schema.MAP, schema={ BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY_ID: properties.Schema( properties.Schema.INTEGER, _('BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY_ID.'), update_allowed=True, required=False, constraints=[ constraints.Range(0, 63), ], ), BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY: properties.Schema( properties.Schema.STRING, _('BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY.'), update_allowed=True, required=False, ), } ) ), } ), BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES: properties.Schema( properties.Schema.LIST, _('BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES.'), update_allowed=True, required=False, schema=properties.Schema( properties.Schema.MAP, schema={ BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_ADDRESS_FAMILY: properties.Schema( properties.Schema.STRING, _('BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_ADDRESS_FAMILY.'), update_allowed=True, required=False, constraints=[ constraints.AllowedValues([u'inet', u'inet-vpn', u'e-vpn', u'erm-vpn', u'route-target', u'inet6', u'inet6-vpn']), ], ), BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_LOOP_COUNT: properties.Schema( properties.Schema.INTEGER, _('BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_LOOP_COUNT.'), update_allowed=True, required=False, constraints=[ constraints.Range(0, 16), ], ), BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT: properties.Schema( properties.Schema.MAP, _('BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT.'), update_allowed=True, required=False, schema={ BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT_MAXIMUM: properties.Schema( properties.Schema.INTEGER, _('BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT_MAXIMUM.'), update_allowed=True, required=False, ), } ), } ) ), } ), DISPLAY_NAME: properties.Schema( properties.Schema.STRING, _('DISPLAY_NAME.'), update_allowed=True, required=False, ), BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT: properties.Schema( properties.Schema.BOOLEAN, _('BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT.'), update_allowed=True, required=False, ), BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP: properties.Schema( properties.Schema.BOOLEAN, _('BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP.'), update_allowed=True, required=False, ), BGPAAS_IP_ADDRESS: properties.Schema( properties.Schema.STRING, _('BGPAAS_IP_ADDRESS.'), update_allowed=True, required=False, ), AUTONOMOUS_SYSTEM: properties.Schema( properties.Schema.INTEGER, _('AUTONOMOUS_SYSTEM.'), update_allowed=True, required=False, ), BGP_ROUTER_REFS: properties.Schema( properties.Schema.LIST, _('BGP_ROUTER_REFS.'), update_allowed=True, required=False, ), VIRTUAL_MACHINE_INTERFACE_REFS: properties.Schema( properties.Schema.LIST, _('VIRTUAL_MACHINE_INTERFACE_REFS.'), update_allowed=True, required=False, ), PROJECT: properties.Schema( properties.Schema.STRING, _('PROJECT.'), update_allowed=True, required=False, ), } attributes_schema = { NAME: attributes.Schema( _('NAME.'), ), FQ_NAME: attributes.Schema( _('FQ_NAME.'), ), BGPAAS_SESSION_ATTRIBUTES: attributes.Schema( _('BGPAAS_SESSION_ATTRIBUTES.'), ), DISPLAY_NAME: attributes.Schema( _('DISPLAY_NAME.'), ), BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT: attributes.Schema( _('BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT.'), ), BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP: attributes.Schema( _('BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP.'), ), BGPAAS_IP_ADDRESS: attributes.Schema( _('BGPAAS_IP_ADDRESS.'), ), AUTONOMOUS_SYSTEM: attributes.Schema( _('AUTONOMOUS_SYSTEM.'), ), BGP_ROUTER_REFS: attributes.Schema( _('BGP_ROUTER_REFS.'), ), VIRTUAL_MACHINE_INTERFACE_REFS: attributes.Schema( _('VIRTUAL_MACHINE_INTERFACE_REFS.'), ), PROJECT: attributes.Schema( _('PROJECT.'), ), } update_allowed_keys = ('Properties',) def handle_create(self): parent_obj = None if parent_obj is None and self.properties.get(self.PROJECT): try: parent_obj = self.vnc_lib().project_read(id=self.properties.get(self.PROJECT)) except vnc_api.NoIdError: parent_obj = self.vnc_lib().project_read(fq_name_str=self.properties.get(self.PROJECT)) except: parent_obj = None if parent_obj is None: tenant_id = self.stack.context.tenant_id parent_obj = self.vnc_lib().project_read(id=str(uuid.UUID(tenant_id))) if parent_obj is None: raise Exception('Error: parent is not specified in template!') obj_0 = vnc_api.BgpAsAService(name=self.properties[self.NAME], parent_obj=parent_obj) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES) is not None: obj_1 = vnc_api.BgpSessionAttributes() if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_BGP_ROUTER) is not None: obj_1.set_bgp_router(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_BGP_ROUTER)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADMIN_DOWN) is not None: obj_1.set_admin_down(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADMIN_DOWN)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_PASSIVE) is not None: obj_1.set_passive(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_PASSIVE)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AS_OVERRIDE) is not None: obj_1.set_as_override(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AS_OVERRIDE)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_HOLD_TIME) is not None: obj_1.set_hold_time(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_HOLD_TIME)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_LOOP_COUNT) is not None: obj_1.set_loop_count(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_LOOP_COUNT)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES) is not None: obj_2 = vnc_api.AddressFamilies() if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY) is not None: for index_2 in range(len(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY))): obj_2.add_family(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY)[index_2]) obj_1.set_address_families(obj_2) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA) is not None: obj_2 = vnc_api.AuthenticationData() if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_TYPE) is not None: obj_2.set_key_type(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_TYPE)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS) is not None: for index_2 in range(len(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS))): obj_3 = vnc_api.AuthenticationKeyItem() if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, {})[index_2].get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY_ID) is not None: obj_3.set_key_id(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, {})[index_2].get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY_ID)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, {})[index_2].get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY) is not None: obj_3.set_key(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, {})[index_2].get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY)) obj_2.add_key_items(obj_3) obj_1.set_auth_data(obj_2) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES) is not None: for index_1 in range(len(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES))): obj_2 = vnc_api.BgpFamilyAttributes() if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_ADDRESS_FAMILY) is not None: obj_2.set_address_family(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_ADDRESS_FAMILY)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_LOOP_COUNT) is not None: obj_2.set_loop_count(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_LOOP_COUNT)) if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT) is not None: obj_3 = vnc_api.BgpPrefixLimit() if self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT_MAXIMUM) is not None: obj_3.set_maximum(self.properties.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT_MAXIMUM)) obj_2.set_prefix_limit(obj_3) obj_1.add_family_attributes(obj_2) obj_0.set_bgpaas_session_attributes(obj_1) if self.properties.get(self.DISPLAY_NAME) is not None: obj_0.set_display_name(self.properties.get(self.DISPLAY_NAME)) if self.properties.get(self.BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT) is not None: obj_0.set_bgpaas_suppress_route_advertisement(self.properties.get(self.BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT)) if self.properties.get(self.BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP) is not None: obj_0.set_bgpaas_ipv4_mapped_ipv6_nexthop(self.properties.get(self.BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP)) if self.properties.get(self.BGPAAS_IP_ADDRESS) is not None: obj_0.set_bgpaas_ip_address(self.properties.get(self.BGPAAS_IP_ADDRESS)) if self.properties.get(self.AUTONOMOUS_SYSTEM) is not None: obj_0.set_autonomous_system(self.properties.get(self.AUTONOMOUS_SYSTEM)) # reference to bgp_router_refs if self.properties.get(self.BGP_ROUTER_REFS): for index_0 in range(len(self.properties.get(self.BGP_ROUTER_REFS))): try: ref_obj = self.vnc_lib().bgp_router_read( id=self.properties.get(self.BGP_ROUTER_REFS)[index_0] ) except vnc_api.NoIdError: ref_obj = self.vnc_lib().bgp_router_read( fq_name_str=self.properties.get(self.BGP_ROUTER_REFS)[index_0] ) obj_0.add_bgp_router(ref_obj) # reference to virtual_machine_interface_refs if self.properties.get(self.VIRTUAL_MACHINE_INTERFACE_REFS): for index_0 in range(len(self.properties.get(self.VIRTUAL_MACHINE_INTERFACE_REFS))): try: ref_obj = self.vnc_lib().virtual_machine_interface_read( id=self.properties.get(self.VIRTUAL_MACHINE_INTERFACE_REFS)[index_0] ) except vnc_api.NoIdError: ref_obj = self.vnc_lib().virtual_machine_interface_read( fq_name_str=self.properties.get(self.VIRTUAL_MACHINE_INTERFACE_REFS)[index_0] ) obj_0.add_virtual_machine_interface(ref_obj) try: obj_uuid = super(ContrailBgpAsAService, self).resource_create(obj_0) except: raise Exception(_('bgp-as-a-service %s could not be updated.') % self.name) self.resource_id_set(obj_uuid) def handle_update(self, json_snippet, tmpl_diff, prop_diff): try: obj_0 = self.vnc_lib().bgp_as_a_service_read( id=self.resource_id ) except: raise Exception(_('bgp-as-a-service %s not found.') % self.name) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES) is not None: obj_1 = vnc_api.BgpSessionAttributes() if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_BGP_ROUTER) is not None: obj_1.set_bgp_router(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_BGP_ROUTER)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADMIN_DOWN) is not None: obj_1.set_admin_down(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADMIN_DOWN)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_PASSIVE) is not None: obj_1.set_passive(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_PASSIVE)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AS_OVERRIDE) is not None: obj_1.set_as_override(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AS_OVERRIDE)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_HOLD_TIME) is not None: obj_1.set_hold_time(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_HOLD_TIME)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_LOOP_COUNT) is not None: obj_1.set_loop_count(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_LOOP_COUNT)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES) is not None: obj_2 = vnc_api.AddressFamilies() if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY) is not None: for index_2 in range(len(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY))): obj_2.add_family(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_ADDRESS_FAMILIES_FAMILY)[index_2]) obj_1.set_address_families(obj_2) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA) is not None: obj_2 = vnc_api.AuthenticationData() if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_TYPE) is not None: obj_2.set_key_type(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_TYPE)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS) is not None: for index_2 in range(len(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS))): obj_3 = vnc_api.AuthenticationKeyItem() if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, {})[index_2].get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY_ID) is not None: obj_3.set_key_id(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, {})[index_2].get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY_ID)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, {})[index_2].get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY) is not None: obj_3.set_key(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS, {})[index_2].get(self.BGPAAS_SESSION_ATTRIBUTES_AUTH_DATA_KEY_ITEMS_KEY)) obj_2.add_key_items(obj_3) obj_1.set_auth_data(obj_2) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES) is not None: for index_1 in range(len(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES))): obj_2 = vnc_api.BgpFamilyAttributes() if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_ADDRESS_FAMILY) is not None: obj_2.set_address_family(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_ADDRESS_FAMILY)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_LOOP_COUNT) is not None: obj_2.set_loop_count(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_LOOP_COUNT)) if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT) is not None: obj_3 = vnc_api.BgpPrefixLimit() if prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT_MAXIMUM) is not None: obj_3.set_maximum(prop_diff.get(self.BGPAAS_SESSION_ATTRIBUTES, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES, {})[index_1].get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT, {}).get(self.BGPAAS_SESSION_ATTRIBUTES_FAMILY_ATTRIBUTES_PREFIX_LIMIT_MAXIMUM)) obj_2.set_prefix_limit(obj_3) obj_1.add_family_attributes(obj_2) obj_0.set_bgpaas_session_attributes(obj_1) if prop_diff.get(self.DISPLAY_NAME) is not None: obj_0.set_display_name(prop_diff.get(self.DISPLAY_NAME)) if prop_diff.get(self.BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT) is not None: obj_0.set_bgpaas_suppress_route_advertisement(prop_diff.get(self.BGPAAS_SUPPRESS_ROUTE_ADVERTISEMENT)) if prop_diff.get(self.BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP) is not None: obj_0.set_bgpaas_ipv4_mapped_ipv6_nexthop(prop_diff.get(self.BGPAAS_IPV4_MAPPED_IPV6_NEXTHOP)) if prop_diff.get(self.BGPAAS_IP_ADDRESS) is not None: obj_0.set_bgpaas_ip_address(prop_diff.get(self.BGPAAS_IP_ADDRESS)) if prop_diff.get(self.AUTONOMOUS_SYSTEM) is not None: obj_0.set_autonomous_system(prop_diff.get(self.AUTONOMOUS_SYSTEM)) # reference to bgp_router_refs ref_obj_list = [] ref_data_list = [] if self.BGP_ROUTER_REFS in prop_diff: for index_0 in range(len(prop_diff.get(self.BGP_ROUTER_REFS) or [])): try: ref_obj = self.vnc_lib().bgp_router_read( id=prop_diff.get(self.BGP_ROUTER_REFS)[index_0] ) except: ref_obj = self.vnc_lib().bgp_router_read( fq_name_str=prop_diff.get(self.BGP_ROUTER_REFS)[index_0] ) ref_obj_list.append(ref_obj.fq_name) obj_0.set_bgp_router_list(ref_obj_list) # End: reference to bgp_router_refs # reference to virtual_machine_interface_refs ref_obj_list = [] ref_data_list = [] if self.VIRTUAL_MACHINE_INTERFACE_REFS in prop_diff: for index_0 in range(len(prop_diff.get(self.VIRTUAL_MACHINE_INTERFACE_REFS) or [])): try: ref_obj = self.vnc_lib().virtual_machine_interface_read( id=prop_diff.get(self.VIRTUAL_MACHINE_INTERFACE_REFS)[index_0] ) except: ref_obj = self.vnc_lib().virtual_machine_interface_read( fq_name_str=prop_diff.get(self.VIRTUAL_MACHINE_INTERFACE_REFS)[index_0] ) ref_obj_list.append(ref_obj.fq_name) obj_0.set_virtual_machine_interface_list(ref_obj_list) # End: reference to virtual_machine_interface_refs try: self.vnc_lib().bgp_as_a_service_update(obj_0) except: raise Exception(_('bgp-as-a-service %s could not be updated.') % self.name) def handle_delete(self): if self.resource_id is None: return try: self.vnc_lib().bgp_as_a_service_delete(id=self.resource_id) except Exception as ex: self._ignore_not_found(ex) LOG.warn(_('bgp_as_a_service %s already deleted.') % self.name) def _show_resource(self): obj = self.vnc_lib().bgp_as_a_service_read(id=self.resource_id) obj_dict = obj.serialize_to_json() return obj_dict def resource_mapping(): return { 'OS::ContrailV2::BgpAsAService': ContrailBgpAsAService, }
66.726054
1,126
0.648905
3,893
34,831
5.340098
0.044696
0.166338
0.29429
0.178941
0.921834
0.891289
0.848814
0.823993
0.738275
0.69277
0
0.006622
0.267291
34,831
521
1,127
66.854127
0.807962
0.008182
0
0.502066
1
0
0.074731
0.058662
0
0
0
0
0
1
0.010331
false
0.018595
0.022727
0.002066
0.049587
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
542005d4b9eaf899639dd84129496c63ba749c35
29,024
py
Python
core/srl_fairness.py
CoraJung/bandit-under-fairness-constraints
02d9f70663a95685d296916de3cd0f83797aaded
[ "MIT" ]
null
null
null
core/srl_fairness.py
CoraJung/bandit-under-fairness-constraints
02d9f70663a95685d296916de3cd0f83797aaded
[ "MIT" ]
null
null
null
core/srl_fairness.py
CoraJung/bandit-under-fairness-constraints
02d9f70663a95685d296916de3cd0f83797aaded
[ "MIT" ]
2
2021-05-14T21:25:57.000Z
2021-05-14T22:03:17.000Z
import numpy as np from utils import rvs from core.base.srl import SeldonianRLBase def PolicyImprovementRLMixin(mode='ttest', scaling=2.0): class PolicyImprovementRLMixin: def _get_return_ranges(self): raise NotImplementedError('TutoringSystem._get_return_ranges() not defined') def _preprocessor(self, data): R = data['R'] R_ref = data['R_ref'] return { 'R' : R, 'R_ref' : R_ref } def _make_rvs(self): r_min, r_max = self._get_return_ranges() # Variables for expected return given T under the candidate policy R = rvs.BoundedRealSampleSet(name='R', lower=r_min, upper=r_max) ER = R.expected_value('E[R]', mode=mode) # Variables for expected return given T under the reference policy R_ref = rvs.BoundedRealSampleSet(name='R_ref', lower=r_min, upper=r_max) ER_ref = R_ref.expected_value('E[R_ref]', mode=mode) # Constants e = rvs.constant(self.epsilons[0], name='e') # BQF and Constraint Objectives # g0(theta) := (E[R_ref] - E[R]) - e BQF = rvs.sum( ER_ref, -ER, name='BQF' ) CO = rvs.sum( BQF, -e, name='CO' ) SCO = rvs.sum( BQF, -e, name='SCO', scaling=scaling ) # Store the sample sets and variables self._scheck_rvs = [ CO ] self._ccheck_rvs = [ SCO ] self._eval_rvs = { 'bqf_0_mean' : BQF, 'co_0_mean' : CO } # Add the sample sets and variables to the manager self._vm = rvs.VariableManager(self._preprocessor) self._vm.add_sample_set(R, R_ref) self._vm.add(ER, ER_ref, BQF, CO, SCO) return PolicyImprovementRLMixin class PolicyImprovementSRL(PolicyImprovementRLMixin(mode='ttest', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, epsilon=0.0, delta=0.05, model_type='softmax', minimum_return=1): epsilons = np.array([ epsilon ]) deltas = np.array([ delta ]) self._min_return = min_return self._max_return = max_return super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) def _get_return_ranges(self): return (self._min_return, self._max_return) class PolicyImprovementBootstrapSRL(PolicyImprovementRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, epsilon=0.0, delta=0.05, model_type='softmax', minimum_return=1): epsilons = np.array([ epsilon ]) deltas = np.array([ delta ]) self._min_return = min_return self._max_return = max_return super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) def _get_return_ranges(self): return (self._min_return, self._max_return) def PolicyImprovementEmpRLMixin(mode='ttest', scaling=2.0): class PolicyImprovementEmpRLMixin: def _get_return_ranges(self): raise NotImplementedError('TutoringSystem._get_return_ranges() not defined') def _preprocessor(self, data): R = data['R'] return { 'R' : R } def _make_rvs(self): r_min, r_max = self._get_return_ranges() # Variables for expected return given T under the candidate policy R = rvs.BoundedRealSampleSet(name='R', lower=r_min, upper=r_max) ER = R.expected_value('E[R]', mode=mode) ER_ref = rvs.constant(self._ref_return, name='E[R_ref]') # Constants e = rvs.constant(self.epsilons[0], name='e') # BQF and Constraint Objectives # g0(theta) := (E[R_ref] - E[R]) - e BQF = rvs.sum( ER_ref, -ER, name='BQF' ) CO = rvs.sum( BQF, -e, name='CO' ) SCO = rvs.sum( BQF, -e, name='SCO', scaling=scaling ) # Store the sample sets and variables self._scheck_rvs = [ CO ] self._ccheck_rvs = [ SCO ] self._eval_rvs = { 'bqf_0_mean' : BQF, 'co_0_mean' : CO } # Add the sample sets and variables to the manager self._vm = rvs.VariableManager(self._preprocessor) self._vm.add_sample_set(R) self._vm.add(ER, ER_ref, BQF, CO, SCO) return PolicyImprovementEmpRLMixin class PolicyImprovementEmpSRL(PolicyImprovementEmpRLMixin(mode='ttest', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, epsilon=0.0, delta=0.05, ref_return=0.0, model_type='softmax', minimum_return=1): epsilons = np.array([ epsilon ]) deltas = np.array([ delta ]) self._min_return = min_return self._max_return = max_return self._ref_return = ref_return super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) def _get_return_ranges(self): return (self._min_return, self._max_return) class PolicyImprovementBootstrapEmpSRL(PolicyImprovementEmpRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, epsilon=0.0, delta=0.05, ref_return=0.0, model_type='softmax', minimum_return=1): epsilons = np.array([ epsilon ]) deltas = np.array([ delta ]) self._min_return = min_return self._max_return = max_return self._ref_return = ref_return super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) def _get_return_ranges(self): return (self._min_return, self._max_return) ###################### # Group Fairness # ###################### def GroupFairnessRLMixin(mode='ttest', scaling=2.0): class GroupFairness: def _is_positive(self): raise NotImplementedError('GroupFairness._is_positive undefined.') def _preprocessor(self, data): T = data['T'] P = data['P'][:,0,:] A = np.argmax(P,1) # A = data['A'] # Split Y and Yp into two sets based T A0 = A[np.where(T==0)[0]].astype(int) A1 = A[np.where(T==1)[0]].astype(int) # Compute indicators for "positive" action predictions Pos0 = np.array([ self._is_positive(a) for a in A0 ]).astype(np.float) Pos1 = np.array([ self._is_positive(a) for a in A1 ]).astype(np.float) # Compute type-dependent indicators for positive predictions return { 'Pos0' : Pos0, 'Pos1' : Pos1 } def _make_rvs(self): # Sample sets for false-positive classifications conditioned on T Pos0 = rvs.BoundedRealSampleSet(name='Pos0', lower=0, upper=1) Pos1 = rvs.BoundedRealSampleSet(name='Pos1', lower=0, upper=1) # Variables representing the conditional false-positive rates and the BQF PrPos0 = Pos0.expected_value('Pr(Pos|T=0)', mode=mode) PrPos1 = Pos1.expected_value('Pr(Pos|T=1)', mode=mode) # Constants e = rvs.constant(self.epsilons[0], name='e') # BQF BQF = rvs.abs( PrPos0-PrPos1, name='BQF' ) CO = rvs.sum( BQF, -e, name='CO' ) SCO = rvs.sum( BQF, -e, name='SCO', scaling=scaling ) # Store the sample sets and variables self._scheck_rvs = [ CO ] self._ccheck_rvs = [ SCO ] self._eval_rvs = { 'bqf_0_mean' : BQF, 'co_0_mean' : CO } # Add the sample sets and variables to the manager self._vm = rvs.VariableManager(self._preprocessor) self._vm.add_sample_set(Pos0, Pos1) self._vm.add(PrPos0, PrPos1, BQF, CO, SCO) return GroupFairness class GroupFairnessSRL(GroupFairnessRLMixin(mode='ttest', scaling=2.0), SeldonianRLBase): def __init__(self, is_positivef, epsilon=0.05, delta=0.05, model_type='argmax', minimum_return=1): # orig: model_type='softmax' epsilons = np.array([ epsilon ]) deltas = np.array([ delta ]) super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) self._is_positive = is_positivef class GroupFairnessBootstrapSRL(GroupFairnessRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): def __init__(self, is_positivef, epsilon=0.05, delta=0.05, model_type='softmax', minimum_return=1): epsilons = np.array([ epsilon ]) deltas = np.array([ delta ]) super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) self._is_positive = is_positivef ######################## # Disparate Impact # ######################## def DisparateImpactMixin(mode='ttest', scaling=2.0): class DisparateImpact: def _is_positive(self): raise NotImplementedError('DisparateImpact._is_positive undefined.') def _preprocessor(self, data): T = data['T'] P = data['P'][:,0,:] A = np.argmax(P,1) # Split Y and Yp into two sets based T A0 = A[np.where(T==0)[0]].astype(int) A1 = A[np.where(T==1)[0]].astype(int) # Compute indicators for "positive" action predictions Pos0 = np.array([ self._is_positive(a) for a in A0 ]).astype(np.float) Pos1 = np.array([ self._is_positive(a) for a in A1 ]).astype(np.float) # Compute type-dependent indicators for positive predictions return { 'Pos0' : Pos0, 'Pos1' : Pos1 } def _make_rvs(self): # Sample sets for false-positive classifications conditioned on T Pos0 = rvs.BoundedRealSampleSet(name='Pos0', lower=0, upper=1) Pos1 = rvs.BoundedRealSampleSet(name='Pos1', lower=0, upper=1) # Variables representing the conditional false-positive rates and the BQF PrPos0 = Pos0.expected_value('Pr(Pos|T=0)', mode=mode) PrPos1 = Pos1.expected_value('Pr(Pos|T=1)', mode=mode) # Constants pct = rvs.constant(self.epsilons[0], name='pct') # BQF BQF = rvs.maxrec( -(PrPos0/PrPos1), name='BQF') CO = rvs.sum( BQF, -pct, name='CO' ) SCO = rvs.sum( BQF, -pct, name='SCO', scaling=scaling ) # Store the sample sets and variables self._scheck_rvs = [ CO ] self._ccheck_rvs = [ SCO ] self._eval_rvs = { 'bqf_0_mean' : BQF, 'co_0_mean' : CO } # Add the sample sets and variables to the manager self._vm = rvs.VariableManager(self._preprocessor) self._vm.add_sample_set(Pos0, Pos1) self._vm.add(PrPos0, PrPos1, BQF, CO, SCO) return DisparateImpact class DisparateImpactSRL(DisparateImpactMixin(mode='ttest', scaling=2.0), SeldonianRLBase): def __init__(self, is_positivef, epsilon=0.05, delta=0.05, model_type='softmax', minimum_return=1): epsilons = np.array([ epsilon ]) deltas = np.array([ delta ]) super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) self._is_positive = is_positivef ################################################################ # Tutoring System (Both Genders, Bounded Reference Return) # ################################################################ def TutoringSystemRLMixin(mode='ttest', scaling=2.0): class TutoringSystem: def _get_return_ranges(self): raise NotImplementedError('TutoringSystem._get_return_ranges() not defined') def _preprocessor(self, data): T = data['T'] R = data['R'] R_ref = data['R_ref'] # Split R and R_ref into two sets based T R0 = R[np.where(T==0)[0]] / self._iw_type_corrections[0] # Undo any type-based importance weighting R1 = R[np.where(T==1)[0]] / self._iw_type_corrections[1] # Undo any type-based importance weighting R_ref0 = R_ref[np.where(T==0)[0]] R_ref1 = R_ref[np.where(T==1)[0]] # Compute type-dependent indicators for positive predictions return { 'R0' : R0, 'R_ref0' : R_ref0, 'R1' : R1, 'R_ref1' : R_ref1 } def _make_rvs(self): r_min, r_max = self._get_return_ranges() # Variables for expected return given T under the candidate policy R0 = rvs.BoundedRealSampleSet(name='R0', lower=r_min, upper=r_max) R1 = rvs.BoundedRealSampleSet(name='R1', lower=r_min, upper=r_max) ER0 = R0.expected_value('E[R|T=0]', mode=mode) ER1 = R1.expected_value('E[R|T=1]', mode=mode) # Variables for expected return given T under the reference policy R_ref0 = rvs.BoundedRealSampleSet(name='R_ref0', lower=r_min, upper=r_max) R_ref1 = rvs.BoundedRealSampleSet(name='R_ref1', lower=r_min, upper=r_max) ER_ref0 = R_ref0.expected_value('E[R_ref|T=0]', mode=mode) ER_ref1 = R_ref1.expected_value('E[R_ref|T=1]', mode=mode) # Constants e = rvs.constant(self.epsilons[0], name='e') # BQF and Constraint Objectives # g0(theta) := (E[R_ref|T=0] - E[R|T=0]) - e # g1(theta) := (E[R_ref|T=1] - E[R|T=1]) - e BQF0 = rvs.sum( ER_ref0, -ER0, name='BQF0' ) BQF1 = rvs.sum( ER_ref1, -ER1, name='BQF1' ) CO0 = rvs.sum( BQF0, -e, name='CO0' ) SCO0 = rvs.sum( BQF0, -e, name='SCO0', scaling=scaling ) CO1 = rvs.sum( BQF1, -e, name='CO1' ) SCO1 = rvs.sum( BQF1, -e, name='SCO1', scaling=scaling ) # Store the sample sets and variables self._scheck_rvs = [ CO0, CO1 ] self._ccheck_rvs = [ SCO0, SCO1 ] self._eval_rvs = { 'bqf_0_mean' : BQF0, 'co_0_mean' : CO0, 'bqf_1_mean' : BQF1, 'co_1_mean' : CO1 } # Add the sample sets and variables to the manager self._vm = rvs.VariableManager(self._preprocessor) self._vm.add_sample_set(R0, R_ref0, R1, R_ref1) self._vm.add(ER0, ER_ref0, ER1, ER_ref1, BQF0, CO0, SCO0, BQF1, CO1, SCO1) return TutoringSystem class TutoringSystemSRL(TutoringSystemRLMixin(mode='ttest', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, ref_return_T0, ref_return_T1, epsilon_f=0.0, epsilon_m=0.0, delta=0.05, model_type='softmax', minimum_return=1, female_iw_correction=1.0, male_iw_correction=1.0): iw_corrections = {0:male_iw_correction, 1:female_iw_correction} epsilons = np.array([ epsilon_f, epsilon_m ]) deltas = np.array([ delta, delta ]) # Same delta for each constraint self._min_return = min_return self._max_return = max_return super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return, iw_type_corrections=iw_corrections) def _get_return_ranges(self): return (self._min_return, self._max_return) class TutoringSystemBootstrapSRL(TutoringSystemRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, ref_return_T0, ref_return_T1, epsilon_f=0.0, epsilon_m=0.0, delta=0.05, model_type='softmax', minimum_return=1, female_iw_correction=1.0, male_iw_correction=1.0): iw_corrections = {0:male_iw_correction, 1:female_iw_correction} epsilons = np.array([ epsilon_f, epsilon_m ]) deltas = np.array([ delta, delta ]) # Same delta for each constraint self._min_return = min_return self._max_return = max_return super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return, iw_type_corrections=iw_corrections) def _get_return_ranges(self): return (self._min_return, self._max_return) ################################################################# # Tutoring System (Both Genders, Observed Reference Return) # ################################################################# def TutoringSystemEmpRLMixin(mode='ttest', scaling=2.0): class TutoringSystemEmp: def _get_return_ranges(self): raise NotImplementedError('TutoringSystemEmp._get_return_ranges() not defined') def _preprocessor(self, data): T = data['T'] R = data['R'] # Split R and R_ref into two sets based T R0 = R[np.where(T==0)[0]] / self._iw_type_corrections[0] # Undo any type-based importance weighting R1 = R[np.where(T==1)[0]] / self._iw_type_corrections[1] # Undo any type-based importance weighting # Compute type-dependent indicators for positive predictions return { 'R0' : R0, 'R1' : R1 } def _make_rvs(self): r_min, r_max = self._get_return_ranges() # Variables for expected return given T under the candidate policy R0 = rvs.BoundedRealSampleSet(name='R0', lower=r_min, upper=r_max) R1 = rvs.BoundedRealSampleSet(name='R1', lower=r_min, upper=r_max) ER0 = R0.expected_value('E[R|T=0]', mode=mode) ER1 = R1.expected_value('E[R|T=1]', mode=mode) # Constants eM = rvs.constant(self.epsilons[0], name='eM') eF = rvs.constant(self.epsilons[1], name='eF') r_ref0 = rvs.constant(self._ref_return_T0, name='Avg[R_ref|T=0]') r_ref1 = rvs.constant(self._ref_return_T1, name='Avg[R_ref|T=1]') # BQF and Constraint Objectives # g0(theta) := (E[R_ref|T=0] - Average(R|T=0,D) - eM # g1(theta) := (E[R_ref|T=1] - Average(R|T=1,D) - eF BQF0 = rvs.sum( r_ref0, -ER0, name='BQF0' ) BQF1 = rvs.sum( r_ref1, -ER1, name='BQF1' ) CO0 = rvs.sum( BQF0, -eM, name='CO0' ) SCO0 = rvs.sum( BQF0, -eM, name='SCO0', scaling=scaling ) CO1 = rvs.sum( BQF1, -eF, name='CO1' ) SCO1 = rvs.sum( BQF1, -eF, name='SCO1', scaling=scaling ) # Store the sample sets and variables self._scheck_rvs = [ CO0, CO1 ] self._ccheck_rvs = [ SCO0, SCO1 ] self._eval_rvs = { 'bqf_0_mean' : BQF0, 'co_0_mean' : CO0, 'bqf_1_mean' : BQF1, 'co_1_mean' : CO1 } # Add the sample sets and variables to the manager self._vm = rvs.VariableManager(self._preprocessor) self._vm.add_sample_set(R0, R1) self._vm.add(ER0, ER1, BQF0, CO0, SCO0, BQF1, CO1, SCO1) return TutoringSystemEmp class TutoringSystemEmpSRL(TutoringSystemEmpRLMixin(mode='ttest', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, ref_return_T0, ref_return_T1, epsilon_f=0.0, epsilon_m=0.0, delta=0.05, model_type='softmax', minimum_return=1, female_iw_correction=1.0, male_iw_correction=1.0): iw_corrections = {0:male_iw_correction, 1:female_iw_correction} epsilons = np.array([ epsilon_m, epsilon_f ]) deltas = np.array([ delta, delta ]) # Same delta for each constraint self._min_return = min_return self._max_return = max_return self._ref_return_T0 = ref_return_T0 self._ref_return_T1 = ref_return_T1 super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return, iw_type_corrections=iw_corrections) def _get_return_ranges(self): return (self._min_return, self._max_return) class TutoringSystemBootstrapEmpSRL(TutoringSystemEmpRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, ref_return_T0, ref_return_T1, epsilon_f=0.0, epsilon_m=0.0, delta=0.05, model_type='softmax', minimum_return=1, female_iw_correction=1.0, male_iw_correction=1.0): iw_corrections = {0:male_iw_correction, 1:female_iw_correction} epsilons = np.array([ epsilon_m, epsilon_f ]) deltas = np.array([ delta, delta ]) # Same delta for each constraint self._min_return = min_return self._max_return = max_return self._ref_return_T0 = ref_return_T0 self._ref_return_T1 = ref_return_T1 super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return, iw_type_corrections=iw_corrections) def _get_return_ranges(self): return (self._min_return, self._max_return) ################################################################ # Tutoring System (Females only, Bounded Reference Return) # ################################################################ def TutoringSystemFemaleRLMixin(mode='ttest', scaling=2.0): class TutoringSystemFemale: def _get_return_ranges(self): raise NotImplementedError('TutoringSystemFemale._get_return_ranges() not defined') def _preprocessor(self, data): T = data['T'] R = data['R'] R_ref = data['R_ref'] # Split R and R_ref into two sets based T R1 = R[np.where(T==1)[0]] / self._iw_type_corrections[1] # Undo any type-based importance weighting R_ref1 = R_ref[np.where(T==1)[0]] # Compute type-dependent indicators for positive predictions return { 'R1' : R1, 'R_ref1' : R_ref1 } def _make_rvs(self): r_min, r_max = self._get_return_ranges() # Variables for expected return given T under the candidate policy R1 = rvs.BoundedRealSampleSet(name='R1', lower=r_min, upper=r_max) ER1 = R1.expected_value('E[R|T=1]', mode=mode) # Variables for expected return given T under the reference policy R_ref1 = rvs.BoundedRealSampleSet(name='R_ref1', lower=r_min, upper=r_max) ER_ref1 = R_ref1.expected_value('E[R_ref|T=1]', mode=mode) # Constants e = rvs.constant(self.epsilons[0], name='e') # BQF and Constraint Objectives # g(theta) := (E[R_ref|T=1] - E[R|T=1]) - e BQF = rvs.sum( ER_ref1, -ER1, name='BQF' ) CO = rvs.sum( BQF, -e, name='CO' ) SCO = rvs.sum( BQF, -e, name='SCO', scaling=scaling ) # Store the sample sets and variables self._scheck_rvs = [ CO ] self._ccheck_rvs = [ SCO ] self._eval_rvs = { 'bqf_0_mean' : BQF, 'co_0_mean' : CO } # Add the sample sets and variables to the manager self._vm = rvs.VariableManager(self._preprocessor) self._vm.add_sample_set(R1, R_ref1) self._vm.add(ER1, ER_ref1, BQF, CO, SCO) return TutoringSystemFemale class TutoringSystemFemaleSRL(TutoringSystemFemaleRLMixin(mode='ttest', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, ref_return_T0, ref_return_T1, epsilon_f=0.0, epsilon_m=0.0, delta=0.05, model_type='softmax', minimum_return=1, female_iw_correction=1.0, male_iw_correction=1.0): iw_corrections = {0:male_iw_correction, 1:female_iw_correction} epsilons = np.array([ epsilon_f ]) deltas = np.array([ delta ]) self._min_return = min_return self._max_return = max_return super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return, iw_type_corrections=iw_corrections) def _get_return_ranges(self): return (self._min_return, self._max_return) class TutoringSystemFemaleBootstrapSRL(TutoringSystemFemaleRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, ref_return_T0, ref_return_T1, epsilon_f=0.0, epsilon_m=0.0, delta=0.05, model_type='softmax', minimum_return=1, female_iw_correction=1.0, male_iw_correction=1.0): iw_corrections = {0:male_iw_correction, 1:female_iw_correction} epsilons = np.array([ epsilon_f ]) deltas = np.array([ delta ]) self._min_return = min_return self._max_return = max_return super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return, iw_type_corrections=iw_corrections) def _get_return_ranges(self): return (self._min_return, self._max_return) ################################################################# # Tutoring System (Females only, Observed Reference Return) # ################################################################# def TutoringSystemFemaleEmpRLMixin(mode='ttest', scaling=2.0): class TutoringSystemFemaleEmp: def _get_return_ranges(self): raise NotImplementedError('TutoringSystemFemaleEmp._get_return_ranges() not defined') def _preprocessor(self, data): T = data['T'] R = data['R'] # Split R and R_ref into two sets based T R1 = R[np.where(T==1)[0]] / self._iw_type_corrections[1] # Undo any type-based importance weighting # Compute type-dependent indicators for positive predictions return { 'R1' : R1 } def _make_rvs(self): r_min, r_max = self._get_return_ranges() # Variables for expected return given T under the candidate policy R1 = rvs.BoundedRealSampleSet(name='R1', lower=r_min, upper=r_max) ER1 = R1.expected_value('E[R|T=1]', mode=mode) # Constants e = rvs.constant(self.epsilons[0], name='e') r_ref1 = rvs.constant(self._ref_return_T1, name='Avg[R_ref|T=1]') # BQF and Constraint Objectives # g1(theta) := (E[R_ref|T=1] - E[R|T=1]) - e BQF = rvs.sum( r_ref1, -ER1, name='BQF' ) CO = rvs.sum( BQF, -e, name='CO' ) SCO = rvs.sum( BQF, -e, name='SCO', scaling=scaling ) # Store the sample sets and variables self._scheck_rvs = [ CO ] self._ccheck_rvs = [ SCO ] self._eval_rvs = { 'bqf_0_mean' : BQF, 'co_0_mean' : CO } # Add the sample sets and variables to the manager self._vm = rvs.VariableManager(self._preprocessor) self._vm.add_sample_set(R1) self._vm.add(ER1, BQF, CO, SCO) return TutoringSystemFemaleEmp class TutoringSystemFemaleEmpSRL(TutoringSystemFemaleEmpRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, ref_return_T0, ref_return_T1, epsilon_f=0.0, epsilon_m=0.0, delta=0.05, model_type='softmax', minimum_return=1, female_iw_correction=1.0, male_iw_correction=1.0): iw_corrections = {0:male_iw_correction, 1:female_iw_correction} epsilons = np.array([ epsilon_f ]) deltas = np.array([ delta ]) # Same delta for each constraint self._min_return = min_return self._max_return = max_return self._ref_return_T0 = ref_return_T0 self._ref_return_T1 = ref_return_T1 super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return, iw_type_corrections=iw_corrections) def _get_return_ranges(self): return (self._min_return, self._max_return) class TutoringSystemFemaleBootstrapEmpSRL(TutoringSystemFemaleEmpRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): def __init__(self, min_return, max_return, ref_return_T0, ref_return_T1, epsilon_f=0.0, epsilon_m=0.0, delta=0.05, model_type='softmax', minimum_return=1, female_iw_correction=1.0, male_iw_correction=1.0): iw_corrections = {0:male_iw_correction, 1:female_iw_correction} epsilons = np.array([ epsilon_f ]) deltas = np.array([ delta ]) # Same delta for each constraint self._min_return = min_return self._max_return = max_return self._ref_return_T0 = ref_return_T0 self._ref_return_T1 = ref_return_T1 super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return, iw_type_corrections=iw_corrections) def _get_return_ranges(self): return (self._min_return, self._max_return) ################################################################################## # Credit Score (Combination of GroupFairness and Fairness through Awareness) # ################################################################################## # def CreditScoreRLMixin(mode='ttest', scaling=2.0): # class CreditScore: # def _is_positive(self): # raise NotImplementedError('GroupFairness._is_positive undefined.') # def _sample_distance(self, S, T): # raise NotImplementedError('CreditScore._sample_distance undefined.') # def _distribution_distance(self, P): # raise NotImplementedError('CreditScore._distribution_distance undefined.') # def _preprocessor(self, data): # P = data['P'][:,0,:] # A = np.argmax(P,1) # T = data['T'] # S = data['S'] # # Split Y and Yp into two sets based T # A0 = A[np.where(T==0)[0]].astype(int) # A1 = A[np.where(T==1)[0]].astype(int) # # Compute indicators for "positive" action predictions # Pos0 = np.array([ self._is_positive(a) for a in A0 ]).astype(np.float) # Pos1 = np.array([ self._is_positive(a) for a in A1 ]).astype(np.float) # # Compute indicators for distance violations for FTA # SampleDist = self._sample_distance(S, T) # DistrDist = self._distribution_distance(P) # Viols = np.array(DistrDist > SampleDist).astype(int) # # print(Viols) #'S', SampleDist, 'P', DistrDist) # return { 'fta_viols':Viols, 'Pos0':Pos0, 'Pos1':Pos1 } # def _make_rvs(self): # # Fairness through awareness # fta_viols = rvs.BoundedRealSampleSet(name='fta_viols', lower=0, upper=1) # e0 = rvs.constant(self.epsilons[0], name='e0') # BQF0 = fta_viols.expected_value(name='BQF0', mode=mode) # CO0 = rvs.sum( BQF0, -e0, name='CO0' ) # SCO0 = rvs.sum( BQF0, -e0, name='SCO0', scaling=scaling ) # # Group Fairness # Pos0 = rvs.BoundedRealSampleSet('Pos0', lower=0, upper=1) # Pos1 = rvs.BoundedRealSampleSet('Pos1', lower=0, upper=1) # PrPos0 = Pos0.expected_value('Pr(Pos|T=0)', mode=mode) # PrPos1 = Pos1.expected_value('Pr(Pos|T=1)', mode=mode) # e1 = rvs.constant(self.epsilons[1], name='e1') # BQF1 = rvs.abs( PrPos0-PrPos1, name='BQF1' ) # CO1 = rvs.sum( BQF1, -e1, name='CO1' ) # SCO1 = rvs.sum( BQF1, -e1, name='SCO1', scaling=scaling ) # # Store the sample sets and variables # self._scheck_rvs = [ CO0 , CO1 ] # self._ccheck_rvs = [ SCO0, SCO1 ] # self._eval_rvs = { 'bqf_0_mean' : BQF0, 'co_0_mean' : CO0, 'bqf_1_mean' : BQF1, 'co_1_mean' : CO1 } # # Add the sample sets and variables to the manager # self._vm = rvs.VariableManager(self._preprocessor) # self._vm.add_sample_set(fta_viols, Pos0, Pos1) # self._vm.add(BQF0, CO0, SCO0, BQF1, CO1, SCO1) # return CreditScore # class CreditScoreSRL(CreditScoreRLMixin(mode='ttest', scaling=2.0), SeldonianRLBase): # def __init__(self, is_positivef, sample_distf, prob_distf, epsilon_fta=0.05, epsilon_gf=0.05, delta_fta=0.05, delta_gf=0.05, model_type='softmax', minimum_return=1): # epsilons = np.array([ epsilon_fta, epsilon_gf ]) # deltas = np.array([ delta_fta, delta_gf ]) # self._sample_distf = sample_distf # self._prob_distf = prob_distf # super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) # self._is_positive = is_positivef # def _sample_distance(self, S, T): # return self._sample_distf(S,T) # def _distribution_distance(self, P): # return self._prob_distf(P) # class CreditScoreBootstrapSRL(CreditScoreRLMixin(mode='bootstrap', scaling=2.0), SeldonianRLBase): # def __init__(self, is_positivef, sample_distf, prob_distf, epsilon_fta=0.05, epsilon_gf=0.05, delta_fta=0.05, delta_gf=0.05, model_type='softmax', minimum_return=1): # epsilons = np.array([ epsilon_fta, epsilon_gf ]) # deltas = np.array([ delta_fta, delta_gf ]) # self._sample_distf = sample_distf # self._prob_distf = prob_distf # super().__init__(epsilons, deltas, model_type=model_type, minimum_return=minimum_return) # self._is_positive = is_positivef # def _sample_distance(self, S, T): # return self._sample_distf(S,T) # def _distribution_distance(self, P): # return self._prob_distf(P)
48.373333
206
0.695218
4,211
29,024
4.523391
0.054381
0.02457
0.02457
0.02016
0.880565
0.866705
0.814889
0.798824
0.785542
0.784597
0
0.026947
0.148463
29,024
599
207
48.45409
0.743759
0.257924
0
0.752632
0
0
0.060767
0.013698
0
0
0
0
0
1
0.155263
false
0
0.007895
0.031579
0.297368
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
584eec996919e801a49905d64bfa68ad64ce2fc3
8,598
py
Python
sdfrenderer/renderer/projection.py
TRI-ML/sdflabel
416c27dbcc6a341c3038783beb46d3f8eccb8177
[ "MIT" ]
105
2020-06-18T22:27:18.000Z
2022-03-31T13:58:38.000Z
sdfrenderer/renderer/projection.py
TRI-ML/sdflabel
416c27dbcc6a341c3038783beb46d3f8eccb8177
[ "MIT" ]
9
2020-07-25T00:08:18.000Z
2022-03-29T05:57:52.000Z
sdfrenderer/renderer/projection.py
TRI-ML/sdflabel
416c27dbcc6a341c3038783beb46d3f8eccb8177
[ "MIT" ]
15
2020-09-02T06:59:32.000Z
2022-03-28T10:11:00.000Z
import math import torch import numpy as np from renderer.utils_rasterer import convexHull, sphericalFlip, qrot def project_in_2D( K, camera_pose, points, normals, colors, resolution_px, filter_normals=True, filter_hpr=False, output_nocs=True ): """ Project all 3D points onto the 2D image of given resolution using DCM rotation matrix Args: K (torch.Tensor): Intrinsic camera parameters (3,3) camera_pose (torch.Tensor): Camera pose as DCM (4,4) points (torch.Tensor): Object points to project (N,3) normals (torch.Tensor): Normals per point (N,3) colors (torch.Tensor): Point colors (N,3) resolution_px (tuple): Screen resolution filter_normals (bool): Filter points based on the normals filter_hpr (bool): Filter points based on the hpr filter output_nocs (bool): Output NOCS """ resolution_x_px, resolution_y_px = resolution_px # image resolution in pixels # Define precision and device eps = torch.finfo(K.dtype).eps device = K.device dtype = K.dtype # Ouput dict output = {} RT = (camera_pose[:-1, :]).to(device, dtype) # remove homogeneous row # Correct reference system of extrinsics matrix # y is down: (to align to the actual pixel coordinates used in digital images) # right-handed: positive z look-at direction correction_factor = torch.from_numpy(np.asarray([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]], dtype=np.float32)).to(device, dtype) RT = correction_factor @ RT # Create constant tensor to store 3D model coordinates ones = torch.ones(points[:, :1].shape).to(device, dtype) coords_3d_h = torch.cat([points, ones], dim=-1) # n_vertices, 4 coords_3d_h = coords_3d_h.t() # 4, n_vertices # Project normals normals_projected = (RT[:, :3] @ normals.t()).t() # Fake colors: coordinates # colors = (RT[:, :3] @ mesh.t()).t() if output_nocs: colors = points.clone() colors[:, 0] *= -1 # Project points and filter where normals point away from the camera coords_projected_3d = (RT @ coords_3d_h).t() # Filter invisible points if filter_normals: dot_prod = torch.bmm(normals_projected.unsqueeze((-2)), coords_projected_3d.unsqueeze(-1)).squeeze(-1) # Filter where normals point away from the camera coords_projected_3d_filt = coords_projected_3d.masked_select(dot_prod < 0).view(-1, 3) colors_filt = colors.masked_select(dot_prod < 0).view(-1, 3) normals_projected_filt = normals_projected.masked_select(dot_prod < 0).view(-1, 3) output['points_3d_filt'] = coords_projected_3d_filt output['normals_3d_filt'] = normals_projected_filt output['colors_3d_filt'] = colors_filt if filter_hpr: # Filter based on HPR operator C = np.array([[0, 0, 0]]) # center point coords_projected_3d_numpy = coords_projected_3d.detach().cpu().numpy() coords_projected_3d_numpy /= coords_projected_3d_numpy.max() flippedPoints = sphericalFlip(coords_projected_3d_numpy, C, math.pi) mask_ids = convexHull(flippedPoints).vertices[:-1] mask = np.zeros_like(coords_projected_3d_numpy[:, 2:]) mask[mask_ids] = 1 mask = torch.BoolTensor(mask).to(device) coords_projected_3d = coords_projected_3d.masked_select(mask).view(-1, 3) colors = colors.masked_select(mask).view(-1, 3) normals_projected = normals_projected.masked_select(mask).view(-1, 3) # Project 3D vertices into 2D coords_projected_2d_h = (K @ coords_projected_3d.t()).t() coords_projected_2d = coords_projected_2d_h[:, :2] / (coords_projected_2d_h[:, 2:] + eps) # Clip indexes in image range (off by 1 pixel each side to avoid edge issues) coords_projected_2d_x_clip = torch.clamp(coords_projected_2d[:, 0:1], -1, resolution_x_px) coords_projected_2d_y_clip = torch.clamp(coords_projected_2d[:, 1:2], -1, resolution_y_px) # Fill a dictionary output['points_3d'] = coords_projected_3d output['normals_3d'] = normals_projected output['colors_3d'] = colors output['points_2d'] = torch.cat([coords_projected_2d_x_clip, coords_projected_2d_y_clip], dim=-1) return output def project_in_2D_quat( K, camera_pose, points, normals, colors, resolution_px, filter_normals=False, filter_hpr=False, output_nocs=True ): """ Project all 3D points onto the 2D image of given resolution using quaternions Args: K (torch.Tensor): Intrinsic camera parameters (3,3) camera_pose (torch.Tensor): Camera pose as quaternion [:4] and translation vector [4:] points (torch.Tensor): Object points to project (N,3) normals (torch.Tensor): Normals per point (N,3) colors (torch.Tensor): Point colors (N,3) resolution_px (tuple): Screen resolution filter_normals (bool): Filter points based on the normals filter_hpr (bool): Filter points based on the hpr filter output_nocs (bool): Output NOCS """ resolution_x_px, resolution_y_px = resolution_px # image resolution in pixels # Define precision and device eps = torch.finfo(K.dtype).eps device = K.device dtype = K.dtype # Ouput dict output = {} q = camera_pose[:4] t = camera_pose[4:] # Correct reference system of extrinsics matrix # y is down: (to align to the actual pixel coordinates used in digital images) # right-handed: positive z look-at direction correction_factor = torch.from_numpy(np.asarray([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]], dtype=np.float32)).to(device, dtype) correction_factor.requires_grad = True # Project normals normals_projected = qrot(q.unsqueeze(0).expand([normals.size(0), 4]), normals) normals_projected = (correction_factor @ normals_projected.t()).t() # Fake colors: coordinates # colors = qrot(q.unsqueeze(0).expand([coords.size(0), 4]), coords) if output_nocs: colors = points.clone() # colors[:, 0] *= -1 # Project points coords_rotated_3d_quat = qrot(q.unsqueeze(0).expand([points.size(0), 4]), points) corrT = correction_factor @ torch.cat([torch.eye(3).to(device, dtype), t.unsqueeze(-1)], dim=-1) coords_projected_3d = ( corrT @ torch.cat([coords_rotated_3d_quat, torch.ones(points[:, :1].shape).to(device, dtype)], dim=-1).t() ).t() # Filter invisible points if filter_normals: dot_prod = torch.bmm(normals_projected.unsqueeze((-2)), coords_projected_3d.unsqueeze(-1)).squeeze(-1) # Filter where normals point away from the camera coords_projected_3d_filt = coords_projected_3d.masked_select(dot_prod < 0).view(-1, 3) colors_filt = colors.masked_select(dot_prod < 0).view(-1, 3) normals_projected_filt = normals_projected.masked_select(dot_prod < 0).view(-1, 3) output['points_3d_filt'] = coords_projected_3d_filt output['normals_3d_filt'] = normals_projected_filt output['colors_3d_filt'] = colors_filt elif filter_hpr: # Filter based on HPR operator C = np.array([[0, 0, 0]]) # center point coords_projected_3d_numpy = coords_projected_3d.detach().cpu().numpy() flippedPoints = sphericalFlip(coords_projected_3d_numpy, C, math.pi) mask_ids = convexHull(flippedPoints).vertices[:-1] mask = np.zeros_like(coords_projected_3d_numpy[:, 2:]) mask[mask_ids] = 1 mask = torch.BoolTensor(mask).to(device) coords_projected_3d = coords_projected_3d.masked_select(mask).view(-1, 3) colors = colors.masked_select(mask).view(-1, 3) normals_projected = normals_projected.masked_select(mask).view(-1, 3) # Project 3D vertices into 2D coords_projected_2d_h = (K @ coords_projected_3d.t()).t() coords_projected_2d = coords_projected_2d_h[:, :2] / (coords_projected_2d_h[:, 2:] + eps) # Clip indexes in image range (off by 1 pixel each side to avoid edge issues) coords_projected_2d_x_clip = torch.clamp(coords_projected_2d[:, 0:1], -1, resolution_x_px) coords_projected_2d_y_clip = torch.clamp(coords_projected_2d[:, 1:2], -1, resolution_y_px) # Fill a dictionary output['points_3d'] = coords_projected_3d output['normals_3d'] = normals_projected output['colors_3d'] = colors output['points_2d'] = torch.cat([coords_projected_2d_x_clip, coords_projected_2d_y_clip], dim=-1) return output
42.99
116
0.672249
1,198
8,598
4.590985
0.145242
0.130909
0.086545
0.032
0.857455
0.845091
0.834545
0.827455
0.815091
0.815091
0
0.031028
0.21284
8,598
199
117
43.20603
0.781619
0.289719
0
0.711538
0
0
0.026855
0
0
0
0
0
0
1
0.019231
false
0
0.038462
0
0.076923
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
587b250e57acbae198b2b012518b92ffa231c1da
6,625
py
Python
genQues/views.py
aotella/calcoff_backend
7f25ff494ea2e1e4119fe7450d805c986fa77f0c
[ "Apache-2.0", "MIT" ]
null
null
null
genQues/views.py
aotella/calcoff_backend
7f25ff494ea2e1e4119fe7450d805c986fa77f0c
[ "Apache-2.0", "MIT" ]
null
null
null
genQues/views.py
aotella/calcoff_backend
7f25ff494ea2e1e4119fe7450d805c986fa77f0c
[ "Apache-2.0", "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status import requests import responses import json import datetime from APIv1 import genQuestion, getQuestion, getRanking, submitRanking, apiPassword, deleteRanking, topRanking, leaderboard, testingAPI # Create your views here. class getRankApi(APIView): def post(self,request,format=None): returnData = getRanking.rankingFunction(request.data) if returnData != '400': return Response(returnData, status=status.HTTP_202_ACCEPTED) else : return Response(returnData, status = status.HTTP_400_BAD_REQUEST) class submitRankApi(APIView): def post(self, request, format=None): returnData = submitRanking.submitRank(request.data) return Response(returnData, status=status.HTTP_202_ACCEPTED) class genQuesAPIForTomorrow(APIView): def post(self, request, format=None): returnData = genQuestion.quesSetForTomorrow(request.data) if returnData == '404-1': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '202-1': return Response(returnData, status=status.HTTP_202_ACCEPTED) elif returnData == '202-2': return Response(returnData, status=status.HTTP_202_ACCEPTED) elif returnData == '400': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '409-1': return Response(returnData, status=status.HTTP_409_CONFLICT) class genQuesAPIForToday(APIView): def post(self, request, format=None): returnData = genQuestion.quesSetForToday(request.data) if returnData == '404-1': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '202-1': return Response(returnData, status=status.HTTP_202_ACCEPTED) elif returnData == '202-2': return Response(returnData, status=status.HTTP_202_ACCEPTED) elif returnData == '400': return Response(returnData, status=status.HTTP_400_BAD_REQUEST) elif returnData == '409-1': return Response(returnData, status=status.HTTP_409_CONFLICT) class getQuesApi2(APIView): def post(self, request, format=None): returnData = getQuestion.getQuestionSetv2(request.data) if returnData == '404-1': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '400-1': return Response(returnData, status=status.HTTP_400_BAD_REQUEST) elif returnData == '409-1': return Response(returnData, status=status.HTTP_409_CONFLICT) else: return Response(returnData, status=status.HTTP_202_ACCEPTED) class DeleteQues(APIView): def post(self, request, format=None): returnData = genQuestion.deleteQuestion(request.data) if returnData == '404-1': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '404-2': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '409-1': return Response(returnData, status=status.HTTP_409_CONFLICT) else: return Response(returnData, status=status.HTTP_202_ACCEPTED) class FetchServerTime(APIView): def post(self, request, format=None): returnData = (int(datetime.datetime.today().strftime('%s'))) return Response(returnData, status=status.HTTP_202_ACCEPTED) class SetApiPassword(APIView): def post(self, request, format=None): returnData = apiPassword.setPassword(request.data) if returnData == '400': return Response(returnData, status=status.HTTP_400_BAD_REQUEST) elif returnData == '409-1': return Response(returnData, status=status.HTTP_409_CONFLICT) else: return Response(returnData, status=status.HTTP_202_ACCEPTED) class ModifyApiPassword(APIView): def post(self, request, format=None): returnData = apiPassword.modifyPassword(request.data) if returnData == '404-2': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '409-1': return Response(returnData, status=status.HTTP_409_CONFLICT) else: return Response(returnData, status=status.HTTP_202_ACCEPTED) class DeleteRankingAPI(APIView): def post(self, request, format=None): returnData = deleteRanking.deletePreviousRank(request.data) if returnData == '404-1': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '404-2': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '409-1': return Response(returnData, status=status.HTTP_409_CONFLICT) else: return Response(returnData, status=status.HTTP_202_ACCEPTED) class Top10RankingAPI(APIView): def post(self, request, format=None): returnData = topRanking.topTenRanking(request.data) if returnData == '404-1': return Response(returnData, status=status.HTTP_404_NOT_FOUND) elif returnData == '400-1': return Response(returnData, status=status.HTTP_400_BAD_REQUEST) elif returnData == '202-1': return Response(returnData, status=status.HTTP_202_ACCEPTED) else: return Response(returnData, status=status.HTTP_202_ACCEPTED) class LeaderBoardAPI(APIView): def post(self,request, format = None): returnData = leaderboard.getLeaderboard() if returnData != '400': return Response(returnData, status=status.HTTP_202_ACCEPTED) else: return Response(returnData, status=status.HTTP_400_BAD_REQUEST) class GetRankingV1(APIView): def post(self,request, format = None): returnData = getRanking.rankingFunctionv_1(request.data) if returnData != '400': return Response(returnData, status=status.HTTP_202_ACCEPTED) else: return Response(returnData, status=status.HTTP_400_BAD_REQUEST) class TestSubmiScoreAPI(APIView): def post(self,request, format = None): returnData = testingAPI.testSubmitScore(request.data) if returnData != '400': return Response(returnData, status=status.HTTP_202_ACCEPTED) else: return Response(returnData, status=status.HTTP_400_BAD_REQUEST)
33.80102
134
0.684528
720
6,625
6.151389
0.116667
0.132761
0.227591
0.284489
0.812373
0.809438
0.809438
0.809438
0.738316
0.624972
0
0.047804
0.223245
6,625
195
135
33.974359
0.812864
0.003472
0
0.706767
0
0
0.020912
0
0
0
0
0
0
1
0.105263
false
0.037594
0.067669
0
0.593985
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
10
5457723508a9ce3f330af767ebaf9eda9b6c8e85
2,516
py
Python
tests/test_dempster_shafer.py
brandongk-ubco/ensembler
9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d
[ "MIT" ]
null
null
null
tests/test_dempster_shafer.py
brandongk-ubco/ensembler
9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d
[ "MIT" ]
null
null
null
tests/test_dempster_shafer.py
brandongk-ubco/ensembler
9d4ab1a07f686eee8b5a4e721a6acc44da3ef94d
[ "MIT" ]
null
null
null
from ensembler.aggregators.DempsterSafer import ds_combination import torch class TestDempsterShafer: def test_ds_combination_all_agree(self): a = torch.FloatTensor([0, 1, 0]) b = torch.FloatTensor([0, 1, 0]) result = ds_combination(a, b) expected = torch.FloatTensor([0, 1, 0]) eps = 1e-4 diff = torch.abs(result - expected) assert torch.max(diff) <= eps def test_ds_combination_all_disagree(self): a = torch.FloatTensor([0, 1, 0]) b = torch.FloatTensor([1, 0, 0]) result = ds_combination(a, b) expected = torch.FloatTensor([0, 0, 0]) eps = 1e-4 diff = torch.abs(result - expected) assert torch.max(diff) <= eps def test_ds_combination_uncertainty_in_two(self): a = torch.FloatTensor([0.5, 0.5, 0]) b = torch.FloatTensor([0.5, 0.5, 0]) result = ds_combination(a, b) expected = torch.FloatTensor([0.5, 0.5, 0]) eps = 1e-4 diff = torch.abs(result - expected) assert torch.max(diff) <= eps def test_ds_combination_all_different_uncertainty_in_two(self): a = torch.FloatTensor([0.3, 0.7, 0]) b = torch.FloatTensor([0.7, 0.3, 0]) result = ds_combination(a, b) expected = torch.FloatTensor([0.5, 0.5, 0]) eps = 1e-4 diff = torch.abs(result - expected) assert torch.max(diff) <= eps def test_ds_combination_all_different_uncertainty_in_two_1(self): a = torch.FloatTensor([0.3, 0.7, 0]) b = torch.FloatTensor([0, 0.7, 0.3]) result = ds_combination(a, b) expected = torch.FloatTensor([0, 1, 0]) eps = 1e-4 diff = torch.abs(result - expected) assert torch.max(diff) <= eps def test_ds_combination_all_different_uncertainty_in_two_2(self): a = torch.FloatTensor([0.3, 0.6, 0.1]) b = torch.FloatTensor([0.1, 0.6, 0.3]) result = ds_combination(a, b) expected = torch.FloatTensor([0.0714, 0.8571, 0.0714]) eps = 1e-4 diff = torch.abs(result - expected) assert torch.max(diff) <= eps def test_ds_combination_example_from_slide(self): a = torch.FloatTensor([0.35, 0.06, 0.35, 0.24]) b = torch.FloatTensor([0.10, 0.44, 0.40, 0.06]) result = ds_combination(a, b) expected = torch.FloatTensor([0.1622, 0.1223, 0.6487, 0.0667]) eps = 1e-4 diff = torch.abs(result - expected) assert torch.max(diff) <= eps
35.942857
70
0.596184
365
2,516
3.975342
0.145205
0.231564
0.234321
0.096485
0.858029
0.826327
0.811165
0.778084
0.751895
0.720193
0
0.08026
0.267091
2,516
69
71
36.463768
0.706616
0
0
0.610169
0
0
0
0
0
0
0
0
0.118644
1
0.118644
false
0
0.033898
0
0.169492
0
0
0
0
null
1
1
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
546cc5296dca4ec6e839de58e49e8b0c0ad39a6b
1,991
py
Python
Server/utils/extension_meta.py
DSM-DMS/DMS-Backend-API-v2
dfb49879ce81d7a3c1c4cda47b1de150f245cd86
[ "MIT" ]
null
null
null
Server/utils/extension_meta.py
DSM-DMS/DMS-Backend-API-v2
dfb49879ce81d7a3c1c4cda47b1de150f245cd86
[ "MIT" ]
1
2018-02-22T01:18:55.000Z
2018-02-22T01:18:55.000Z
Server/utils/extension_meta.py
DSM-DMS/DMS-Backend-API-v2
dfb49879ce81d7a3c1c4cda47b1de150f245cd86
[ "MIT" ]
null
null
null
from datetime import time APPLY_START = time(17, 30) APPLY_END_11 = time(20, 30) APPLY_END_12 = time(22, 0) MAPS = { 1: [ [1, 1, 0, 1, 1], [1, 1, 0, 1, 1], [1, 1, 0, 1, 1], [1, 1, 0, 1, 1], [1, 1, 0, 1, 1] ], 2: [ [1, 0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0, 1], [1, 0, 0, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [0, 0, 1, 1, 1, 0, 0] ], 3: [ [1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], ], 4: [ [1, 1, 0, 0, 1, 1], [1, 1, 0, 0, 1, 1], [0, 0, 1, 1, 0, 0], [0, 0, 1, 1, 0, 0], [1, 1, 0, 0, 1, 1], [1, 1, 0, 0, 1, 1] ], 5: [ [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0] ], 6: [ [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0], [1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0] ], 7: [ [1, 1, 1, 0, 1, 1, 0, 1, 1, 1], [1, 1, 1, 0, 1, 1, 0, 1, 1, 1], [0, 0, 0, 0, 1, 1, 0, 0, 0, 0], [1, 1, 1, 0, 1, 1, 0, 1, 1, 1], [1, 1, 1, 0, 1, 1, 0, 1, 1, 1], [0, 0, 0, 0, 1, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0] ] }
27.652778
45
0.259166
454
1,991
1.125551
0.048458
0.516634
0.493151
0.516634
0.833659
0.833659
0.833659
0.816047
0.81409
0.796478
0
0.415814
0.46007
1,991
71
46
28.042254
0.059535
0
0
0.681159
0
0
0
0
0
0
0
0
0
1
0
false
0
0.014493
0
0.014493
0
0
0
1
null
1
1
1
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
12
54873a60003e82a74f2f503482cde88c245525c2
41
py
Python
application/services/fake_service.py
raphaelbh/python-web-template
b977a5b78b5546fa0013fe144d71497ff5f5c551
[ "MIT" ]
1
2022-02-14T19:52:41.000Z
2022-02-14T19:52:41.000Z
application/services/fake_service.py
raphaelbh/python-web-template
b977a5b78b5546fa0013fe144d71497ff5f5c551
[ "MIT" ]
null
null
null
application/services/fake_service.py
raphaelbh/python-web-template
b977a5b78b5546fa0013fe144d71497ff5f5c551
[ "MIT" ]
null
null
null
def execute(): return "fake content"
20.5
25
0.658537
5
41
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.219512
41
2
25
20.5
0.84375
0
0
0
0
0
0.285714
0
0
0
0
0
0
1
0.5
true
0
0
0.5
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
7
b716a34e98645a22e8d750a6c3e8ec16fa3bc183
158,727
py
Python
sdk/purview/azure-purview-scanning/azure/purview/scanning/aio/operations/_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/purview/azure-purview-scanning/azure/purview/scanning/aio/operations/_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/purview/azure-purview-scanning/azure/purview/scanning/aio/operations/_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools from json import loads as _loads from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async from ..._vendor import _convert_request from ...operations._operations import build_classification_rules_create_or_update_request, build_classification_rules_delete_request, build_classification_rules_get_request, build_classification_rules_list_all_request, build_classification_rules_list_versions_by_classification_rule_name_request, build_classification_rules_tag_classification_version_request, build_data_sources_create_or_update_request, build_data_sources_delete_request, build_data_sources_get_request, build_data_sources_list_all_request, build_filters_create_or_update_request, build_filters_get_request, build_key_vault_connections_create_request, build_key_vault_connections_delete_request, build_key_vault_connections_get_request, build_key_vault_connections_list_all_request, build_scan_result_cancel_scan_request, build_scan_result_list_scan_history_request, build_scan_result_run_scan_request, build_scan_rulesets_create_or_update_request, build_scan_rulesets_delete_request, build_scan_rulesets_get_request, build_scan_rulesets_list_all_request, build_scans_create_or_update_request, build_scans_delete_request, build_scans_get_request, build_scans_list_by_data_source_request, build_system_scan_rulesets_get_by_version_request, build_system_scan_rulesets_get_latest_request, build_system_scan_rulesets_get_request, build_system_scan_rulesets_list_all_request, build_system_scan_rulesets_list_versions_by_data_source_request, build_triggers_create_trigger_request, build_triggers_delete_trigger_request, build_triggers_get_trigger_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class KeyVaultConnectionsOperations: """KeyVaultConnectionsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace_async async def get( self, key_vault_name: str, **kwargs: Any ) -> Any: """Gets key vault information. :param key_vault_name: :type key_vault_name: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "properties": { "baseUrl": "str", # Optional. "description": "str" # Optional. } } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_key_vault_connections_get_request( key_vault_name=key_vault_name, template_url=self.get.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/azureKeyVaults/{keyVaultName}'} # type: ignore @distributed_trace_async async def create( self, key_vault_name: str, body: Any, **kwargs: Any ) -> Any: """Creates an instance of a key vault connection. :param key_vault_name: :type key_vault_name: str :param body: :type body: Any :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # JSON input template you can fill out and use as your body input. body = { "id": "str", # Optional. "name": "str", # Optional. "properties": { "baseUrl": "str", # Optional. "description": "str" # Optional. } } # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "properties": { "baseUrl": "str", # Optional. "description": "str" # Optional. } } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] json = body request = build_key_vault_connections_create_request( key_vault_name=key_vault_name, content_type=content_type, json=json, template_url=self.create.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized create.metadata = {'url': '/azureKeyVaults/{keyVaultName}'} # type: ignore @distributed_trace_async async def delete( self, key_vault_name: str, **kwargs: Any ) -> Optional[Any]: """Deletes the key vault connection associated with the account. :param key_vault_name: :type key_vault_name: str :return: JSON object :rtype: Any or None :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "properties": { "baseUrl": "str", # Optional. "description": "str" # Optional. } } """ cls = kwargs.pop('cls', None) # type: ClsType[Optional[Any]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_key_vault_connections_delete_request( key_vault_name=key_vault_name, template_url=self.delete.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) deserialized = None if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized delete.metadata = {'url': '/azureKeyVaults/{keyVaultName}'} # type: ignore @distributed_trace def list_all( self, **kwargs: Any ) -> AsyncIterable[Any]: """List key vault connections in account. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "id": "str", # Optional. "name": "str", # Optional. "properties": { "baseUrl": "str", # Optional. "description": "str" # Optional. } } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_key_vault_connections_list_all_request( template_url=self.list_all.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_key_vault_connections_list_all_request( template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_all.metadata = {'url': '/azureKeyVaults'} # type: ignore class ClassificationRulesOperations: """ClassificationRulesOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace_async async def get( self, classification_rule_name: str, **kwargs: Any ) -> Any: """Get a classification rule. :param classification_rule_name: :type classification_rule_name: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. kind: ClassificationRule } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_classification_rules_get_request( classification_rule_name=classification_rule_name, template_url=self.get.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/classificationrules/{classificationRuleName}'} # type: ignore @distributed_trace_async async def create_or_update( self, classification_rule_name: str, body: Any = None, **kwargs: Any ) -> Any: """Creates or Updates a classification rule. :param classification_rule_name: :type classification_rule_name: str :param body: :type body: Any :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python kind = 'CustomClassificationRule' or 'SystemClassificationRule' # JSON input template you can fill out and use as your body input. body = { "id": "str", # Optional. "name": "str", # Optional. kind: ClassificationRule } # response body for status code(s): 200, 201 response.json() == { "id": "str", # Optional. "name": "str", # Optional. kind: ClassificationRule } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: json = body else: json = None request = build_classification_rules_create_or_update_request( classification_rule_name=classification_rule_name, content_type=content_type, json=json, template_url=self.create_or_update.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if response.status_code == 201: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/classificationrules/{classificationRuleName}'} # type: ignore @distributed_trace_async async def delete( self, classification_rule_name: str, **kwargs: Any ) -> Optional[Any]: """Deletes a classification rule. :param classification_rule_name: :type classification_rule_name: str :return: JSON object :rtype: Any or None :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. kind: ClassificationRule } """ cls = kwargs.pop('cls', None) # type: ClsType[Optional[Any]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_classification_rules_delete_request( classification_rule_name=classification_rule_name, template_url=self.delete.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) deserialized = None if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized delete.metadata = {'url': '/classificationrules/{classificationRuleName}'} # type: ignore @distributed_trace def list_all( self, **kwargs: Any ) -> AsyncIterable[Any]: """List classification rules in Account. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "id": "str", # Optional. "name": "str", # Optional. kind: ClassificationRule } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_classification_rules_list_all_request( template_url=self.list_all.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_classification_rules_list_all_request( template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_all.metadata = {'url': '/classificationrules'} # type: ignore @distributed_trace def list_versions_by_classification_rule_name( self, classification_rule_name: str, **kwargs: Any ) -> AsyncIterable[Any]: """Lists the rule versions of a classification rule. :param classification_rule_name: :type classification_rule_name: str :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "id": "str", # Optional. "name": "str", # Optional. kind: ClassificationRule } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_classification_rules_list_versions_by_classification_rule_name_request( classification_rule_name=classification_rule_name, template_url=self.list_versions_by_classification_rule_name.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_classification_rules_list_versions_by_classification_rule_name_request( classification_rule_name=classification_rule_name, template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_versions_by_classification_rule_name.metadata = {'url': '/classificationrules/{classificationRuleName}/versions'} # type: ignore @distributed_trace_async async def tag_classification_version( self, classification_rule_name: str, classification_rule_version: int, *, action: str, **kwargs: Any ) -> Any: """Sets Classification Action on a specific classification rule version. :param classification_rule_name: :type classification_rule_name: str :param classification_rule_version: :type classification_rule_version: int :keyword action: Possible values are: "Keep" or "Delete". :paramtype action: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 202 response.json() == { "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "scanResultId": str, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. Possible values include: "Accepted", "InProgress", "TransientFailure", "Succeeded", "Failed", "Canceled". } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_classification_rules_tag_classification_version_request( classification_rule_name=classification_rule_name, classification_rule_version=classification_rule_version, action=action, template_url=self.tag_classification_version.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized tag_classification_version.metadata = {'url': '/classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag'} # type: ignore class DataSourcesOperations: """DataSourcesOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace_async async def create_or_update( self, data_source_name: str, body: Any = None, **kwargs: Any ) -> Any: """Creates or Updates a data source. :param data_source_name: :type data_source_name: str :param body: :type body: Any :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python kind = 'AdlsGen1DataSource' or 'AdlsGen2DataSource' or 'AmazonAccountDataSource' or 'AmazonPostgreSqlDataSource' or 'AmazonS3DataSource' or 'AmazonSqlDataSource' or 'AzureCosmosDbDataSource' or 'AzureDataExplorerDataSource' or 'AzureFileServiceDataSource' or 'AzureMySqlDataSource' or 'AzurePostgreSqlDataSource' or 'AzureResourceGroupDataSource' or 'AzureSqlDataWarehouseDataSource' or 'AzureSqlDatabaseDataSource' or 'AzureSqlDatabaseManagedInstanceDataSource' or 'AzureStorageDataSource' or 'AzureSubscriptionDataSource' or 'AzureSynapseDataSource' or 'AzureSynapseWorkspaceDataSource' or 'OracleDataSource' or 'PowerBIDataSource' or 'SapEccDataSource' or 'SapS4HanaDataSource' or 'SqlServerDatabaseDataSource' or 'TeradataDataSource' # JSON input template you can fill out and use as your body input. body = { "id": "str", # Optional. "name": "str", # Optional. "scans": [ { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } ], kind: DataSource } # response body for status code(s): 200, 201 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scans": [ { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } ], kind: DataSource } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: json = body else: json = None request = build_data_sources_create_or_update_request( data_source_name=data_source_name, content_type=content_type, json=json, template_url=self.create_or_update.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if response.status_code == 201: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/datasources/{dataSourceName}'} # type: ignore @distributed_trace_async async def get( self, data_source_name: str, **kwargs: Any ) -> Any: """Get a data source. :param data_source_name: :type data_source_name: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scans": [ { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } ], kind: DataSource } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_data_sources_get_request( data_source_name=data_source_name, template_url=self.get.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/datasources/{dataSourceName}'} # type: ignore @distributed_trace_async async def delete( self, data_source_name: str, **kwargs: Any ) -> Optional[Any]: """Deletes a data source. :param data_source_name: :type data_source_name: str :return: JSON object :rtype: Any or None :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scans": [ { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } ], kind: DataSource } """ cls = kwargs.pop('cls', None) # type: ClsType[Optional[Any]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_data_sources_delete_request( data_source_name=data_source_name, template_url=self.delete.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) deserialized = None if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized delete.metadata = {'url': '/datasources/{dataSourceName}'} # type: ignore @distributed_trace def list_all( self, **kwargs: Any ) -> AsyncIterable[Any]: """List data sources in Data catalog. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "id": "str", # Optional. "name": "str", # Optional. "scans": [ { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } ], kind: DataSource } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_data_sources_list_all_request( template_url=self.list_all.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_data_sources_list_all_request( template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_all.metadata = {'url': '/datasources'} # type: ignore class FiltersOperations: """FiltersOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace_async async def get( self, data_source_name: str, scan_name: str, **kwargs: Any ) -> Any: """Get a filter. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "properties": { "excludeUriPrefixes": [ "str" # Optional. ], "includeUriPrefixes": [ "str" # Optional. ] } } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_filters_get_request( data_source_name=data_source_name, scan_name=scan_name, template_url=self.get.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}/filters/custom'} # type: ignore @distributed_trace_async async def create_or_update( self, data_source_name: str, scan_name: str, body: Any = None, **kwargs: Any ) -> Any: """Creates or updates a filter. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :param body: :type body: Any :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # JSON input template you can fill out and use as your body input. body = { "id": "str", # Optional. "name": "str", # Optional. "properties": { "excludeUriPrefixes": [ "str" # Optional. ], "includeUriPrefixes": [ "str" # Optional. ] } } # response body for status code(s): 200, 201 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "properties": { "excludeUriPrefixes": [ "str" # Optional. ], "includeUriPrefixes": [ "str" # Optional. ] } } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: json = body else: json = None request = build_filters_create_or_update_request( data_source_name=data_source_name, scan_name=scan_name, content_type=content_type, json=json, template_url=self.create_or_update.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if response.status_code == 201: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}/filters/custom'} # type: ignore class ScansOperations: """ScansOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace_async async def create_or_update( self, data_source_name: str, scan_name: str, body: Any, **kwargs: Any ) -> Any: """Creates an instance of a scan. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :param body: :type body: Any :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python kind = 'AdlsGen1CredentialScan' or 'AdlsGen1MsiScan' or 'AdlsGen2CredentialScan' or 'AdlsGen2MsiScan' or 'AmazonAccountCredentialScan' or 'AmazonPostgreSqlCredentialScan' or 'AmazonS3CredentialScan' or 'AmazonS3RoleARNScan' or 'AmazonSqlCredentialScan' or 'AzureCosmosDbCredentialScan' or 'AzureDataExplorerCredentialScan' or 'AzureDataExplorerMsiScan' or 'AzureFileServiceCredentialScan' or 'AzureMySqlCredentialScan' or 'AzurePostgreSqlCredentialScan' or 'AzureResourceGroupCredentialScan' or 'AzureResourceGroupMsiScan' or 'AzureSqlDataWarehouseCredentialScan' or 'AzureSqlDataWarehouseMsiScan' or 'AzureSqlDatabaseCredentialScan' or 'AzureSqlDatabaseManagedInstanceCredentialScan' or 'AzureSqlDatabaseManagedInstanceMsiScan' or 'AzureSqlDatabaseMsiScan' or 'AzureStorageCredentialScan' or 'AzureStorageMsiScan' or 'AzureSubscriptionCredentialScan' or 'AzureSubscriptionMsiScan' or 'AzureSynapseCredentialScan' or 'AzureSynapseMsiScan' or 'AzureSynapseWorkspaceCredentialScan' or 'AzureSynapseWorkspaceMsiScan' or 'OracleCredentialScan' or 'OracleUserPassScan' or 'PowerBIDelegatedScan' or 'PowerBIMsiScan' or 'SapEccCredentialScan' or 'SapEccUserPassScan' or 'SapS4HanaSapS4HanaCredentialScan' or 'SapS4HanaSapS4HanaUserPassScan' or 'SqlServerDatabaseCredentialScan' or 'TeradataCredentialScan' or 'TeradataUserPassScanAutoGenerated' or 'TeradataUserPassScan' # JSON input template you can fill out and use as your body input. body = { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } # response body for status code(s): 200, 201 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] json = body request = build_scans_create_or_update_request( data_source_name=data_source_name, scan_name=scan_name, content_type=content_type, json=json, template_url=self.create_or_update.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if response.status_code == 201: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}'} # type: ignore @distributed_trace_async async def get( self, data_source_name: str, scan_name: str, **kwargs: Any ) -> Any: """Gets a scan information. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_scans_get_request( data_source_name=data_source_name, scan_name=scan_name, template_url=self.get.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}'} # type: ignore @distributed_trace_async async def delete( self, data_source_name: str, scan_name: str, **kwargs: Any ) -> Optional[Any]: """Deletes the scan associated with the data source. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :return: JSON object :rtype: Any or None :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } """ cls = kwargs.pop('cls', None) # type: ClsType[Optional[Any]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_scans_delete_request( data_source_name=data_source_name, scan_name=scan_name, template_url=self.delete.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) deserialized = None if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized delete.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}'} # type: ignore @distributed_trace def list_by_data_source( self, data_source_name: str, **kwargs: Any ) -> AsyncIterable[Any]: """List scans in data source. :param data_source_name: :type data_source_name: str :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "id": "str", # Optional. "name": "str", # Optional. "scanResults": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ], kind: Scan } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_scans_list_by_data_source_request( data_source_name=data_source_name, template_url=self.list_by_data_source.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_scans_list_by_data_source_request( data_source_name=data_source_name, template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_by_data_source.metadata = {'url': '/datasources/{dataSourceName}/scans'} # type: ignore class ScanResultOperations: """ScanResultOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace_async async def run_scan( self, data_source_name: str, scan_name: str, run_id: str, *, scan_level: Optional[str] = None, **kwargs: Any ) -> Any: """Runs the scan. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :param run_id: :type run_id: str :keyword scan_level: Possible values are: "Full" or "Incremental". :paramtype scan_level: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 202 response.json() == { "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "scanResultId": str, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. Possible values include: "Accepted", "InProgress", "TransientFailure", "Succeeded", "Failed", "Canceled". } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_scan_result_run_scan_request( data_source_name=data_source_name, scan_name=scan_name, run_id=run_id, scan_level=scan_level, template_url=self.run_scan.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized run_scan.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}'} # type: ignore @distributed_trace_async async def cancel_scan( self, data_source_name: str, scan_name: str, run_id: str, **kwargs: Any ) -> Any: """Cancels a scan. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :param run_id: :type run_id: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 202 response.json() == { "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "scanResultId": str, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. Possible values include: "Accepted", "InProgress", "TransientFailure", "Succeeded", "Failed", "Canceled". } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_scan_result_cancel_scan_request( data_source_name=data_source_name, scan_name=scan_name, run_id=run_id, template_url=self.cancel_scan.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized cancel_scan.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}/runs/{runId}/:cancel'} # type: ignore @distributed_trace def list_scan_history( self, data_source_name: str, scan_name: str, **kwargs: Any ) -> AsyncIterable[Any]: """Lists the scan history of a scan. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "assetsClassified": 0.0, # Optional. "assetsDiscovered": 0.0, # Optional. "dataSourceType": "str", # Optional. Possible values include: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", "PowerBI". "diagnostics": { "exceptionCountMap": { "str": 0 # Optional. Dictionary of :code:`<integer>`. }, "notifications": [ { "code": 0, # Optional. "message": "str" # Optional. } ] }, "endTime": "2020-02-20 00:00:00", # Optional. "error": { "code": "str", # Optional. "details": [ { "code": "str", # Optional. "details": [ ... ], "message": "str", # Optional. "target": "str" # Optional. } ], "message": "str", # Optional. "target": "str" # Optional. }, "errorMessage": "str", # Optional. "id": "str", # Optional. "parentId": "str", # Optional. "pipelineStartTime": "2020-02-20 00:00:00", # Optional. "queuedTime": "2020-02-20 00:00:00", # Optional. "resourceId": "str", # Optional. "runType": "str", # Optional. "scanLevelType": "str", # Optional. Possible values include: "Full", "Incremental". "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "scanRulesetVersion": 0, # Optional. "startTime": "2020-02-20 00:00:00", # Optional. "status": "str" # Optional. } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_scan_result_list_scan_history_request( data_source_name=data_source_name, scan_name=scan_name, template_url=self.list_scan_history.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_scan_result_list_scan_history_request( data_source_name=data_source_name, scan_name=scan_name, template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_scan_history.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}/runs'} # type: ignore class ScanRulesetsOperations: """ScanRulesetsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace_async async def get( self, scan_ruleset_name: str, **kwargs: Any ) -> Any: """Get a scan ruleset. :param scan_ruleset_name: :type scan_ruleset_name: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: ScanRuleset } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_scan_rulesets_get_request( scan_ruleset_name=scan_ruleset_name, template_url=self.get.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/scanrulesets/{scanRulesetName}'} # type: ignore @distributed_trace_async async def create_or_update( self, scan_ruleset_name: str, body: Any = None, **kwargs: Any ) -> Any: """Creates or Updates a scan ruleset. :param scan_ruleset_name: :type scan_ruleset_name: str :param body: :type body: Any :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python kind = 'AdlsGen1ScanRuleset' or 'AdlsGen2ScanRuleset' or 'AmazonAccountScanRuleset' or 'AmazonPostgreSqlScanRuleset' or 'AmazonS3ScanRuleset' or 'AmazonSqlScanRuleset' or 'AzureCosmosDbScanRuleset' or 'AzureDataExplorerScanRuleset' or 'AzureFileServiceScanRuleset' or 'AzureMySqlScanRuleset' or 'AzurePostgreSqlScanRuleset' or 'AzureResourceGroupScanRuleset' or 'AzureSqlDataWarehouseScanRuleset' or 'AzureSqlDatabaseScanRuleset' or 'AzureSqlDatabaseManagedInstanceScanRuleset' or 'AzureStorageScanRuleset' or 'AzureSubscriptionScanRuleset' or 'AzureSynapseScanRuleset' or 'AzureSynapseWorkspaceScanRuleset' or 'OracleScanRuleset' or 'PowerBIScanRuleset' or 'SapEccScanRuleset' or 'SapS4HanaScanRuleset' or 'SqlServerDatabaseScanRuleset' or 'TeradataScanRuleset' # JSON input template you can fill out and use as your body input. body = { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: ScanRuleset } # response body for status code(s): 200, 201 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: ScanRuleset } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] if body is not None: json = body else: json = None request = build_scan_rulesets_create_or_update_request( scan_ruleset_name=scan_ruleset_name, content_type=content_type, json=json, template_url=self.create_or_update.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if response.status_code == 201: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized create_or_update.metadata = {'url': '/scanrulesets/{scanRulesetName}'} # type: ignore @distributed_trace_async async def delete( self, scan_ruleset_name: str, **kwargs: Any ) -> Optional[Any]: """Deletes a scan ruleset. :param scan_ruleset_name: :type scan_ruleset_name: str :return: JSON object :rtype: Any or None :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: ScanRuleset } """ cls = kwargs.pop('cls', None) # type: ClsType[Optional[Any]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_scan_rulesets_delete_request( scan_ruleset_name=scan_ruleset_name, template_url=self.delete.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) deserialized = None if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized delete.metadata = {'url': '/scanrulesets/{scanRulesetName}'} # type: ignore @distributed_trace def list_all( self, **kwargs: Any ) -> AsyncIterable[Any]: """List scan rulesets in Data catalog. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: ScanRuleset } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_scan_rulesets_list_all_request( template_url=self.list_all.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_scan_rulesets_list_all_request( template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_all.metadata = {'url': '/scanrulesets'} # type: ignore class SystemScanRulesetsOperations: """SystemScanRulesetsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace def list_all( self, **kwargs: Any ) -> AsyncIterable[Any]: """List all system scan rulesets for an account. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: SystemScanRuleset } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_system_scan_rulesets_list_all_request( template_url=self.list_all.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_system_scan_rulesets_list_all_request( template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_all.metadata = {'url': '/systemScanRulesets'} # type: ignore @distributed_trace_async async def get( self, data_source_type: str, **kwargs: Any ) -> Any: """Get a system scan ruleset for a data source. :param data_source_type: Possible values are: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", and "PowerBI". :type data_source_type: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: SystemScanRuleset } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_system_scan_rulesets_get_request( data_source_type=data_source_type, template_url=self.get.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get.metadata = {'url': '/systemScanRulesets/datasources/{dataSourceType}'} # type: ignore @distributed_trace_async async def get_by_version( self, version: int, *, data_source_type: Optional[str] = None, **kwargs: Any ) -> Any: """Get a scan ruleset by version. :param version: :type version: int :keyword data_source_type: Possible values are: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", and "PowerBI". :paramtype data_source_type: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: SystemScanRuleset } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_system_scan_rulesets_get_by_version_request( version=version, data_source_type=data_source_type, template_url=self.get_by_version.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get_by_version.metadata = {'url': '/systemScanRulesets/versions/{version}'} # type: ignore @distributed_trace_async async def get_latest( self, *, data_source_type: Optional[str] = None, **kwargs: Any ) -> Any: """Get the latest version of a system scan ruleset. :keyword data_source_type: Possible values are: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", and "PowerBI". :paramtype data_source_type: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: SystemScanRuleset } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_system_scan_rulesets_get_latest_request( data_source_type=data_source_type, template_url=self.get_latest.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get_latest.metadata = {'url': '/systemScanRulesets/versions/latest'} # type: ignore @distributed_trace def list_versions_by_data_source( self, *, data_source_type: Optional[str] = None, **kwargs: Any ) -> AsyncIterable[Any]: """List system scan ruleset versions in Data catalog. :keyword data_source_type: Possible values are: "None", "AzureSubscription", "AzureResourceGroup", "AzureSynapseWorkspace", "AzureSynapse", "AdlsGen1", "AdlsGen2", "AmazonAccount", "AmazonS3", "AmazonSql", "AzureCosmosDb", "AzureDataExplorer", "AzureFileService", "AzureSqlDatabase", "AmazonPostgreSql", "AzurePostgreSql", "SqlServerDatabase", "AzureSqlDatabaseManagedInstance", "AzureSqlDataWarehouse", "AzureMySql", "AzureStorage", "Teradata", "Oracle", "SapS4Hana", "SapEcc", and "PowerBI". :paramtype data_source_type: str :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[Any] :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "count": 0.0, # Optional. "nextLink": "str", # Optional. "value": [ { "id": "str", # Optional. "name": "str", # Optional. "scanRulesetType": "str", # Optional. Possible values include: "Custom", "System". "status": "str", # Optional. Possible values include: "Enabled", "Disabled". "version": 0, # Optional. kind: SystemScanRuleset } ] } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) def prepare_request(next_link=None): if not next_link: request = build_system_scan_rulesets_list_versions_by_data_source_request( data_source_type=data_source_type, template_url=self.list_versions_by_data_source.metadata['url'], ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) else: request = build_system_scan_rulesets_list_versions_by_data_source_request( data_source_type=data_source_type, template_url=next_link, ) request = _convert_request(request) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.method = "GET" return request async def extract_data(pipeline_response): deserialized = _loads(pipeline_response.http_response.body()) list_of_elem = deserialized["value"] if cls: list_of_elem = cls(list_of_elem) return deserialized.get("nextLink", None), AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) return pipeline_response return AsyncItemPaged( get_next, extract_data ) list_versions_by_data_source.metadata = {'url': '/systemScanRulesets/versions'} # type: ignore class TriggersOperations: """TriggersOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config @distributed_trace_async async def get_trigger( self, data_source_name: str, scan_name: str, **kwargs: Any ) -> Any: """Gets trigger information. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "properties": { "createdAt": "2020-02-20 00:00:00", # Optional. "incrementalScanStartTime": "2020-02-20 00:00:00", # Optional. "lastModifiedAt": "2020-02-20 00:00:00", # Optional. "lastScheduled": "2020-02-20 00:00:00", # Optional. "recurrence": { "endTime": "2020-02-20 00:00:00", # Optional. "frequency": "str", # Optional. Possible values include: "Week", "Month". "interval": 0, # Optional. "schedule": { "hours": [ 0 # Optional. ], "minutes": [ 0 # Optional. ], "monthDays": [ 0 # Optional. ], "monthlyOccurrences": [ { "day": "str", # Optional. Possible values include: "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday". "occurrence": 0 # Optional. } ], "weekDays": [ "str" # Optional. ] }, "startTime": "2020-02-20 00:00:00", # Optional. "timeZone": "str" # Optional. }, "recurrenceInterval": "str", # Optional. "scanLevel": "str" # Optional. Possible values include: "Full", "Incremental". } } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_triggers_get_trigger_request( data_source_name=data_source_name, scan_name=scan_name, template_url=self.get_trigger.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized get_trigger.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}/triggers/default'} # type: ignore @distributed_trace_async async def create_trigger( self, data_source_name: str, scan_name: str, body: Any, **kwargs: Any ) -> Any: """Creates an instance of a trigger. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :param body: :type body: Any :return: JSON object :rtype: Any :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # JSON input template you can fill out and use as your body input. body = { "id": "str", # Optional. "name": "str", # Optional. "properties": { "createdAt": "2020-02-20 00:00:00", # Optional. "incrementalScanStartTime": "2020-02-20 00:00:00", # Optional. "lastModifiedAt": "2020-02-20 00:00:00", # Optional. "lastScheduled": "2020-02-20 00:00:00", # Optional. "recurrence": { "endTime": "2020-02-20 00:00:00", # Optional. "frequency": "str", # Optional. Possible values include: "Week", "Month". "interval": 0, # Optional. "schedule": { "hours": [ 0 # Optional. ], "minutes": [ 0 # Optional. ], "monthDays": [ 0 # Optional. ], "monthlyOccurrences": [ { "day": "str", # Optional. Possible values include: "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday". "occurrence": 0 # Optional. } ], "weekDays": [ "str" # Optional. ] }, "startTime": "2020-02-20 00:00:00", # Optional. "timeZone": "str" # Optional. }, "recurrenceInterval": "str", # Optional. "scanLevel": "str" # Optional. Possible values include: "Full", "Incremental". } } # response body for status code(s): 200, 201 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "properties": { "createdAt": "2020-02-20 00:00:00", # Optional. "incrementalScanStartTime": "2020-02-20 00:00:00", # Optional. "lastModifiedAt": "2020-02-20 00:00:00", # Optional. "lastScheduled": "2020-02-20 00:00:00", # Optional. "recurrence": { "endTime": "2020-02-20 00:00:00", # Optional. "frequency": "str", # Optional. Possible values include: "Week", "Month". "interval": 0, # Optional. "schedule": { "hours": [ 0 # Optional. ], "minutes": [ 0 # Optional. ], "monthDays": [ 0 # Optional. ], "monthlyOccurrences": [ { "day": "str", # Optional. Possible values include: "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday". "occurrence": 0 # Optional. } ], "weekDays": [ "str" # Optional. ] }, "startTime": "2020-02-20 00:00:00", # Optional. "timeZone": "str" # Optional. }, "recurrenceInterval": "str", # Optional. "scanLevel": "str" # Optional. Possible values include: "Full", "Incremental". } } """ cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] json = body request = build_triggers_create_trigger_request( data_source_name=data_source_name, scan_name=scan_name, content_type=content_type, json=json, template_url=self.create_trigger.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if response.status_code == 201: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized create_trigger.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}/triggers/default'} # type: ignore @distributed_trace_async async def delete_trigger( self, data_source_name: str, scan_name: str, **kwargs: Any ) -> Optional[Any]: """Deletes the trigger associated with the scan. :param data_source_name: :type data_source_name: str :param scan_name: :type scan_name: str :return: JSON object :rtype: Any or None :raises: ~azure.core.exceptions.HttpResponseError Example: .. code-block:: python # response body for status code(s): 200 response.json() == { "id": "str", # Optional. "name": "str", # Optional. "properties": { "createdAt": "2020-02-20 00:00:00", # Optional. "incrementalScanStartTime": "2020-02-20 00:00:00", # Optional. "lastModifiedAt": "2020-02-20 00:00:00", # Optional. "lastScheduled": "2020-02-20 00:00:00", # Optional. "recurrence": { "endTime": "2020-02-20 00:00:00", # Optional. "frequency": "str", # Optional. Possible values include: "Week", "Month". "interval": 0, # Optional. "schedule": { "hours": [ 0 # Optional. ], "minutes": [ 0 # Optional. ], "monthDays": [ 0 # Optional. ], "monthlyOccurrences": [ { "day": "str", # Optional. Possible values include: "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday". "occurrence": 0 # Optional. } ], "weekDays": [ "str" # Optional. ] }, "startTime": "2020-02-20 00:00:00", # Optional. "timeZone": "str" # Optional. }, "recurrenceInterval": "str", # Optional. "scanLevel": "str" # Optional. Possible values include: "Full", "Incremental". } } """ cls = kwargs.pop('cls', None) # type: ClsType[Optional[Any]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) request = build_triggers_delete_trigger_request( data_source_name=data_source_name, scan_name=scan_name, template_url=self.delete_trigger.metadata['url'], ) path_format_arguments = { "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } request.url = self._client.format_url(request.url, **path_format_arguments) pipeline_response = await self._client.send_request(request, stream=False, _return_pipeline_response=True, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) deserialized = None if response.status_code == 200: if response.content: deserialized = response.json() else: deserialized = None if cls: return cls(pipeline_response, deserialized, {}) return deserialized delete_trigger.metadata = {'url': '/datasources/{dataSourceName}/scans/{scanName}/triggers/default'} # type: ignore
44.201337
1,516
0.506971
12,840
158,727
6.071417
0.035592
0.050092
0.024475
0.009492
0.934425
0.928614
0.922226
0.909206
0.896379
0.892235
0
0.019464
0.393758
158,727
3,590
1,517
44.213649
0.790672
0.1359
0
0.827836
0
0
0.056683
0.034118
0
0
0
0
0
1
0.01781
false
0
0.008575
0
0.090369
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
3f956a3e29027dfcd4a6e0e244eaea9d3c74711a
2,410
py
Python
ICML_paper_experiments.py
maitchison/RTG
a1422a408447e22bad6e07adb87bb10d26ef36cd
[ "Apache-2.0" ]
1
2021-07-29T02:42:33.000Z
2021-07-29T02:42:33.000Z
ICML_paper_experiments.py
maitchison/RTG
a1422a408447e22bad6e07adb87bb10d26ef36cd
[ "Apache-2.0" ]
null
null
null
ICML_paper_experiments.py
maitchison/RTG
a1422a408447e22bad6e07adb87bb10d26ef36cd
[ "Apache-2.0" ]
null
null
null
# This script will generate the results used in the ICML paper and is provided for reproducibility. # Time to run is approximately 4 days if run on 4 GPUs, however this script will run experiments sequentially on one GPU # On a multi-gpu machine it is recommended to execute each run in parallel and to modifying the --device='cuda:0' # appropriately. # Note: A RTX2080 can comfortably run 2 experiments simultaneously with little performance impact. import os os.system("python train.py train --train_scenario='rescue_training' --eval_scenarios='[]' --micro=1024 --verbose=2 --run='rescue413a_db00' --prediction='action' --deception_bonus='(0,0,0)' --device='cuda:0' --epochs=300 --seed=0") os.system("python train.py train --train_scenario='rescue_training' --eval_scenarios='[]' --micro=1024 --verbose=2 --run='rescue413b_db00' --prediction='action' --deception_bonus='(0,0,0)' --device='cuda:0' --epochs=300 --seed=1") os.system("python train.py train --train_scenario='rescue_training' --eval_scenarios='[]' --micro=1024 --verbose=2 --run='rescue413c_db00' --prediction='action' --deception_bonus='(0,0,0)' --device='cuda:0' --epochs=300 --seed=2") os.system("python train.py train --train_scenario='rescue_training' --eval_scenarios='[]' --micro=1024 --verbose=2 --run='rescue413d_db00' --prediction='action' --deception_bonus='(0,0,0)' --device='cuda:0' --epochs=300 --seed=3") os.system("python train.py train --train_scenario='rescue_training' --eval_scenarios='[]' --micro=1024 --verbose=2 --run='rescue413a_db05' --prediction='action' --deception_bonus='(0.5,0,0)' --device='cuda:0' --epochs=300 --seed=4") os.system("python train.py train --train_scenario='rescue_training' --eval_scenarios='[]' --micro=1024 --verbose=2 --run='rescue413b_db05' --prediction='action' --deception_bonus='(0.5,0,0)' --device='cuda:0' --epochs=300 --seed=5") os.system("python train.py train --train_scenario='rescue_training' --eval_scenarios='[]' --micro=1024 --verbose=2 --run='rescue413c_db05' --prediction='action' --deception_bonus='(0.5,0,0)' --device='cuda:0' --epochs=300 --seed=6") os.system("python train.py train --train_scenario='rescue_training' --eval_scenarios='[]' --micro=1024 --verbose=2 --run='rescue413d_db05' --prediction='action' --deception_bonus='(0.5,0,0)' --device='cuda:0' --epochs=300 --seed=7") # this will test agents against a mixture over all agents. os.system("python arena.py")
120.5
232
0.722822
358
2,410
4.75419
0.25419
0.014101
0.058167
0.089307
0.740306
0.740306
0.740306
0.740306
0.740306
0.740306
0
0.070556
0.082573
2,410
20
233
120.5
0.699231
0.207054
0
0
1
0.8
0.92336
0.533333
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
0
1
1
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
11
3fd5d25888f3c77bdae256d9598cb749b30291ca
86,515
py
Python
tests/test_status_checker.py
uk-gov-mirror/dwp.dataworks-snapshot-sender-status-checker
d0372c3498c0717fdab0c37c5371217e375d4b52
[ "0BSD" ]
null
null
null
tests/test_status_checker.py
uk-gov-mirror/dwp.dataworks-snapshot-sender-status-checker
d0372c3498c0717fdab0c37c5371217e375d4b52
[ "0BSD" ]
null
null
null
tests/test_status_checker.py
uk-gov-mirror/dwp.dataworks-snapshot-sender-status-checker
d0372c3498c0717fdab0c37c5371217e375d4b52
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import unittest import pytest import argparse import json import prometheus_client from copy import deepcopy from unittest import mock from status_checker_lambda import status_checker EXPORTING_STATUS = "Exporting" EXPORTED_STATUS = "Exported" SENT_STATUS = "Sent" RECEIVED_STATUS = "Received" SUCCESS_STATUS = "Success" COLLECTION_1 = "collection1" COLLECTION_2 = "collection2" CORRELATION_ID_1 = "correlationId1" CORRELATION_ID_FIELD_NAME = "correlation_id" COLLECTION_NAME_FIELD_NAME = "collection_name" SNAPSHOT_TYPE_FIELD_NAME = "snapshot_type" EXPORT_DATE_FIELD_NAME = "export_date" IS_SUCCESS_FILE_FIELD_NAME = "is_success_file" SHUTDOWN_FLAG_FIELD_NAME = "shutdown_flag" FILE_NAME_FIELD_NAME = "file_name" REPROCESS_FILES_FIELD_NAME = "reprocess_files" CORRELATION_ID_DDB_FIELD_NAME = "CorrelationId" COLLECTION_NAME_DDB_FIELD_NAME = "CollectionName" COLLECTION_STATUS_DDB_FIELD_NAME = "CollectionStatus" DDB_TABLE_NAME = "TestStatusTable" SQS_QUEUE_URL = "http://test" SNS_TOPIC_ARN = "test_sns_arn" EXPORT_DATE = "2021-01-01" SNAPSHOT_TYPE = "fulls" MESSAGE_STATUS = "test status" TEST_FILE_NAME = "test_file" SLACK_USERNAME = "Snapshot Sender" PUSHGATEWAY_HOSTNAME = "test-host" PUSHGATEWAY_PORT = 9090 METRICS_JOB_NAME = "snapshot_sender_status_checker" GROUPING_KEY = {"test": "test_key"} args = argparse.Namespace() args.dynamo_db_export_status_table_name = DDB_TABLE_NAME args.monitoring_sns_topic_arn = SNS_TOPIC_ARN args.export_state_sqs_queue_url = SQS_QUEUE_URL args.pushgateway_hostname = PUSHGATEWAY_HOSTNAME args.pushgateway_port = PUSHGATEWAY_PORT args.log_level = "INFO" class TestReplayer(unittest.TestCase): @mock.patch("status_checker_lambda.status_checker.handle_message") @mock.patch("status_checker_lambda.status_checker.extract_messages") @mock.patch("status_checker_lambda.status_checker.setup_logging") @mock.patch("status_checker_lambda.status_checker.get_parameters") @mock.patch("status_checker_lambda.status_checker.get_client") @mock.patch("status_checker_lambda.status_checker.logger") def test_handler_gets_clients_and_processes_all_messages( self, mock_logger, get_client_mock, get_parameters_mock, setup_logging_mock, extract_messages_mock, handle_message_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() get_client_mock_return_values = { "dynamodb": dynamodb_client_mock, "sqs": sqs_client_mock, "sns": sns_client_mock, } get_client_mock.side_effect = get_client_mock_return_values.get get_parameters_mock.return_value = args extract_messages_mock.return_value = [ {"test1": "test_value1"}, {"test2": "test_value2"}, ] event = { COLLECTION_NAME_FIELD_NAME: COLLECTION_1, CORRELATION_ID_FIELD_NAME: CORRELATION_ID_1, SNAPSHOT_TYPE_FIELD_NAME: SNAPSHOT_TYPE, EXPORT_DATE_FIELD_NAME: EXPORT_DATE, } status_checker.handler(event, None) get_client_mock.assert_any_call("dynamodb") get_client_mock.assert_any_call("sqs") get_client_mock.assert_any_call("sns") get_parameters_mock.assert_called_once() setup_logging_mock.assert_called_once() extract_messages_mock.assert_called_once_with(event) self.assertEqual(handle_message_mock.call_count, 2) handle_message_mock.assert_any_call( {"test1": "test_value1"}, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, ) handle_message_mock.assert_any_call( {"test2": "test_value2"}, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, ) @mock.patch("status_checker_lambda.status_checker.delete_metrics") @mock.patch("status_checker_lambda.status_checker.push_metrics") @mock.patch("status_checker_lambda.status_checker.process_message") @mock.patch("status_checker_lambda.status_checker.check_for_mandatory_keys") @mock.patch("status_checker_lambda.status_checker.logger") def test_handle_message_extracts_logging_fields_and_processes_message( self, mock_logger, check_for_mandatory_keys_mock, process_message_mock, push_metrics_mock, delete_metrics_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() process_message_mock.return_value = False check_for_mandatory_keys_mock.return_value = True message = { COLLECTION_NAME_FIELD_NAME: COLLECTION_1, CORRELATION_ID_FIELD_NAME: CORRELATION_ID_1, SNAPSHOT_TYPE_FIELD_NAME: SNAPSHOT_TYPE, EXPORT_DATE_FIELD_NAME: EXPORT_DATE, FILE_NAME_FIELD_NAME: TEST_FILE_NAME, } status_checker.handle_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, ) process_message_mock.assert_called_once_with( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) push_metrics_mock.assert_called_once_with( mock.ANY, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, METRICS_JOB_NAME, CORRELATION_ID_1, ) delete_metrics_mock.assert_not_called() @mock.patch("status_checker_lambda.status_checker.delete_metrics") @mock.patch("status_checker_lambda.status_checker.push_metrics") @mock.patch("status_checker_lambda.status_checker.process_message") @mock.patch("status_checker_lambda.status_checker.check_for_mandatory_keys") @mock.patch("status_checker_lambda.status_checker.logger") def test_handle_message_deletes_metrics_when_all_collections_successful( self, mock_logger, check_for_mandatory_keys_mock, process_message_mock, push_metrics_mock, delete_metrics_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() process_message_mock.return_value = True check_for_mandatory_keys_mock.return_value = True message = { COLLECTION_NAME_FIELD_NAME: COLLECTION_1, CORRELATION_ID_FIELD_NAME: CORRELATION_ID_1, SNAPSHOT_TYPE_FIELD_NAME: SNAPSHOT_TYPE, EXPORT_DATE_FIELD_NAME: EXPORT_DATE, FILE_NAME_FIELD_NAME: TEST_FILE_NAME, } status_checker.handle_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, ) process_message_mock.assert_called_once_with( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) push_metrics_mock.assert_called_once_with( mock.ANY, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, METRICS_JOB_NAME, CORRELATION_ID_1, ) delete_metrics_mock.assert_called_once_with( PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, METRICS_JOB_NAME, CORRELATION_ID_1, mock.ANY, ) @mock.patch("status_checker_lambda.status_checker.delete_metrics") @mock.patch("status_checker_lambda.status_checker.push_metrics") @mock.patch("status_checker_lambda.status_checker.process_message") @mock.patch("status_checker_lambda.status_checker.check_for_mandatory_keys") @mock.patch("status_checker_lambda.status_checker.logger") def test_handle_message_pushes_metrics_even_when_error( self, mock_logger, check_for_mandatory_keys_mock, process_message_mock, push_metrics_mock, delete_metrics_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() process_message_mock.side_effect = Exception("Test") process_message_mock.return_value = False check_for_mandatory_keys_mock.return_value = True message = { COLLECTION_NAME_FIELD_NAME: COLLECTION_1, CORRELATION_ID_FIELD_NAME: CORRELATION_ID_1, SNAPSHOT_TYPE_FIELD_NAME: SNAPSHOT_TYPE, EXPORT_DATE_FIELD_NAME: EXPORT_DATE, FILE_NAME_FIELD_NAME: TEST_FILE_NAME, } with self.assertRaises(Exception): status_checker.handle_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, ) process_message_mock.assert_called_once_with( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) push_metrics_mock.assert_called_once_with( mock.ANY, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, METRICS_JOB_NAME, CORRELATION_ID_1, ) delete_metrics_mock.assert_not_called() @mock.patch("status_checker_lambda.status_checker.delete_metrics") @mock.patch("status_checker_lambda.status_checker.push_metrics") @mock.patch("status_checker_lambda.status_checker.process_message") @mock.patch("status_checker_lambda.status_checker.check_for_mandatory_keys") @mock.patch("status_checker_lambda.status_checker.logger") def test_handle_message_stops_when_missing_mandatory_keys( self, mock_logger, check_for_mandatory_keys_mock, process_message_mock, push_metrics_mock, delete_metrics_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() process_message_mock.return_value = False check_for_mandatory_keys_mock.return_value = False message = { COLLECTION_NAME_FIELD_NAME: COLLECTION_1, CORRELATION_ID_FIELD_NAME: CORRELATION_ID_1, SNAPSHOT_TYPE_FIELD_NAME: SNAPSHOT_TYPE, EXPORT_DATE_FIELD_NAME: EXPORT_DATE, } status_checker.handle_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, ) process_message_mock.assert_not_called() push_metrics_mock.assert_not_called() delete_metrics_mock.assert_not_called() @mock.patch("status_checker_lambda.status_checker.process_normal_file_message") @mock.patch("status_checker_lambda.status_checker.process_success_file_message") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_message_processes_normal_message_when_success_file_field_not_present( self, mock_logger, process_success_file_message_mock, process_normal_file_message_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() message = {} result = status_checker.process_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) process_normal_file_message_mock.assert_called_once_with( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, sqs_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, "true", "true", SNS_TOPIC_ARN, SQS_QUEUE_URL, TEST_FILE_NAME, ) process_success_file_message_mock.assert_not_called() self.assertFalse(result) @mock.patch("status_checker_lambda.status_checker.process_normal_file_message") @mock.patch("status_checker_lambda.status_checker.process_success_file_message") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_message_processes_normal_message_when_success_file_field_null( self, mock_logger, process_success_file_message_mock, process_normal_file_message_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() message = { IS_SUCCESS_FILE_FIELD_NAME: None, } result = status_checker.process_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) process_normal_file_message_mock.assert_called_once_with( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, sqs_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, "true", "true", SNS_TOPIC_ARN, SQS_QUEUE_URL, TEST_FILE_NAME, ) process_success_file_message_mock.assert_not_called() self.assertFalse(result) @mock.patch("status_checker_lambda.status_checker.process_normal_file_message") @mock.patch("status_checker_lambda.status_checker.process_success_file_message") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_message_processes_normal_message_when_success_file_field_empty( self, mock_logger, process_success_file_message_mock, process_normal_file_message_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() message = { IS_SUCCESS_FILE_FIELD_NAME: "", } result = status_checker.process_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) process_normal_file_message_mock.assert_called_once_with( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, sqs_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, "true", "true", SNS_TOPIC_ARN, SQS_QUEUE_URL, TEST_FILE_NAME, ) process_success_file_message_mock.assert_not_called() self.assertFalse(result) @mock.patch("status_checker_lambda.status_checker.process_normal_file_message") @mock.patch("status_checker_lambda.status_checker.process_success_file_message") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_message_processes_normal_message_when_success_file_field_not_true( self, mock_logger, process_success_file_message_mock, process_normal_file_message_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() message = { IS_SUCCESS_FILE_FIELD_NAME: "false", } result = status_checker.process_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) process_normal_file_message_mock.assert_called_once_with( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, sqs_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, "true", "true", SNS_TOPIC_ARN, SQS_QUEUE_URL, TEST_FILE_NAME, ) process_success_file_message_mock.assert_not_called() self.assertFalse(result) @mock.patch("status_checker_lambda.status_checker.process_normal_file_message") @mock.patch("status_checker_lambda.status_checker.process_success_file_message") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_message_processes_success_message_when_success_file_field_true( self, mock_logger, process_success_file_message_mock, process_normal_file_message_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() process_success_file_message_mock.return_value = False message = { IS_SUCCESS_FILE_FIELD_NAME: "true", } result = status_checker.process_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) process_success_file_message_mock.assert_called_once_with( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, SNS_TOPIC_ARN, TEST_FILE_NAME, ) process_normal_file_message_mock.assert_not_called() self.assertFalse(result) @mock.patch("status_checker_lambda.status_checker.process_normal_file_message") @mock.patch("status_checker_lambda.status_checker.process_success_file_message") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_message_processes_success_message_when_success_file_field_true_regardless_of_case( self, mock_logger, process_success_file_message_mock, process_normal_file_message_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() process_success_file_message_mock.return_value = True message = { IS_SUCCESS_FILE_FIELD_NAME: "TRUE", } result = status_checker.process_message( message, dynamodb_client_mock, sqs_client_mock, sns_client_mock, DDB_TABLE_NAME, SNS_TOPIC_ARN, SQS_QUEUE_URL, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, TEST_FILE_NAME, ) process_success_file_message_mock.assert_called_once_with( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, SNS_TOPIC_ARN, TEST_FILE_NAME, ) process_normal_file_message_mock.assert_not_called() self.assertTrue(result) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.send_sns_message") @mock.patch( "status_checker_lambda.status_checker.generate_monitoring_message_payload" ) @mock.patch("status_checker_lambda.status_checker.check_completion_status") @mock.patch( "status_checker_lambda.status_checker.query_dynamodb_for_all_collections" ) @mock.patch("status_checker_lambda.status_checker.send_sqs_message") @mock.patch( "status_checker_lambda.status_checker.generate_export_state_message_payload" ) @mock.patch("status_checker_lambda.status_checker.update_status_for_collection") @mock.patch("status_checker_lambda.status_checker.is_collection_received") @mock.patch( "status_checker_lambda.status_checker.update_files_received_for_collection" ) @mock.patch("status_checker_lambda.status_checker.logger") def test_process_normal_message_when_all_collections_have_been_received( self, mock_logger, update_files_received_for_collection_mock, is_collection_received_mock, update_status_for_collection_mock, generate_export_state_message_payload_mock, send_sqs_message_mock, query_dynamodb_for_all_collections_mock, check_completion_status_mock, generate_monitoring_message_payload_mock, send_sns_message_mock, increment_counter_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() single_collection_result = { "CollectionName": SENT_STATUS, "FilesReceived": 1, "FilesSent": 1, } update_files_received_for_collection_mock.return_value = ( single_collection_result ) is_collection_received_mock.return_value = True expected_payload_sqs = { "shutdown_flag": "true", "correlation_id": CORRELATION_ID_1, "topic_name": COLLECTION_1, "snapshot_type": SNAPSHOT_TYPE, "reprocess_files": "true", "export_date": EXPORT_DATE, "send_success_indicator": "true", } generate_export_state_message_payload_mock.return_value = expected_payload_sqs all_collections_result = [ { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_1, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_2, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, ] query_dynamodb_for_all_collections_mock.return_value = all_collections_result check_completion_status_mock.return_value = True expected_payload_sns = { "severity": "Critical", "notification_type": "Information", "slack_username": SLACK_USERNAME, "title_text": "Fulls - test status", } generate_monitoring_message_payload_mock.return_value = expected_payload_sns status_checker.process_normal_file_message( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, sqs_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, "true", "true", SNS_TOPIC_ARN, SQS_QUEUE_URL, TEST_FILE_NAME, ) update_files_received_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) is_collection_received_mock.assert_called_once_with( single_collection_result, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) update_status_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, RECEIVED_STATUS, TEST_FILE_NAME, ) generate_export_state_message_payload_mock.assert_called_once_with( SNAPSHOT_TYPE, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, "true", "true", TEST_FILE_NAME, ) send_sqs_message_mock.assert_called_once_with( sqs_client_mock, expected_payload_sqs, SQS_QUEUE_URL, TEST_FILE_NAME, ) query_dynamodb_for_all_collections_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, TEST_FILE_NAME, ) check_completion_status_mock.assert_called_once_with( all_collections_result, [RECEIVED_STATUS, SUCCESS_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) generate_monitoring_message_payload_mock.assert_called_once_with( SNAPSHOT_TYPE, "All collections received by NiFi", EXPORT_DATE, CORRELATION_ID_1, TEST_FILE_NAME, ) send_sns_message_mock.assert_called_once_with( sns_client_mock, expected_payload_sns, SNS_TOPIC_ARN, TEST_FILE_NAME, ) increment_counter_mock.assert_called_once_with( mock.ANY, CORRELATION_ID_1, None, EXPORT_DATE, SNAPSHOT_TYPE, value=1, ) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.send_sns_message") @mock.patch( "status_checker_lambda.status_checker.generate_monitoring_message_payload" ) @mock.patch("status_checker_lambda.status_checker.check_completion_status") @mock.patch( "status_checker_lambda.status_checker.query_dynamodb_for_all_collections" ) @mock.patch("status_checker_lambda.status_checker.send_sqs_message") @mock.patch( "status_checker_lambda.status_checker.generate_export_state_message_payload" ) @mock.patch("status_checker_lambda.status_checker.update_status_for_collection") @mock.patch("status_checker_lambda.status_checker.is_collection_received") @mock.patch( "status_checker_lambda.status_checker.update_files_received_for_collection" ) @mock.patch("status_checker_lambda.status_checker.logger") def test_process_normal_message_when_current_collection_has_been_received_but_others_have_not( self, mock_logger, update_files_received_for_collection_mock, is_collection_received_mock, update_status_for_collection_mock, generate_export_state_message_payload_mock, send_sqs_message_mock, query_dynamodb_for_all_collections_mock, check_completion_status_mock, generate_monitoring_message_payload_mock, send_sns_message_mock, increment_counter_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() single_collection_result = { "CollectionName": SENT_STATUS, "FilesReceived": 1, "FilesSent": 1, } update_files_received_for_collection_mock.return_value = ( single_collection_result ) is_collection_received_mock.return_value = True expected_payload_sqs = { "shutdown_flag": "true", "correlation_id": CORRELATION_ID_1, "topic_name": COLLECTION_1, "snapshot_type": SNAPSHOT_TYPE, "reprocess_files": "true", "export_date": EXPORT_DATE, "send_success_indicator": "true", } generate_export_state_message_payload_mock.return_value = expected_payload_sqs all_collections_result = [ { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_1, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_2, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, ] query_dynamodb_for_all_collections_mock.return_value = all_collections_result check_completion_status_mock.return_value = False message = { COLLECTION_NAME_FIELD_NAME: COLLECTION_1, CORRELATION_ID_FIELD_NAME: CORRELATION_ID_1, SNAPSHOT_TYPE_FIELD_NAME: SNAPSHOT_TYPE, EXPORT_DATE_FIELD_NAME: EXPORT_DATE, } status_checker.process_normal_file_message( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, sqs_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, "true", "true", SNS_TOPIC_ARN, SQS_QUEUE_URL, TEST_FILE_NAME, ) update_files_received_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) is_collection_received_mock.assert_called_once_with( single_collection_result, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) update_status_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, RECEIVED_STATUS, TEST_FILE_NAME, ) generate_export_state_message_payload_mock.assert_called_once_with( SNAPSHOT_TYPE, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, "true", "true", TEST_FILE_NAME, ) send_sqs_message_mock.assert_called_once_with( sqs_client_mock, expected_payload_sqs, SQS_QUEUE_URL, TEST_FILE_NAME, ) query_dynamodb_for_all_collections_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, TEST_FILE_NAME, ) check_completion_status_mock.assert_called_once_with( all_collections_result, [RECEIVED_STATUS, SUCCESS_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) generate_monitoring_message_payload_mock.assert_not_called() send_sns_message_mock.assert_not_called() increment_counter_mock.assert_not_called() @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.send_sns_message") @mock.patch( "status_checker_lambda.status_checker.generate_monitoring_message_payload" ) @mock.patch("status_checker_lambda.status_checker.check_completion_status") @mock.patch( "status_checker_lambda.status_checker.query_dynamodb_for_all_collections" ) @mock.patch("status_checker_lambda.status_checker.send_sqs_message") @mock.patch( "status_checker_lambda.status_checker.generate_export_state_message_payload" ) @mock.patch("status_checker_lambda.status_checker.update_status_for_collection") @mock.patch("status_checker_lambda.status_checker.is_collection_received") @mock.patch( "status_checker_lambda.status_checker.update_files_received_for_collection" ) @mock.patch("status_checker_lambda.status_checker.logger") def test_process_normal_message_when_current_collection_has_been_received_but_others_have_not_with_optional_parameters( self, mock_logger, update_files_received_for_collection_mock, is_collection_received_mock, update_status_for_collection_mock, generate_export_state_message_payload_mock, send_sqs_message_mock, query_dynamodb_for_all_collections_mock, check_completion_status_mock, generate_monitoring_message_payload_mock, send_sns_message_mock, increment_counter_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() single_collection_result = { "CollectionName": SENT_STATUS, "FilesReceived": 1, "FilesSent": 1, } update_files_received_for_collection_mock.return_value = ( single_collection_result ) is_collection_received_mock.return_value = True expected_payload_sqs = { "shutdown_flag": "false", "correlation_id": CORRELATION_ID_1, "topic_name": COLLECTION_1, "snapshot_type": SNAPSHOT_TYPE, "reprocess_files": "false", "export_date": EXPORT_DATE, "send_success_indicator": "true", } generate_export_state_message_payload_mock.return_value = expected_payload_sqs all_collections_result = [ { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_1, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_2, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, ] query_dynamodb_for_all_collections_mock.return_value = all_collections_result check_completion_status_mock.return_value = False message = { COLLECTION_NAME_FIELD_NAME: COLLECTION_1, CORRELATION_ID_FIELD_NAME: CORRELATION_ID_1, SNAPSHOT_TYPE_FIELD_NAME: SNAPSHOT_TYPE, EXPORT_DATE_FIELD_NAME: EXPORT_DATE, SHUTDOWN_FLAG_FIELD_NAME: "false", REPROCESS_FILES_FIELD_NAME: "false", } status_checker.process_normal_file_message( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, sqs_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, "true", "true", SNS_TOPIC_ARN, SQS_QUEUE_URL, TEST_FILE_NAME, ) update_files_received_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) is_collection_received_mock.assert_called_once_with( single_collection_result, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) update_status_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, RECEIVED_STATUS, TEST_FILE_NAME, ) generate_export_state_message_payload_mock.assert_called_once_with( SNAPSHOT_TYPE, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, "true", "true", TEST_FILE_NAME, ) send_sqs_message_mock.assert_called_once_with( sqs_client_mock, expected_payload_sqs, SQS_QUEUE_URL, TEST_FILE_NAME, ) query_dynamodb_for_all_collections_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, TEST_FILE_NAME, ) check_completion_status_mock.assert_called_once_with( all_collections_result, [RECEIVED_STATUS, SUCCESS_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) generate_monitoring_message_payload_mock.assert_not_called() send_sns_message_mock.assert_not_called() increment_counter_mock.assert_not_called() @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.send_sns_message") @mock.patch( "status_checker_lambda.status_checker.generate_monitoring_message_payload" ) @mock.patch("status_checker_lambda.status_checker.check_completion_status") @mock.patch( "status_checker_lambda.status_checker.query_dynamodb_for_all_collections" ) @mock.patch("status_checker_lambda.status_checker.send_sqs_message") @mock.patch( "status_checker_lambda.status_checker.generate_export_state_message_payload" ) @mock.patch("status_checker_lambda.status_checker.update_status_for_collection") @mock.patch("status_checker_lambda.status_checker.is_collection_received") @mock.patch( "status_checker_lambda.status_checker.update_files_received_for_collection" ) @mock.patch("status_checker_lambda.status_checker.logger") def test_process_normal_message_when_current_collection_has_not_been_received( self, mock_logger, update_files_received_for_collection_mock, is_collection_received_mock, update_status_for_collection_mock, generate_export_state_message_payload_mock, send_sqs_message_mock, query_dynamodb_for_all_collections_mock, check_completion_status_mock, generate_monitoring_message_payload_mock, send_sns_message_mock, increment_counter_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() single_collection_result = { "CollectionName": SENT_STATUS, "FilesReceived": 1, "FilesSent": 1, } update_files_received_for_collection_mock.return_value = ( single_collection_result ) is_collection_received_mock.return_value = False message = { COLLECTION_NAME_FIELD_NAME: COLLECTION_1, CORRELATION_ID_FIELD_NAME: CORRELATION_ID_1, SNAPSHOT_TYPE_FIELD_NAME: SNAPSHOT_TYPE, EXPORT_DATE_FIELD_NAME: EXPORT_DATE, } status_checker.process_normal_file_message( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, sqs_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, "true", "true", SNS_TOPIC_ARN, SQS_QUEUE_URL, TEST_FILE_NAME, ) update_files_received_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) is_collection_received_mock.assert_called_once_with( single_collection_result, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) update_status_for_collection_mock.assert_not_called() generate_export_state_message_payload_mock.assert_not_called() send_sqs_message_mock.assert_not_called() query_dynamodb_for_all_collections_mock.assert_not_called() check_completion_status_mock.assert_not_called() generate_monitoring_message_payload_mock.assert_not_called() send_sns_message_mock.assert_not_called() increment_counter_mock.assert_not_called() @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.send_sns_message") @mock.patch( "status_checker_lambda.status_checker.generate_monitoring_message_payload" ) @mock.patch("status_checker_lambda.status_checker.check_completion_status") @mock.patch( "status_checker_lambda.status_checker.query_dynamodb_for_all_collections" ) @mock.patch("status_checker_lambda.status_checker.update_status_for_collection") @mock.patch("status_checker_lambda.status_checker.is_collection_success") @mock.patch("status_checker_lambda.status_checker.get_current_collection") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_success_message_when_all_collections_have_been_successful( self, mock_logger, get_current_collection_mock, is_collection_success_mock, update_status_for_collection_mock, query_dynamodb_for_all_collections_mock, check_completion_status_mock, generate_monitoring_message_payload_mock, send_sns_message_mock, increment_counter_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() single_collection_result = { "CollectionName": RECEIVED_STATUS, } get_current_collection_mock.return_value = single_collection_result is_collection_success_mock.return_value = True all_collections_result = [ { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_1, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_2, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, ] query_dynamodb_for_all_collections_mock.return_value = all_collections_result check_completion_status_mock.return_value = True expected_payload_sns = { "severity": "Critical", "notification_type": "Information", "slack_username": SLACK_USERNAME, "title_text": "Fulls - test status", } generate_monitoring_message_payload_mock.return_value = expected_payload_sns result = status_checker.process_success_file_message( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, SNS_TOPIC_ARN, TEST_FILE_NAME, ) get_current_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, TEST_FILE_NAME, ) is_collection_success_mock.assert_called_once_with( single_collection_result, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) update_status_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, SUCCESS_STATUS, TEST_FILE_NAME, ) query_dynamodb_for_all_collections_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, TEST_FILE_NAME, ) check_completion_status_mock.assert_called_once_with( all_collections_result, [SUCCESS_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) generate_monitoring_message_payload_mock.assert_called_once_with( SNAPSHOT_TYPE, "All collections successful", EXPORT_DATE, CORRELATION_ID_1, TEST_FILE_NAME, ) send_sns_message_mock.assert_called_once_with( sns_client_mock, expected_payload_sns, SNS_TOPIC_ARN, TEST_FILE_NAME, ) increment_counter_mock.assert_called_once_with( mock.ANY, CORRELATION_ID_1, None, EXPORT_DATE, SNAPSHOT_TYPE, value=1, ) self.assertTrue(result) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.send_sns_message") @mock.patch( "status_checker_lambda.status_checker.generate_monitoring_message_payload" ) @mock.patch("status_checker_lambda.status_checker.check_completion_status") @mock.patch( "status_checker_lambda.status_checker.query_dynamodb_for_all_collections" ) @mock.patch("status_checker_lambda.status_checker.update_status_for_collection") @mock.patch("status_checker_lambda.status_checker.is_collection_success") @mock.patch("status_checker_lambda.status_checker.get_current_collection") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_success_message_when_current_collection_is_successful_but_others_are_not( self, mock_logger, get_current_collection_mock, is_collection_success_mock, update_status_for_collection_mock, query_dynamodb_for_all_collections_mock, check_completion_status_mock, generate_monitoring_message_payload_mock, send_sns_message_mock, increment_counter_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() single_collection_result = { "CollectionName": RECEIVED_STATUS, } get_current_collection_mock.return_value = single_collection_result is_collection_success_mock.return_value = True all_collections_result = [ { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_1, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, { COLLECTION_NAME_DDB_FIELD_NAME: COLLECTION_2, COLLECTION_STATUS_DDB_FIELD_NAME: EXPORTING_STATUS, }, ] query_dynamodb_for_all_collections_mock.return_value = all_collections_result check_completion_status_mock.return_value = False result = status_checker.process_success_file_message( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, SNS_TOPIC_ARN, TEST_FILE_NAME, ) get_current_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, TEST_FILE_NAME, ) is_collection_success_mock.assert_called_once_with( single_collection_result, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) update_status_for_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, SUCCESS_STATUS, TEST_FILE_NAME, ) query_dynamodb_for_all_collections_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, TEST_FILE_NAME, ) check_completion_status_mock.assert_called_once_with( all_collections_result, [SUCCESS_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) generate_monitoring_message_payload_mock.assert_not_called() send_sns_message_mock.assert_not_called() increment_counter_mock.assert_not_called() self.assertFalse(result) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.send_sns_message") @mock.patch( "status_checker_lambda.status_checker.generate_monitoring_message_payload" ) @mock.patch("status_checker_lambda.status_checker.check_completion_status") @mock.patch( "status_checker_lambda.status_checker.query_dynamodb_for_all_collections" ) @mock.patch("status_checker_lambda.status_checker.update_status_for_collection") @mock.patch("status_checker_lambda.status_checker.is_collection_success") @mock.patch("status_checker_lambda.status_checker.get_current_collection") @mock.patch("status_checker_lambda.status_checker.logger") def test_process_success_message_when_current_collection_is_not_successful( self, mock_logger, get_current_collection_mock, is_collection_success_mock, update_status_for_collection_mock, query_dynamodb_for_all_collections_mock, check_completion_status_mock, generate_monitoring_message_payload_mock, send_sns_message_mock, increment_counter_mock, ): dynamodb_client_mock = mock.MagicMock() sqs_client_mock = mock.MagicMock() sns_client_mock = mock.MagicMock() single_collection_result = { "CollectionName": RECEIVED_STATUS, } get_current_collection_mock.return_value = single_collection_result is_collection_success_mock.return_value = False result = status_checker.process_success_file_message( DDB_TABLE_NAME, dynamodb_client_mock, sns_client_mock, CORRELATION_ID_1, COLLECTION_1, SNAPSHOT_TYPE, EXPORT_DATE, SNS_TOPIC_ARN, TEST_FILE_NAME, ) is_collection_success_mock.assert_called_once_with( single_collection_result, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, mock.ANY, ) get_current_collection_mock.assert_called_once_with( dynamodb_client_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, TEST_FILE_NAME, ) update_status_for_collection_mock.assert_not_called() query_dynamodb_for_all_collections_mock.assert_not_called() check_completion_status_mock.assert_not_called() generate_monitoring_message_payload_mock.assert_not_called() send_sns_message_mock.assert_not_called() increment_counter_mock.assert_not_called() self.assertFalse(result) @mock.patch("status_checker_lambda.status_checker.logger") def test_sns_payload_generates_valid_payload(self, mock_logger): expected_payload = { "severity": "Critical", "notification_type": "Information", "slack_username": SLACK_USERNAME, "title_text": "Fulls - test status", "custom_elements": [ {"key": "Export date", "value": EXPORT_DATE}, {"key": "Correlation Id", "value": CORRELATION_ID_1}, ], } actual_payload = status_checker.generate_monitoring_message_payload( SNAPSHOT_TYPE, MESSAGE_STATUS, EXPORT_DATE, CORRELATION_ID_1, TEST_FILE_NAME, ) self.assertEqual(expected_payload, actual_payload) @mock.patch("status_checker_lambda.status_checker.logger") def test_sqs_payload_generates_valid_payload(self, mock_logger): expected_payload = { "shutdown_flag": "true", "correlation_id": CORRELATION_ID_1, "topic_name": COLLECTION_1, "snapshot_type": SNAPSHOT_TYPE, "reprocess_files": "false", "export_date": EXPORT_DATE, "send_success_indicator": "true", } actual_payload = status_checker.generate_export_state_message_payload( SNAPSHOT_TYPE, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, "true", "false", TEST_FILE_NAME, ) self.assertEqual(expected_payload, actual_payload) @mock.patch("status_checker_lambda.status_checker.logger") def test_sqs_payload_generates_valid_payload(self, mock_logger): expected_payload = { "shutdown_flag": "false", "correlation_id": CORRELATION_ID_1, "topic_name": COLLECTION_1, "snapshot_type": SNAPSHOT_TYPE, "reprocess_files": "true", "export_date": EXPORT_DATE, "send_success_indicator": "true", } actual_payload = status_checker.generate_export_state_message_payload( SNAPSHOT_TYPE, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, "false", "true", TEST_FILE_NAME, ) self.assertEqual(expected_payload, actual_payload) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_completion_status_returns_true_with_one_status_to_check( self, mock_logger, ): response_items = [ { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_1}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTED_STATUS}, } ] actual = status_checker.check_completion_status( response_items, [EXPORTED_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) self.assertEqual(True, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_completion_status_returns_true_with_multiple_collections_and_one_status( self, mock_logger, ): response_items = [ { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_1}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTED_STATUS}, }, { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_2}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTED_STATUS}, }, ] actual = status_checker.check_completion_status( response_items, [EXPORTED_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) self.assertEqual(True, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_completion_status_returns_true_with_multiple_statuses_to_check( self, mock_logger, ): response_items = [ { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_1}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTED_STATUS}, } ] actual = status_checker.check_completion_status( response_items, [EXPORTED_STATUS, SENT_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) self.assertEqual(True, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_completion_status_returns_true_with_multiple_collections_and_multiple_statuses( self, mock_logger, ): response_items = [ { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_1}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTED_STATUS}, }, { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_2}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": SENT_STATUS}, }, ] actual = status_checker.check_completion_status( response_items, [EXPORTED_STATUS, SENT_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) self.assertEqual(True, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_completion_status_returns_false_with_one_status_to_check( self, mock_logger, ): response_items = [ { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_1}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTING_STATUS}, } ] actual = status_checker.check_completion_status( response_items, [SENT_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) self.assertEqual(False, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_completion_status_returns_false_with_multiple_collections_and_one_status( self, mock_logger, ): response_items = [ { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_1}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTING_STATUS}, }, { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_2}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTING_STATUS}, }, ] actual = status_checker.check_completion_status( response_items, [SENT_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) self.assertEqual(False, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_completion_status_returns_false_with_multiple_statuses_to_check( self, mock_logger, ): response_items = [ { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_1}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTING_STATUS}, } ] actual = status_checker.check_completion_status( response_items, [EXPORTED_STATUS, SENT_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) self.assertEqual(False, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_completion_status_returns_false_with_multiple_collections_and_multiple_statuses( self, mock_logger, ): response_items = [ { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_1}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTING_STATUS}, }, { COLLECTION_NAME_DDB_FIELD_NAME: {"S": COLLECTION_2}, COLLECTION_STATUS_DDB_FIELD_NAME: {"S": EXPORTING_STATUS}, }, ] actual = status_checker.check_completion_status( response_items, [EXPORTED_STATUS, SENT_STATUS], SNAPSHOT_TYPE, COLLECTION_1, TEST_FILE_NAME, ) self.assertEqual(False, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_required_keys_missing_returns_false( self, mock_logger, ): event = { "correlation_id": "test", "collection_name": "test", "snapshot_type": "test", } self.assertFalse( status_checker.check_for_mandatory_keys( event, ) ) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_required_keys_null_returns_false( self, mock_logger, ): event = { "correlation_id": "test", "collection_name": "test", "snapshot_type": "test", "export_date": None, } self.assertFalse( status_checker.check_for_mandatory_keys( event, ) ) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_required_keys_empty_returns_false( self, mock_logger, ): event = { "correlation_id": "test", "collection_name": "test", "snapshot_type": "test", "export_date": "", } self.assertFalse( status_checker.check_for_mandatory_keys( event, ) ) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_required_keys_present_returns_true( self, mock_logger, ): event = { "correlation_id": "test", "collection_name": "test", "snapshot_type": "test", "export_date": "test", } self.assertTrue( status_checker.check_for_mandatory_keys( event, ) ) @mock.patch("status_checker_lambda.status_checker.logger") def test_check_required_keys_present_returns_true_when_using_booleans( self, mock_logger, ): event = { "correlation_id": "test", "collection_name": "test", "snapshot_type": "test", "export_date": True, } self.assertTrue( status_checker.check_for_mandatory_keys( event, ) ) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_received_returns_true_for_sent_status( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() event = { "CollectionStatus": {"S": SENT_STATUS}, "CollectionName": {"S": COLLECTION_1}, "FilesExported": {"N": 1}, "FilesReceived": {"N": 1}, "FilesSent": {"N": 1}, } actual = status_checker.is_collection_received( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_called_once_with( counter, CORRELATION_ID_1, None, EXPORT_DATE, SNAPSHOT_TYPE, ) self.assertTrue(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_received_returns_true_for_exported_status( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() event = { "CollectionStatus": {"S": EXPORTED_STATUS}, "CollectionName": {"S": COLLECTION_1}, "FilesExported": {"N": 1}, "FilesReceived": {"N": 1}, "FilesSent": {"N": 1}, } actual = status_checker.is_collection_received( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_called_once_with( counter, CORRELATION_ID_1, None, EXPORT_DATE, SNAPSHOT_TYPE, ) self.assertTrue(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_received_returns_false_when_more_files_exported( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() counter.inc = mock.MagicMock() event = { "CollectionStatus": {"S": SENT_STATUS}, "CollectionName": {"S": COLLECTION_1}, "FilesExported": {"N": 2}, "FilesReceived": {"N": 1}, "FilesSent": {"N": 1}, } actual = status_checker.is_collection_received( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_not_called() counter.inc.assert_not_called() self.assertFalse(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_received_returns_true_when_more_files_sent( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() event = { "CollectionStatus": {"S": EXPORTED_STATUS}, "CollectionName": {"S": COLLECTION_1}, "FilesExported": {"N": 1}, "FilesReceived": {"N": 1}, "FilesSent": {"N": 2}, } actual = status_checker.is_collection_received( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_called_once_with( counter, CORRELATION_ID_1, None, EXPORT_DATE, SNAPSHOT_TYPE, ) self.assertTrue(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_received_returns_false_when_more_files_received( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() counter.inc = mock.MagicMock() event = { "CollectionStatus": {"S": SENT_STATUS}, "CollectionName": {"S": COLLECTION_1}, "FilesExported": {"N": 1}, "FilesReceived": {"N": 2}, "FilesSent": {"N": 1}, } actual = status_checker.is_collection_received( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_not_called() counter.inc.assert_not_called() self.assertFalse(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_received_returns_false_when_more_files_exported_and_sent( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() counter.inc = mock.MagicMock() event = { "CollectionStatus": {"S": EXPORTED_STATUS}, "CollectionName": {"S": COLLECTION_1}, "FilesExported": {"N": 2}, "FilesReceived": {"N": 1}, "FilesSent": {"N": 2}, } actual = status_checker.is_collection_received( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_not_called() counter.inc.assert_not_called() self.assertFalse(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_received_returns_false_when_collection_status_not_sent_or_exported( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() counter.inc = mock.MagicMock() event = { "CollectionStatus": {"S": EXPORTING_STATUS}, "CollectionName": {"S": COLLECTION_1}, "FilesExported": {"N": 1}, "FilesReceived": {"N": 1}, "FilesSent": {"N": 1}, } actual = status_checker.is_collection_received( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_not_called() counter.inc.assert_not_called() self.assertFalse(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_success_returns_true_for_received_collection( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() event = { "CollectionStatus": {"S": RECEIVED_STATUS}, "CollectionName": {"S": COLLECTION_1}, } actual = status_checker.is_collection_success( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_called_once_with( counter, CORRELATION_ID_1, None, EXPORT_DATE, SNAPSHOT_TYPE, ) self.assertTrue(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_success_returns_true_for_sent_collection( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() event = { "CollectionStatus": {"S": SENT_STATUS}, "CollectionName": {"S": COLLECTION_1}, } actual = status_checker.is_collection_success( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_called_once_with( counter, CORRELATION_ID_1, None, EXPORT_DATE, SNAPSHOT_TYPE, ) self.assertTrue(actual) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_is_collection_success_returns_false( self, mock_logger, increment_counter_mock, ): counter = mock.MagicMock() counter.inc = mock.MagicMock() event = { "CollectionStatus": {"S": EXPORTED_STATUS}, "CollectionName": {"S": COLLECTION_1}, } actual = status_checker.is_collection_success( event, CORRELATION_ID_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) increment_counter_mock.assert_not_called() counter.inc.assert_not_called() self.assertFalse(actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_get_current_collection_sends_right_message( self, mock_logger, ): dynamodb_mock = mock.MagicMock() dynamodb_mock.get_item = mock.MagicMock() status_checker.get_current_collection( dynamodb_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, TEST_FILE_NAME, ) dynamodb_mock.get_item.assert_called_once_with( TableName=DDB_TABLE_NAME, Key={ "CorrelationId": {"S": CORRELATION_ID_1}, "CollectionName": {"S": COLLECTION_1}, }, ) @mock.patch("status_checker_lambda.status_checker.logger") def test_update_status_for_collection_sends_right_message( self, mock_logger, ): dynamodb_mock = mock.MagicMock() dynamodb_mock.update_item = mock.MagicMock() status_checker.update_status_for_collection( dynamodb_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, SENT_STATUS, TEST_FILE_NAME, ) dynamodb_mock.update_item.assert_called_once_with( TableName=DDB_TABLE_NAME, Key={ "CorrelationId": {"S": CORRELATION_ID_1}, "CollectionName": {"S": COLLECTION_1}, }, UpdateExpression="SET CollectionStatus = :val", ExpressionAttributeValues={":val": {"S": SENT_STATUS}}, ReturnValues="ALL_NEW", ) @mock.patch("status_checker_lambda.status_checker.increment_counter") @mock.patch("status_checker_lambda.status_checker.logger") def test_update_files_received_for_collection_sends_right_message( self, mock_logger, increment_counter_mock, ): dynamodb_mock = mock.MagicMock() dynamodb_mock.update_item = mock.MagicMock() counter = mock.MagicMock() status_checker.update_files_received_for_collection( dynamodb_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, SNAPSHOT_TYPE, TEST_FILE_NAME, counter, ) dynamodb_mock.update_item.assert_called_once_with( TableName=DDB_TABLE_NAME, Key={ "CorrelationId": {"S": CORRELATION_ID_1}, "CollectionName": {"S": COLLECTION_1}, }, UpdateExpression="SET FilesReceived = FilesReceived + :val", ExpressionAttributeValues={":val": {"N": "1"}}, ReturnValues="ALL_NEW", ) increment_counter_mock.assert_called_once_with( counter, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, SNAPSHOT_TYPE, value=1, ) @mock.patch("status_checker_lambda.status_checker.logger") def test_get_single_collection_sends_right_message( self, mock_logger, ): dynamodb_mock = mock.MagicMock() dynamodb_mock.get_item = mock.MagicMock() status_checker.get_single_collection_from_dynamodb( dynamodb_mock, DDB_TABLE_NAME, CORRELATION_ID_1, COLLECTION_1, TEST_FILE_NAME, ) dynamodb_mock.get_item.assert_called_once_with( TableName=DDB_TABLE_NAME, Key={ "CorrelationId": {"S": CORRELATION_ID_1}, "CollectionName": {"S": COLLECTION_1}, }, ConsistentRead=True, ) @mock.patch("status_checker_lambda.status_checker.logger") def test_query_all_collections_sends_right_message( self, mock_logger, ): dynamodb_mock = mock.MagicMock() dynamodb_mock.query = mock.MagicMock() status_checker.query_dynamodb_for_all_collections( dynamodb_mock, DDB_TABLE_NAME, CORRELATION_ID_1, TEST_FILE_NAME, ) dynamodb_mock.query.assert_called_once_with( TableName=DDB_TABLE_NAME, KeyConditionExpression=f"{CORRELATION_ID_DDB_FIELD_NAME} = :c", ExpressionAttributeValues={":c": {"S": CORRELATION_ID_1}}, ConsistentRead=True, ) @mock.patch("status_checker_lambda.status_checker.logger") def test_send_sqs_message_sends_right_message( self, mock_logger, ): sqs_mock = mock.MagicMock() sqs_mock.send_message = mock.MagicMock() payload = {"test_key": "test_value"} status_checker.send_sqs_message( sqs_mock, payload, SQS_QUEUE_URL, TEST_FILE_NAME, ) sqs_mock.send_message.assert_called_once_with( QueueUrl=SQS_QUEUE_URL, MessageBody='{"test_key": "test_value"}' ) @mock.patch("status_checker_lambda.status_checker.logger") def test_send_sns_message_sends_right_message( self, mock_logger, ): sns_mock = mock.MagicMock() sns_mock.publish = mock.MagicMock() payload = {"test_key": "test_value"} status_checker.send_sns_message( sns_mock, payload, SNS_TOPIC_ARN, TEST_FILE_NAME, ) sns_mock.publish.assert_called_once_with( TopicArn=SNS_TOPIC_ARN, Message='{"test_key": "test_value"}' ) @mock.patch("status_checker_lambda.status_checker.logger") def test_extract_messages_correctly_extracts( self, mock_logger, ): event = { "Records": [{"body": {"Test1": "test_value1", "Test2": "test_value2"}}] } expected = [{"Test1": "test_value1", "Test2": "test_value2"}] actual = status_checker.extract_messages( event, ) self.assertEqual(expected, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_extract_messages_correctly_extracts_multiple_messages( self, mock_logger, ): event = { "Records": [ {"body": {"Test1": "test_value1", "Test2": "test_value2"}}, {"body": {"Test3": "test_value3", "Test4": "test_value4"}}, ] } expected = [ {"Test1": "test_value1", "Test2": "test_value2"}, {"Test3": "test_value3", "Test4": "test_value4"}, ] actual = status_checker.extract_messages( event, ) self.assertEqual(expected, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_extract_messages_correctly_extracts_when_body_is_escaped_json( self, mock_logger, ): event = { "Records": [ {"body": json.dumps({"Test1": "test_value1", "Test2": "test_value2"})} ] } expected = [{"Test1": "test_value1", "Test2": "test_value2"}] actual = status_checker.extract_messages( event, ) self.assertEqual(expected, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_extract_messages_correctly_extracts_when_body_is_escaped_json_multiple_messages( self, mock_logger, ): event = { "Records": [ {"body": json.dumps({"Test1": "test_value1", "Test2": "test_value2"})}, {"body": json.dumps({"Test3": "test_value3", "Test4": "test_value4"})}, ] } expected = [ {"Test1": "test_value1", "Test2": "test_value2"}, {"Test3": "test_value3", "Test4": "test_value4"}, ] actual = status_checker.extract_messages( event, ) self.assertEqual(expected, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_extract_messages_does_not_extract_without_records_array( self, mock_logger, ): event = {"Records": "test_value"} expected = [{"Records": "test_value"}] actual = status_checker.extract_messages( event, ) self.assertEqual(expected, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_extract_messages_does_not_extract_without_records_object( self, mock_logger, ): event = {"Tests": "test_value"} expected = [{"Tests": "test_value"}] actual = status_checker.extract_messages( event, ) self.assertEqual(expected, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_extract_messages_does_not_extract_with_empty_records_array( self, mock_logger, ): event = {"Records": []} expected = [{"Records": []}] actual = status_checker.extract_messages( event, ) self.assertEqual(expected, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_extract_messages_does_not_extract_without_body_object( self, mock_logger, ): event = {"Records": [{"Test": {}}]} expected = [{"Records": [{"Test": {}}]}] actual = status_checker.extract_messages( event, ) self.assertEqual(expected, actual) @mock.patch("status_checker_lambda.status_checker.logger") def test_increment_counter_mock_adds_correct_labels( self, mock_logger, ): counter = mock.MagicMock() counter.labels = mock.MagicMock() status_checker.increment_counter( counter, CORRELATION_ID_1, COLLECTION_1, EXPORT_DATE, SNAPSHOT_TYPE, ) counter.labels.assert_called_once_with( correlation_id=CORRELATION_ID_1, collection_name=COLLECTION_1, export_date=EXPORT_DATE, snapshot_type=SNAPSHOT_TYPE, ) @mock.patch("status_checker_lambda.status_checker.logger") def test_increment_counter_mock_adds_correct_labels_with_no_collection_name( self, mock_logger, ): counter = mock.MagicMock() counter.labels = mock.MagicMock() status_checker.increment_counter( counter, CORRELATION_ID_1, None, EXPORT_DATE, SNAPSHOT_TYPE, ) counter.labels.assert_called_once_with( correlation_id=CORRELATION_ID_1, export_date=EXPORT_DATE, snapshot_type=SNAPSHOT_TYPE, ) @mock.patch("status_checker_lambda.status_checker.prometheus_client") @mock.patch("status_checker_lambda.status_checker.generate_metrics_grouping_key") @mock.patch("status_checker_lambda.status_checker.logger") def test_push_metrics_sends_the_metrics( self, mock_logger, generate_metrics_grouping_key_mock, prometheus_client_mock, ): registry = mock.MagicMock() generate_metrics_grouping_key_mock.return_value = GROUPING_KEY status_checker.push_metrics( registry, PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, METRICS_JOB_NAME, CORRELATION_ID_1, ) expected_url = f"{PUSHGATEWAY_HOSTNAME}:{PUSHGATEWAY_PORT}" generate_metrics_grouping_key_mock.assert_called_once_with( CORRELATION_ID_1, ) prometheus_client_mock.pushadd_to_gateway.assert_called_once_with( gateway=expected_url, job=METRICS_JOB_NAME, grouping_key=GROUPING_KEY, registry=registry, ) @mock.patch("status_checker_lambda.status_checker.prometheus_client") @mock.patch("status_checker_lambda.status_checker.generate_metrics_grouping_key") @mock.patch("status_checker_lambda.status_checker.logger") def test_delete_metrics_sends_the_metrics( self, mock_logger, generate_metrics_grouping_key_mock, prometheus_client_mock, ): generate_metrics_grouping_key_mock.return_value = GROUPING_KEY status_checker.delete_metrics( PUSHGATEWAY_HOSTNAME, PUSHGATEWAY_PORT, METRICS_JOB_NAME, CORRELATION_ID_1, 1, ) expected_url = f"{PUSHGATEWAY_HOSTNAME}:{PUSHGATEWAY_PORT}" generate_metrics_grouping_key_mock.assert_called_once_with( CORRELATION_ID_1, ) prometheus_client_mock.delete_from_gateway.assert_called_once_with( gateway=expected_url, job=METRICS_JOB_NAME, grouping_key=GROUPING_KEY, ) @mock.patch("status_checker_lambda.status_checker.logger") def test_generate_metrics_grouping_key( self, mock_logger, ): expected = { "component": "snapshot_sender_status_checker", "correlation_id": CORRELATION_ID_1, } actual = status_checker.generate_metrics_grouping_key( CORRELATION_ID_1, ) self.assertEqual(expected, actual) if __name__ == "__main__": unittest.main()
31.795296
123
0.627544
8,871
86,515
5.568594
0.028069
0.110529
0.068078
0.078382
0.936476
0.92763
0.917954
0.910545
0.903905
0.902528
0
0.005429
0.301716
86,515
2,720
124
31.806985
0.812272
0.000243
0
0.787323
0
0
0.1517
0.11283
0
0
0
0
0.071309
1
0.026689
false
0
0.003336
0
0.030442
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b20d2c5c26f8b269cdfcf4c6af52bb4b01892e2f
12,106
py
Python
tests/test_misc.py
mmascher/osg-configure
0a8490f87ff1b3340796f94ed657b62b19602347
[ "Apache-2.0" ]
null
null
null
tests/test_misc.py
mmascher/osg-configure
0a8490f87ff1b3340796f94ed657b62b19602347
[ "Apache-2.0" ]
null
null
null
tests/test_misc.py
mmascher/osg-configure
0a8490f87ff1b3340796f94ed657b62b19602347
[ "Apache-2.0" ]
null
null
null
"""Unit tests to test misc configuration""" # pylint: disable=W0703 # pylint: disable=R0904 import os import sys import unittest import ConfigParser import logging import tempfile import subprocess # setup system library path pathname = os.path.realpath('../') sys.path.insert(0, pathname) from osg_configure.modules import utilities from osg_configure.modules import exceptions from osg_configure.configure_modules import misc from osg_configure.modules.utilities import get_test_config # NullHandler is only available in Python 2.7+ try: NullHandler = logging.NullHandler except AttributeError: class NullHandler(logging.Handler): def emit(self, record): pass global_logger = logging.getLogger(__name__) global_logger.addHandler(NullHandler()) class TestMisc(unittest.TestCase): """ Unit test class to test MiscConfiguration class """ def testParsing1(self): """ Test misc parsing """ config_file = get_test_config("misc/misc1.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) options = settings.options variables = {'gums_host': 'my.gums.org', 'authorization_method': 'xacml'} for var in variables: self.assertTrue(options.has_key(var), "Option %s missing" % var) self.assertEqual(options[var].value, variables[var], "Wrong value obtained for %s, got %s but " \ "expected %s" % (var, options[var].value, variables[var])) def testParsing2(self): """ Test misc parsing with negative values """ config_file = get_test_config("misc/misc2.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) options = settings.options variables = {'gums_host': 'my.gums.org', 'authorization_method': 'xacml'} for var in variables: self.assertTrue(options.has_key(var), "Option %s missing" % var) self.assertEqual(options[var].value, variables[var], "Wrong value obtained for %s, got %s but " \ "expected %s" % (var, options[var].value, variables[var])) def testParsingAuthentication(self): """ Test misc parsing with negative values """ config_file = get_test_config("misc/misc_xacml.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) self.assertTrue(settings.options.has_key('authorization_method'), "Attribute authorization_method missing") self.assertEqual(settings.options['authorization_method'].value, 'xacml', "Wrong value obtained for %s, got %s but " \ "expected %s" % ('authorization_method', settings.options['authorization_method'].value, 'xacml')) config_file = get_test_config("misc/misc_gridmap.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) self.assertTrue(settings.options.has_key('authorization_method'), "Attribute authorization_method missing") self.assertEqual(settings.options['authorization_method'].value, 'gridmap', "Wrong value obtained for %s, got %s but " \ "expected %s" % ('authorization_method', settings.options['authorization_method'].value, 'gridmap')) config_file = get_test_config("misc/misc_local_gridmap.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) self.assertTrue(settings.options.has_key('authorization_method'), "Attribute authorization_method missing") self.assertEqual(settings.options['authorization_method'].value, 'local-gridmap', "Wrong value obtained for %s, got %s but " \ "expected %s" % ('authorization_method', settings.options['authorization_method'].value, 'local-gridmap')) def testMissingAttribute(self): """ Test the parsing when attributes are missing, should get exceptions """ mandatory = ['gums_host'] for option in mandatory: config_file = get_test_config("misc/misc1.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) configuration.remove_option('Misc Services', option) settings = misc.MiscConfiguration(logger=global_logger) settings.parse_configuration(configuration) self.assertTrue(not settings.check_attributes({})) def testXacmlMissingGums(self): """ Test the check_attributes function when xacml is specified but the gums host isn't """ config_file = get_test_config("misc/misc_xacml_missing_gums.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) settings.parse_configuration(configuration) self.assertTrue(exceptions.ConfigureError, settings.check_attributes({})) def testXacmlBadGums(self): """ Test the check_attributes function when xacml is specified but the gums host isn't valid """ config_file = get_test_config("misc/misc_xacml_bad_gums.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) attributes = settings.get_attributes() self.assertFalse(settings.check_attributes(attributes), "Did not notice bad gums host") def testValidSettings(self): """ Test the check_attributes function to see if it oks good attributes """ config_file = get_test_config("misc/valid_settings.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) attributes = settings.get_attributes() self.assertTrue(settings.check_attributes(attributes), "Correct locations incorrectly flagged as missing") def testValidSettings2(self): """ Test the check_attributes function to see if it oks good attributes """ config_file = get_test_config("misc/valid_settings2.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) attributes = settings.get_attributes() self.assertTrue(settings.check_attributes(attributes), "Correct locations incorrectly flagged as invalid") def testInvalidSettings(self): """ Test the check_attributes function to see if it flags bad attributes """ config_file = get_test_config("misc/invalid_settings1.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) attributes = settings.get_attributes() self.assertFalse(settings.check_attributes(attributes), "Bad config incorrectly flagged as okay") def testServiceList(self): """ Test to make sure right services get returned """ config_file = get_test_config("misc/misc_xacml.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) services = settings.enabled_services() if utilities.rpm_installed('fetch-crl'): expected_services = set(['fetch-crl-cron', 'fetch-crl-boot', 'gums-client-cron']) else: expected_services = set(['gums-client-cron']) self.assertEqual(services, expected_services, "List of enabled services incorrect, " + "got %s but expected %s" % (services, expected_services)) config_file = get_test_config("misc/misc_gridmap.ini") configuration = ConfigParser.SafeConfigParser() configuration.read(config_file) settings = misc.MiscConfiguration(logger=global_logger) try: settings.parse_configuration(configuration) except Exception as e: self.fail("Received exception while parsing configuration: %s" % e) services = settings.enabled_services() if utilities.rpm_installed('fetch-crl'): expected_services = set(['fetch-crl-cron', 'fetch-crl-boot', 'edg-mkgridmap']) else: expected_services = set(['edg-mkgridmap']) self.assertEqual(services, expected_services, "List of enabled services incorrect, " + "got %s but expected %s" % (services, expected_services)) if __name__ == '__main__': console = logging.StreamHandler() console.setLevel(logging.ERROR) global_logger.addHandler(console) unittest.main()
38.431746
89
0.614406
1,146
12,106
6.343805
0.15096
0.035763
0.025034
0.030399
0.804127
0.796149
0.79381
0.782118
0.772215
0.772215
0
0.002242
0.300017
12,106
314
90
38.55414
0.855676
0.065092
0
0.709677
0
0
0.186278
0.018284
0
0
0
0
0.082949
1
0.050691
false
0.004608
0.050691
0
0.110599
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b74b13f93925f3292fdccc1dc8c53fa0daf60402
9,398
py
Python
Generator.py
ly4096x/Flexible_Resume
3002862ddab2dd4df41568dbb0ae6ba19ed6b62f
[ "MIT" ]
1
2020-08-19T07:23:53.000Z
2020-08-19T07:23:53.000Z
Generator.py
ly4096x/Flexible_Resume
3002862ddab2dd4df41568dbb0ae6ba19ed6b62f
[ "MIT" ]
null
null
null
Generator.py
ly4096x/Flexible_Resume
3002862ddab2dd4df41568dbb0ae6ba19ed6b62f
[ "MIT" ]
null
null
null
import jinja2, os, sys, json from datetime import datetime def generate_defaults(template, contact_info, banner_msg, output_dir, build=False): version = 'Software' preset = 'OnePage' date = datetime.now().strftime('%Y%m%d') out = template.render( VERSION = version, PRESET = preset, DATE = date, ShowProjectFootNote = True, MyEmail = contact_info['email'], MyPhone = contact_info['phone'], MyAddress = contact_info['address'], ShowPersonalContact = True, ShowUrls = True, BannerMsg = banner_msg, ShowTechnicalRange = False, ShowEducationDetails = True, ShowWorkExperienceDetails = 1, ShowPublications = True, ShowSkillsAndAbilities = True, ShowHonorsAndAwards = False, ShowHonorsAndAwardsDetails = 2, ShowProjects = False, ShowProjectsDetails = 1, CropDueToPageLimit = False, ) with open(f'{output_dir}/{version}_{preset}.tex', 'w') as f: f.write(out) if build: for i in range(2): os.system(f'pdflatex -output-directory={output_dir} -jobname=\'Resume_{version}_{preset}\' {output_dir}/{version}_{preset}.tex') version = 'Software' preset = 'TwoPages' out = template.render( VERSION = version, PRESET = preset, DATE = date, ShowProjectFootNote = True, MyEmail = contact_info['email'], MyPhone = contact_info['phone'], MyAddress = contact_info['address'], ShowPersonalContact = True, ShowUrls = True, BannerMsg = banner_msg, ShowTechnicalRange = False, ShowEducationDetails = True, ShowWorkExperienceDetails = 2, ShowPublications = True, ShowSkillsAndAbilities = True, ShowHonorsAndAwards = True, ShowHonorsAndAwardsDetails = 2, ShowProjects = True, ShowProjectsDetails = 1, CropDueToPageLimit = False, ) with open(f'{output_dir}/{version}_{preset}.tex', 'w') as f: f.write(out) if build: for i in range(2): os.system(f'pdflatex -output-directory={output_dir} -jobname=\'Resume_{version}_{preset}\' {output_dir}/{version}_{preset}.tex') version = 'SoftAndHardware' preset = 'OnePage' out = template.render( VERSION = version, PRESET = preset, DATE = date, ShowProjectFootNote = True, MyEmail = contact_info['email'], MyPhone = contact_info['phone'], MyAddress = contact_info['address'], ShowPersonalContact = True, ShowUrls = True, BannerMsg = banner_msg, ShowTechnicalRange = False, ShowEducationDetails = False, ShowWorkExperienceDetails = 1, ShowPublications = True, ShowSkillsAndAbilities = True, ShowHonorsAndAwards = False, ShowHonorsAndAwardsDetails = 2, ShowProjects = False, ShowProjectsDetails = 1, CropDueToPageLimit = False, ) with open(f'{output_dir}/{version}_{preset}.tex', 'w') as f: f.write(out) if build: for i in range(2): os.system(f'pdflatex -output-directory={output_dir} -jobname=\'Resume_{version}_{preset}\' {output_dir}/{version}_{preset}.tex') version = 'SoftAndHardware' preset = 'TwoPages' out = template.render( VERSION = version, PRESET = preset, DATE = date, ShowProjectFootNote = True, MyEmail = contact_info['email'], MyPhone = contact_info['phone'], MyAddress = contact_info['address'], ShowPersonalContact = True, ShowUrls = True, BannerMsg = '', # to prevent page overflow ShowTechnicalRange = False, ShowEducationDetails = True, ShowWorkExperienceDetails = 2, ShowPublications = True, ShowSkillsAndAbilities = True, ShowHonorsAndAwards = True, ShowHonorsAndAwardsDetails = 2, ShowProjects = True, ShowProjectsDetails = 1, CropDueToPageLimit = True, ) with open(f'{output_dir}/{version}_{preset}.tex', 'w') as f: f.write(out) if build: for i in range(2): os.system(f'pdflatex -output-directory={output_dir} -jobname=\'Resume_{version}_{preset}\' {output_dir}/{version}_{preset}.tex') version = 'SoftAndHardware' preset = 'NotForWork' out = template.render( VERSION = version, PRESET = preset, DATE = date, ShowProjectFootNote = True, MyEmail = contact_info['email'], MyPhone = contact_info['phone'], MyAddress = contact_info['address'], ShowPersonalContact = False, ShowUrls = True, BannerMsg = banner_msg, ShowTechnicalRange = False, ShowEducationDetails = True, ShowWorkExperienceDetails = 2, ShowPublications = True, ShowSkillsAndAbilities = True, ShowHonorsAndAwards = True, ShowHonorsAndAwardsDetails = 2, ShowProjects = True, ShowProjectsDetails = 1, CropDueToPageLimit = False, ) with open(f'{output_dir}/{version}_{preset}.tex', 'w') as f: f.write(out) if build: for i in range(2): os.system(f'pdflatex -output-directory={output_dir} -jobname=\'Resume_{version}_{preset}\' {output_dir}/{version}_{preset}.tex') ################################################################## if __name__ == '__main__': latex_jinja_env = jinja2.Environment( block_start_string = '\BLOCK{', block_end_string = '}', variable_start_string = '\VAR{', variable_end_string = '}', comment_start_string = '\#{', comment_end_string = '}', line_statement_prefix = '%=', line_comment_prefix = '%#', trim_blocks = True, autoescape = False, undefined = jinja2.StrictUndefined, loader = jinja2.FileSystemLoader(os.path.abspath('.')) ) template = latex_jinja_env.get_template('ResumeTemplate.tex') if len(sys.argv) >= 2: with open(sys.argv[1]) as f: contact_info = json.load(f) build = (len(sys.argv) >= 3) banner_msg = '' if len(sys.argv) >= 4: banner_msg = sys.argv[3] output_dir = f"output/{contact_info['email']}-{datetime.now().strftime('%Y%m%d')}" if not os.path.exists(output_dir): os.makedirs(output_dir) if False: # custom format generation version = 'SoftAndHardware' preset = 'NotForWork' date = datetime.now().strftime('%Y%m%d') out = template.render( VERSION = version, PRESET = preset, DATE = date, ShowProjectFootNote = True, MyEmail = contact_info['email'], MyPhone = contact_info['phone'], MyAddress = contact_info['address'], ShowPersonalContact = False, ShowUrls = True, BannerMsg = banner_msg, ShowTechnicalRange = False, ShowEducationDetails = True, ShowWorkExperienceDetails = 2, ShowPublications = True, ShowSkillsAndAbilities = True, ShowHonorsAndAwards = False, ShowHonorsAndAwardsDetails = 2, ShowProjects = False, ShowProjectsDetails = 2, CropDueToPageLimit = False, ) with open(f'{output_dir}/{version}_{preset}.tex', 'w') as f: f.write(out) if build: for i in range(2): os.system(f'pdflatex -output-directory={output_dir} -jobname=\'Resume_{version}_{preset}\' {output_dir}/{version}_{preset}.tex') else: generate_defaults(template, contact_info, banner_msg, output_dir, build=build) # cleanup _, _, fns = next(os.walk(output_dir)) for fn in fns: ext = fn.split('.')[-1] if ext != 'pdf': print(f'Removing "{output_dir}/{fn}"') os.remove(f'{output_dir}/{fn}')
40.683983
144
0.506278
750
9,398
6.190667
0.170667
0.050398
0.041353
0.05686
0.820159
0.820159
0.815421
0.815421
0.815421
0.815421
0
0.005918
0.3887
9,398
230
145
40.86087
0.802263
0.006065
0
0.775701
1
0
0.122533
0.071837
0
0
0
0
0
1
0.004673
false
0
0.009346
0
0.014019
0.004673
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
b76987c996a690d4077c810fe6b4f2fcc8391f49
128
py
Python
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_0/_pkg0_0_1_0_0/_mod0_0_1_0_0_2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_0/_pkg0_0_1_0_0/_mod0_0_1_0_0_2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_0/_pkg0_0_1_0_0/_mod0_0_1_0_0_2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
name0_0_1_0_0_2_0 = None name0_0_1_0_0_2_1 = None name0_0_1_0_0_2_2 = None name0_0_1_0_0_2_3 = None name0_0_1_0_0_2_4 = None
14.222222
24
0.820313
40
128
1.875
0.175
0.4
0.466667
0.533333
0.88
0.88
0.746667
0
0
0
0
0.318182
0.140625
128
9
25
14.222222
0.363636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
1
1
1
1
1
1
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
b775d0a4a50826403eb5412e5570520ff4f9d235
49
py
Python
gmprocess/version.py
mhearne-usgs/groundmotion-processing
eb4c85159d4cc7e57ef19329abf92a4cd97ffdd7
[ "Unlicense" ]
null
null
null
gmprocess/version.py
mhearne-usgs/groundmotion-processing
eb4c85159d4cc7e57ef19329abf92a4cd97ffdd7
[ "Unlicense" ]
null
null
null
gmprocess/version.py
mhearne-usgs/groundmotion-processing
eb4c85159d4cc7e57ef19329abf92a4cd97ffdd7
[ "Unlicense" ]
null
null
null
__version__ = "1.1.11.dev203+gf35d074a.d20220105"
49
49
0.795918
7
49
5
0.857143
0
0
0
0
0
0
0
0
0
0
0.425532
0.040816
49
1
49
49
0.319149
0
0
0
0
0
0.66
0.66
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b7a4b7d6e883767cdf76330a80d42e83a1e3857c
66
py
Python
src/pyden/bin/activate_default.py
emagine-saas/hll-pyden
f69766e2c417fa7cc641727e04785845e4c24923
[ "BSD-3-Clause" ]
null
null
null
src/pyden/bin/activate_default.py
emagine-saas/hll-pyden
f69766e2c417fa7cc641727e04785845e4c24923
[ "BSD-3-Clause" ]
null
null
null
src/pyden/bin/activate_default.py
emagine-saas/hll-pyden
f69766e2c417fa7cc641727e04785845e4c24923
[ "BSD-3-Clause" ]
null
null
null
from activate import activate_venv_or_die activate_venv_or_die()
16.5
41
0.878788
11
66
4.727273
0.545455
0.461538
0.538462
0.653846
0
0
0
0
0
0
0
0
0.090909
66
3
42
22
0.866667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
7
b7ed1ff8bebc3154b84f0fa9ef4250565b3f21d4
1,353
py
Python
app/controller/projectsController.py
kirei-open/redmine-api-grabber
2bd020c7bdc7b2abdb7839eb7eb5466de84a48e7
[ "MIT" ]
null
null
null
app/controller/projectsController.py
kirei-open/redmine-api-grabber
2bd020c7bdc7b2abdb7839eb7eb5466de84a48e7
[ "MIT" ]
null
null
null
app/controller/projectsController.py
kirei-open/redmine-api-grabber
2bd020c7bdc7b2abdb7839eb7eb5466de84a48e7
[ "MIT" ]
null
null
null
from app.services import redmine , redisCache async def get_all_projects(cache, x_token): key = f"redminegetallproject" in_cache = await redisCache.get_redis_cache( cache, x_token, key) if in_cache is not None: return in_cache data = redmine.get_all_projects() await redisCache.set_redis_cache(data, cache, x_token, key) return data async def get_all_project_summary(cache, x_token): key = f"redminegetsummary" in_cache = await redisCache.get_redis_cache( cache, x_token, key) if in_cache is not None: return in_cache data = redmine.get_all_project_summary() await redisCache.set_redis_cache(data, cache, x_token, key) return data async def get_all_project_detail(cache, x_token): key = f"getprojectdetail" in_cache = await redisCache.get_redis_cache( cache, x_token, key) if in_cache is not None: return in_cache data = redmine.get_all_project_detail() await redisCache.set_redis_cache(data, cache, x_token, key) return data async def get_project_by_id(id, cache, x_token): key = f"getprojectid_{id}" in_cache = await redisCache.get_redis_cache( cache, x_token, key) if in_cache is not None: return in_cache data = redmine.get_project_by_id(id) await redisCache.set_redis_cache(data, cache, x_token, key) return data
34.692308
69
0.728751
207
1,353
4.458937
0.169082
0.078007
0.143012
0.182015
0.825569
0.732394
0.732394
0.732394
0.732394
0.732394
0
0
0.1966
1,353
39
70
34.692308
0.849126
0
0
0.606061
0
0
0.051699
0
0
0
0
0
0
1
0
false
0
0.030303
0
0.272727
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4d4cc039e028bcd318ad8d0b225ffd3ca032aec3
78,244
py
Python
storage/fase2/team02/storage/b/Interfaz.py
Alejandro5852/tytus
a8952b9c38377c6d0171eaa322b04f0adb6cc399
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
storage/fase2/team02/storage/b/Interfaz.py
Alejandro5852/tytus
a8952b9c38377c6d0171eaa322b04f0adb6cc399
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
storage/fase2/team02/storage/b/Interfaz.py
Alejandro5852/tytus
a8952b9c38377c6d0171eaa322b04f0adb6cc399
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
# File: Interface # License: Released under MIT License # Notice: Copyright (c) 2020 TytusDB Team from tkinter import * from tkinter import ttk from tkinter import messagebox from PIL import Image, ImageTk from team17 import BMode as B def runInterface(): r = PP() class PP: #------------------------------ PANTALLA INICIAL----------------------------------# def __init__(self): self.PP = Tk() self.PP.resizable(True,False) self.PP.title("Tytus 2020") self.PP.geometry("1000x500") self.PP.configure(bg="#102027") self.isPantalla1 = 0 self.isPantallaBases = 0 self.isPantFunciones = 0 self.isAcerca = False self.dell = False self.pantalla1() def pantalla1(self): if self.isPantalla1 == 1: self.ndb.destroy() elif self.isPantalla1 == 2: self.Funciones.destroy() if self.isAcerca: self.Acerca.destroy() self.isAcerca = False self.isPantalla1 = 0 self.FrameInicial = Frame(height=500, width=800) self.FrameInicial.config(bg="#37474f") self.FrameInicial.pack(padx=25, pady=25) self.image = PhotoImage(file='team17/docs/img/usac.png') Label(self.FrameInicial,image=self.image, bg="#37474f").place(x=230,y=70) Label(self.FrameInicial,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Button(self.FrameInicial, text="Reportes", command=self.Reportes,font=("Times New Roman",15),fg="#000000", bg="#ff6f00",width=10).place(x=330,y=125) Button(self.FrameInicial, text="Funciones", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#000000",bg="#ff6f00",width=10).place(x=330,y=200) Button(self.FrameInicial, text="Acerca De", command=self.AcercaDe,font=("Times New Roman",15),fg="#000000",bg="#ff6f00",width=10).place(x=330,y=275) Button(self.FrameInicial, text="Salir", command=self.Salir,font=("Times New Roman",15),fg="#ffffff",bg="#ff3d00",width=5).place(x=10,y=400) Label(self.FrameInicial,text="USAC",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=315,y=375) self.FrameInicial.mainloop() #---------------------------- REPORTES ---------------------------------------------# def Reportes(self): if self.isPantFunciones ==0: self.FrameInicial.destroy() self.isPantFunciones = 0 self.isPantalla1 = 2 self.Funciones = Frame(height=500, width=800) self.Funciones.config(bg="#37474f") self.Funciones.pack(padx=25, pady=25) Label(self.Funciones,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.Funciones,text="Reportes",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() Label(self.Funciones,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) Button(self.Funciones, text="Atras", command=self.pantalla1,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=150) Button(self.Funciones, text="Aceptar", command=self._Reportes,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) self.com = ttk.Combobox(self.Funciones,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _Reportes(self): if self.com.get() != "Seleccionar": self.con = ttk.Combobox(self.Funciones,state="readonly",font=("Times New Roman",15)) Label(self.Funciones,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Button(self.Funciones, text="Aceptar", command=self.__Reportes,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __Reportes(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar": B.serializar.rollback(str(self.com.get())+"-"+str(self.con.get())+"-B").graficar() self.nodos = ttk.Combobox(self.Funciones,state="readonly",font=("Times New Roman",15)) self.nodos.place(x=240,y=250) aux = ["Seleccionar"] self.o = B.serializar.rollback(str(self.com.get())+"-"+str(self.con.get())+"-B").Keys() for i in self.o: aux.append(i) self.nodos["values"] = aux self.nodos.current(0) Label(self.Funciones,text="Llaves: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=250) Button(self.Funciones, text="Aceptar", command=self.Nodo,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) self.win = Toplevel() self.win.geometry("600x600") self.win.configure(bg="#102027") self.image = Image.open('salida.png') self.copy = self.image.copy() self.foto = ImageTk.PhotoImage(self.image) self.label = ttk.Label(self.win, image = self.foto) self.label.bind('<Configure>', self.resize_image) self.label.pack(fill=BOTH, expand = YES) def Nodo(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar" and self.nodos != "Seleccionar": c = B.extractRow(str(self.com.get()), str(self.con.get()),self.nodos.get().split("_")) if c != []: z = "" for i in c: z += str(i) + ", " z = z[:-2] Label(self.Funciones,text= z ,font=("Times New Roman",20),fg="black", bg="white",width=50).place(x=25,y=350) else: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") else: messagebox.showinfo(message="Algo anda mal\n", title="Error") def AccederPestanaFunciones(self): if self.isPantFunciones == 0: self.FrameInicial.destroy() else: self.ndb.destroy() self.isPantFunciones = 0 self.isPantalla1 = 2 self.Funciones = Frame(height=500, width=800) self.Funciones.config(bg="#37474f") self.Funciones.pack(padx=15, pady=15) Label(self.Funciones,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.Funciones,text="Funciones",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) #BASES DE DATOS Label(self.Funciones,text="Bases de Datos",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=150,y=100) Button(self.Funciones, text="Nueva\n BD",font=("Times New Roman",10),command = self.NewDB,fg="#102027", bg="#ff6f00",width=10).place(x=70,y=150) Button(self.Funciones, text="Mostrar\n BD",font=("Times New Roman",10),command = self.ShowDB,fg="#102027",bg="#ff6f00",width=10).place(x=170,y=150) Button(self.Funciones, text="Cambiar\n Nombre",font=("Times New Roman",10),command = self.ReDB,fg="#102027",bg="#ff6f00",width=10).place(x=270,y=150) Button(self.Funciones, text="Eliminar\n BD",font=("Times New Roman",10),command = self.DelBD,fg="#102027", bg="#ff6f00",width=10).place(x=170,y=200) #TABLAS Label(self.Funciones,text="Tablas",font=("Times New Roman",15),fg="#ffffff", bg="#37474f",width=10).place(x=550,y=100) Button(self.Funciones, text="Nueva \nTabla",font=("Times New Roman",10),command = self.NewTable,fg="#102027",bg="#ff6f00",width=10).place(x=470,y=150) Button(self.Funciones, text="Mostrar \nTablas",font=("Times New Roman",10),command = self.ShowTB,fg="#102027",bg="#ff6f00",width=10).place(x=570,y=150) Button(self.Funciones, text="Mostrar \nDatos",font=("Times New Roman",10),command = self.ShowData,fg="#102027",bg="#ff6f00",width=10).place(x=670,y=150) Button(self.Funciones, text="Rango\nTabla",font=("Times New Roman",10),command = self.RangleTB,fg="#102027",bg="#ff6f00",width=10).place(x=470,y=200) Button(self.Funciones, text="Agregar \nLlave Primaria",font=("Times New Roman",10),command = self.AddPK,fg="#102027",bg="#ff6f00",width=10).place(x=570,y=200) Button(self.Funciones, text="Eliminar \nLlave Primaria",font=("Times New Roman",10),command = self.DropPK,fg="#102027",bg="#ff6f00",width=10).place(x=670,y=200) Button(self.Funciones, text="Cambiar \nNombre",font=("Times New Roman",10),command = self.AlterTB,fg="#102027",bg="#ff6f00",width=10).place(x=470,y=250) Button(self.Funciones, text="Agregar \nColumna",font=("Times New Roman",10),command = self.AddCL,fg="#102027",bg="#ff6f00",width=10).place(x=570,y=250) Button(self.Funciones, text="Eliminar \nColumna",font=("Times New Roman",10),command = self.DropCL,fg="#102027",bg="#ff6f00",width=10).place(x=670,y=250) Button(self.Funciones, text="Eliminar \nTabla",font=("Times New Roman",10),command = self.DropTB,fg="#102027",bg="#ff6f00",width=10).place(x=570,y=300) #TUPLAS Label(self.Funciones,text="Tuplas",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=180,y=250) Button(self.Funciones, text="Insertar\n Tupla",font=("Times New Roman",10),command = self.insertTP,fg="#102027", bg="#ff6f00",width=10).place(x=70,y=300) Button(self.Funciones, text="Cargar\n CSV",font=("Times New Roman",10),command = self.CargarCSV,fg="#102027",bg="#ff6f00",width=10).place(x=170,y=300) Button(self.Funciones, text="Extraer\n Tupla",font=("Times New Roman",10),command =self.ExtRow,fg="#102027",bg="#ff6f00",width=10).place(x=270,y=300) Button(self.Funciones, text="Update\n Tupla",font=("Times New Roman",10),command =self.Up,fg="#102027", bg="#ff6f00",width=10).place(x=70,y=350) Button(self.Funciones, text="Eliminar\n Tupla",font=("Times New Roman",10),command =self.DeleteTP,fg="#102027", bg="#ff6f00",width=10).place(x=170,y=350) Button(self.Funciones, text="Truncate\n Tabla",font=("Times New Roman",10),command =self.TruncateTB,fg="#102027", bg="#ff6f00",width=10).place(x=270,y=350) #REGRESAR A PANTALLA INICIAL Button(self.Funciones, text="Atras", command=self.pantalla1,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=350,y=425) #------------------------FUNCIONES DE BASES DE DATOS -----------------------# def NewDB(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Crear Base de Datos",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() Label(self.ndb,text="Nombre Base de Datos: ",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=180,y=200) Entry(self.ndb,textvariable=self.name,font=("Times New Roman",15),fg="black").place(x=400,y=200) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=250,y=300) Button(self.ndb, text="Aceptar", command=self._NewBD,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=400,y=300) def _NewBD(self): if str(self.name.get()) != "": a = B.createDatabase(str(self.name.get())) if a == 0: messagebox.showinfo(message="Base creada con exito\n", title="BD") elif a==1: messagebox.showinfo(message="Ha ocurrido un error\n", title="BD") elif a==2: messagebox.showinfo(message="La base de datos\n ya existe", title="BD") else: messagebox.showinfo(message="No se ha ingresado\nningun nombre", title="Nombre no ingresado") def ShowDB(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Mostrar Base de Datos",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=100) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=250,y=400) Button(self.ndb, text="Aceptar", command=self._NewBD,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=400,y=400) a = B.showDatabases() c = 0 d = 0 e = 1 for i in a: Label(self.ndb,text=str(e)+") "+i,font=("Times New Roman",15),fg="white", bg="#37474f").place(x=100+d,y=150+c) c += 40 e += 1 if c == 200: c = 0 d += 150 def ReDB(self): if self.dell: self.ndb.destroy() self.dell = False else: self.Funciones.destroy() self.isPantFunciones = 1 self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Renombrar Base de Datos",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() Label(self.ndb,text="Seleccione la Base de Datos: ",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=50,y=200) Label(self.ndb,text="Nuevo Nombre: ",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=150,y=300) Entry(self.ndb,textvariable=self.name,font=("Times New Roman",15),fg="black").place(x=300,y=300) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=250,y=400) Button(self.ndb, text="Aceptar", command=self._ReBD,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=400,y=400) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=300,y=200) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _ReBD(self): if str(self.com.get()) != "Seleccionar" and str(self.name.get()) != "": a = B.alterDatabase(str(self.com.get()),str(self.name.get())) if a == 0: messagebox.showinfo(message="Operacion realizada\ncon exito", title="BD") self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=300,y=200) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) elif a==1: messagebox.showinfo(message="Ha ocurrido un error\n", title="BD") self.com.current(0) elif a==3: messagebox.showinfo(message="La base de datos\n ya existe", title="BD") self.com.current(0) self.dell = True self.ReDB() else: messagebox.showinfo(message="Por favor ingrese los campos\n", title="Datos Incompletos") self.com.current(0) def DelBD(self): if self.dell: self.ndb.destroy() self.dell = False else: self.Funciones.destroy() self.isPantFunciones = 1 self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Eliminar Base de Datos",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() Label(self.ndb,text="Seleccione la Base de Datos: ",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=80,y=200) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=250,y=300) Button(self.ndb, text="Aceptar", command=self._DelBD,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=400,y=300) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=350,y=200) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _DelBD(self): if str(self.com.get()) != "Seleccionar": a = messagebox.askquestion(message="Seguro que desea eliminar la\n Base de Datos "+str(self.com.get()+"\nesta accion no puede revertirse"), title="Confirmacion") if a != "no": z = B.dropDatabase(str(self.com.get())) if z == 0: messagebox.showinfo(message="Operacion realizada\n con exito", title="BD") elif z==1: messagebox.showinfo(message="Ha ocurrido un error\n", title="BD") self.dell = True self.DelBD() else: self.com.current(0) else: messagebox.showinfo(message="Por favor ingrese los campos\n", title="Datos Incompletos") self.com.current(0) #-------------------------FUNCIONES DE TABLAS --------------------------------# def NewTable(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Crear Nueva Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() self.num = StringVar() Label(self.ndb,text="Seleccione la Base de Datos: ",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=80,y=200) Label(self.ndb,text="Ingrese el nombre de la Tabla: ",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=80,y=250) Label(self.ndb,text="Numero de columnas: ",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=120,y=300) Entry(self.ndb,textvariable=self.name,font=("Times New Roman",15),fg="black").place(x=350,y=250) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=250,y=400) Button(self.ndb, text="Aceptar", command=self._NewTable,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=400,y=400) Spinbox(self.ndb, from_=1,to=10000,font=("Times New Roman",15),fg="black", bg="white",state="readonly",textvariable = self.num).place(x=350,y=300) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=350,y=200) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _NewTable(self): if str(self.com.get()) != "Seleccionar" and str(self.name.get()) != "": a = B.createTable(str(self.com.get()),str(self.name.get()), int(self.num.get())) if a == 0: messagebox.showinfo(message="Operacion realizada\ncon exito", title="BD") elif a==1: messagebox.showinfo(message="Ha ocurrido un error\n", title="BD") elif a==3: messagebox.showinfo(message="La Tabla en la Base de Datos\n ya existe", title="BD") else: messagebox.showinfo(message="Por favor ingrese los campos\n", title="Datos Incompletos") def ShowTB(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Mostrar Tablas de una Base de Datos",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=100) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=100) Button(self.ndb, text="Aceptar", command=self._ShowTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=100) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=105) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _ShowTB(self): if str(self.com.get()) != "Seleccionar": self.aux = self.com.get() self.ndb.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Mostrar Tablas de una Base de Datos",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=100) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=100) Button(self.ndb, text="Aceptar", command=self._ShowTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=100) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=105) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) a = B.showTables(str(self.aux)) c = 0 d = 0 e = 1 for i in a: Label(self.ndb,text=str(e)+") "+i,font=("Times New Roman",15),fg="white", bg="#37474f").place(x=100+d,y=150+c) c += 40 e += 1 if c == 240: c = 0 d += 150 else: messagebox.showinfo(message="Por favor ingrese los campos\n", title="Datos Incompletos") self.com.current(0) def ShowData(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Mostrar Datos de una Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) self.name = StringVar() Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=200) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=200) Button(self.ndb, text="Aceptar", command=self._ShowData,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=205) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _ShowData(self): if self.com.get() != "Seleccionar": self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=250) Button(self.ndb, text="Aceptar", command=self.__ShowData,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) self.con.place(x=240,y=250) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __ShowData(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar": self.z = B.extractTable(str(self.com.get()),str(self.con.get())) if self.z != None and self.z !=[]: self.win = Toplevel() self.win.geometry("600x400") self.win.configure(bg="#102027") Label(self.win,text="Tytus 2020",font=("Times New Roman",30),fg="#ffffff", bg="#102027").place(x=230,y=10) self.tabla = ttk.Treeview(self.win,columns = 1) self.tabla.grid(row=1,column=0,columnspan=1) self.tabla.place(x=100,y=100) self.tabla.heading("#0",text="No.",anchor=SW) self.tabla.heading("#1",text="Datos",anchor=CENTER) cont = len(self.z) for i in self.z: tmp = "" for j in i: tmp += str(j) + "," tmp = tmp[:-1] tmp = tmp.replace(" ","_") self.tabla.insert('',0,text=cont,values=tmp) cont -= 1 else: messagebox.showinfo(message="Por favor ingrese los campos o\nla tabla seleccionada no contiene Datos", title="Datos Incompletos") def resize_image(self,event): self.W = event.width self.H = event.height self.image = self.copy.resize((self.W, self.H)) self.foto = ImageTk.PhotoImage(self.image) self.label.config(image = self.foto) self.label.image = self.foto def RangleTB(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Extraer Rango de una Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=100) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=100) Button(self.ndb, text="Aceptar", command=self._RangleTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=100) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=105) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _RangleTB(self): if self.com.get() != "Seleccionar": self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=150) Button(self.ndb, text="Aceptar", command=self.__RangleTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) self.con.place(x=240,y=150) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __RangleTB(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar": r = B.serializar.rollback("BDD") a = r.dicDB[str(self.com.get())][str(self.con.get())][1]-1 Label(self.ndb,text="Numero de Columna: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=200) Label(self.ndb,text="Limite Inferior: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=250) Label(self.ndb,text="Limite Superior: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=300) self.num = StringVar() self.lower = StringVar() self.upper = StringVar() if a > 0: self.r = Spinbox(self.ndb, from_= 0,to =a,font=("Times New Roman",15),fg="black", bg="white",state="readonly",width=10,textvariable = self.num) else: self.r = Spinbox(self.ndb, values=0,font=("Times New Roman",15),fg="black", bg="white",state="readonly",width=10,textvariable = self.num) self.r.place(x=300,y=202) Entry(self.ndb,font=("Times New Roman",15),fg="black", bg="white",width=15,textvariable = self.lower).place(x=300,y=250) Entry(self.ndb,font=("Times New Roman",15),fg="black", bg="white",width=15,textvariable = self.upper).place(x=300,y=300) Button(self.ndb, text="Aceptar", command=self.ShowRangle,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) def ShowRangle(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar": self.z = B.extractRangeTable(str(self.com.get()),str(self.con.get()),int(self.num.get()),self.lower.get(),self.upper.get()) if self.z != None and self.z !=[]: self.win = Toplevel() self.win.geometry("600x400") self.win.configure(bg="#102027") Label(self.win,text="Tytus 2020",font=("Times New Roman",30),fg="#ffffff", bg="#102027").place(x=230,y=10) self.tabla = ttk.Treeview(self.win,columns = 1) self.tabla.grid(row=1,column=0,columnspan=1) self.tabla.place(x=100,y=100) self.tabla.heading("#0",text="No.",anchor=CENTER) self.tabla.heading("#1",text="Datos",anchor=CENTER) cont = len(self.z) for i in self.z: tmp = "" for j in i: tmp += j + "," tmp = tmp[:-1] tmp = tmp.replace(" ", "_") self.tabla.insert('',0,text=cont,values=tmp) cont -= 1 else: messagebox.showinfo(message="Por favor ingrese los campos o\nla tabla seleccionada no contiene Datos", title="Datos Incompletos") def AddPK(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Agregar Primary Key a una Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=150) Button(self.ndb, text="Aceptar", command=self._AdPK,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _AdPK(self): if self.com.get() != "Seleccionar": self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Button(self.ndb, text="Aceptar", command=self.__AdPK,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __AdPK(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar": Label(self.ndb,text="Numeros de Columna: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=250) self.keys = StringVar() Entry(self.ndb,font=("Times New Roman",15),fg="black", bg="white",width=15,textvariable = self.keys).place(x=300,y=250) Button(self.ndb, text="Aceptar", command=self.LlaveAd,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) def LlaveAd(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar" and self.keys.get()!="": a = self.keys.get().split(",") n = [] for i in a: n.append(int(i)) c = B.alterAddPK(self.com.get(),self.con.get(),n) if c == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif c == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif c == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Base de Datos no Existe") elif c == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Tabla no Existe") elif c == 4: messagebox.showinfo(message="Llave primaria existente\n", title="Primary Key") elif c == 5: messagebox.showinfo(message="Columnas Fuera de Rango\n", title="Columns out range") def DropPK(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Eiminar Primary Key de una Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=150) Button(self.ndb, text="Aceptar", command=self._DropPK,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _DropPK(self): if self.com.get() != "Seleccionar": self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Button(self.ndb, text="Aceptar", command=self.__DropPK,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __DropPK(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar": c = B.alterDropPK(self.com.get(),self.con.get()) if c == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif c == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif c == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Base de Datos no Existe") elif c == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Tabla no Existe") elif c == 4: messagebox.showinfo(message="Llave primaria no existente\n", title="Not Primary Key") def AlterTB(self): if self.dell: self.ndb.destroy() self.dell = False else: self.Funciones.destroy() self.isPantFunciones = 1 self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Cambiar nombre a una Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=150) Button(self.ndb, text="Aceptar", command=self._AlterTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _AlterTB(self): if self.com.get() != "Seleccionar": self.name = StringVar() Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Label(self.ndb,text="Nuevo Nombre: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=250) Button(self.ndb, text="Aceptar", command=self.__AlterTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=225) Entry(self.ndb,font=("Times New Roman",15),fg="black", bg="white",width=20,textvariable = self.name).place(x=250,y=250) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __AlterTB(self): if self.com.get() != "Seleccionar" and self.con.get()!="Seleccionar" and self.name.get()!="": c = B.alterTable(self.com.get(),self.con.get(),self.name.get()) if c == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif c == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif c == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Base de Datos no Existe") elif c == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Tabla no Existe") self.dell = True self.AlterTB() def AddCL(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Agregar una columna una Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=150) Button(self.ndb, text="Aceptar", command=self._AddCl,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _AddCl(self): if self.com.get() != "Seleccionar": self.name = StringVar() Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Button(self.ndb, text="Aceptar", command=self.__AddCl,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __AddCl(self): if self.com.get() != "Seleccionar" and self.con.get()!="Seleccionar": self.addcol = StringVar() Label(self.ndb,text="Dato a ingresar: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=250) Entry(self.ndb,font=("Times New Roman",15),fg="black", bg="white",width=20,textvariable = self.addcol).place(x=250,y=250) Button(self.ndb, text="Aceptar", command=self.AddColumna,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) def AddColumna(self): if self.com.get() != "Seleccionar" and self.con.get()!="Seleccionar" and self.addcol.get()!="": c = B.alterAddColumn(self.com.get(),self.con.get(),self.addcol.get()) if c == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif c == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif c == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Base de Datos no Existe") elif c == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Tabla no Existe") else: messagebox.showinfo(message="Algo anda mal\n", title="Error") def DropCL(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Eliminar una columna una Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=150) Button(self.ndb, text="Aceptar", command=self._DropCL,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _DropCL(self): if self.com.get() != "Seleccionar": self.name = StringVar() Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Button(self.ndb, text="Aceptar", command=self.__DropCL,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __DropCL(self): if self.com.get() != "Seleccionar" and self.con.get()!="Seleccionar": a = B.b.dicDB[str(self.com.get())][str(self.con.get())][1] self.dropcl = StringVar() Label(self.ndb,text="Columna: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=125,y=250) Spinbox(self.ndb,from_=0,to=a-1,font=("Times New Roman",15),fg="black", bg="white",width=20,textvariable = self.dropcl).place(x=250,y=250) Button(self.ndb, text="Aceptar", command=self.DeleteCol,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) def DeleteCol(self): if self.com.get() != "Seleccionar" and self.con.get()!="Seleccionar" and self.dropcl.get()!="": c = B.alterDropColumn(self.com.get(),self.con.get(),int(self.dropcl.get())) if c == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif c == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif c == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Base de Datos no Existe") elif c == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Tabla no Existe") else: messagebox.showinfo(message="Algo anda mal\n", title="Error") def DropTB(self): if self.dell: self.ndb.destroy() self.dell = False else: self.Funciones.destroy() self.isPantFunciones = 1 self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Eliminar una Tabla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=200) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=300,y=350) Button(self.ndb, text="Aceptar", command=self._DropTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=205) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _DropTB(self): if self.com.get() != "Seleccionar": self.name = StringVar() Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=250) Button(self.ndb, text="Aceptar", command=self.__DropTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=250) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __DropTB(self): if self.com.get() != "Seleccionar" and self.con.get()!="Seleccionar": a = messagebox.askquestion(message="Seguro que desea eliminar la\n Tabla"+str(self.con.get()+"\nesta accion no puede revertirse"), title="Confirmacion") if a != "no": c = B.dropTable(self.com.get(),self.con.get()) if c == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif c == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif c == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Base de Datos no Existe") elif c == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Tabla no Existe") self.dell = True self.DropTB() else: self.con.current(0) else: messagebox.showinfo(message="Algo anda mal\n", title="Error") #--------------------------FUNCIONES DE TUPLAS ------------------------# def insertTP(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Insertar una tupla",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=650,y=150) Button(self.ndb, text="Aceptar", command=self._insertTP,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) def _insertTP(self): if self.com.get() != "Seleccionar": self.tupla = StringVar() Label(self.ndb,text="Tablas: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Label(self.ndb,text="Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=250) Button(self.ndb, text="Aceptar", command=self.__insert,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) Entry(self.ndb,font=("Times New Roman",15),fg="black", bg="white",width=20,textvariable = self.tupla).place(x=250,y=250) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __insert(self): if self.com.get() != "Seleccionar" and self.con.get()!="Seleccionar" and self.tupla.get()!="": a = self.tupla.get().split(",") c = B.insert(self.com.get(),self.con.get(),a) if c == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif c == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif c == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Data Base does not exist") elif c == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Table does not exist") elif c == 4: messagebox.showinfo(message="Llave primaria duplicada\n", title="Duplicate Primay Key") elif c == 5: messagebox.showinfo(message="Columnas fuera de limites\n", title="Columns out range") else: messagebox.showinfo(message="Algo anda mal\n", title="Something's wrong") def CargarCSV(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Cargar un archivo",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=300,y=350) Button(self.ndb, text="Aceptar", command=self._CargarCSV,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) def _CargarCSV(self): if self.com.get() != "Seleccionar": self.name = StringVar() Label(self.ndb,text="Tabla: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=200) Label(self.ndb,text="Archivo: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=250) Button(self.ndb, text="Aceptar", command=self.__CargarCSV,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=225) Entry(self.ndb,font=("Times New Roman",15),fg="black", bg="white",width=20,textvariable = self.name).place(x=250,y=250) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __CargarCSV(self): if self.com.get() != "Seleccionar" and self.con.get() != "Selecionar" and self.name.get() != "": z = B.loadCSV(str(self.name.get()),str(self.com.get()),str(self.con.get())) succes = False for c in z: if c == 0: succes = True elif c == 1: messagebox.showinfo(message="Ha ocurrido un error\n en una fila", title="Error") elif c == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Data Base does not exist") elif c == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Table does not exist") elif c == 4: messagebox.showinfo(message="Llave primaria duplicada\n en una fila", title="Duplicate Primay Key") elif c == 5: messagebox.showinfo(message="Columnas fuera de limites\n de una fila", title="Columns out range") if succes: messagebox.showinfo(message="Operacion realizada con exito\n", title="Succes") else: messagebox.showinfo(message="Algo anda mal\n", title="Something's wrong") def ExtRow(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Extraer una Fila",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=300,y=400) Button(self.ndb, text="Aceptar", command=self._ExtRow,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) def _ExtRow(self): if self.com.get() != "Seleccionar": self.colums = StringVar() Label(self.ndb,text="Tabla: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=200) Button(self.ndb, text="Aceptar", command=self.ExR,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def ExR(self): if self.com.get() != "Seleccionar" and self.con.get() != "Selecionar": Label(self.ndb,text="Llaves: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=250) self.nodos = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.nodos.place(x=240,y=250) aux = ["Seleccionar"] self.o = B.serializar.rollback(str(self.com.get())+"-"+str(self.con.get())+"-B").Keys() for i in self.o: aux.append(i) self.nodos["values"] = aux self.nodos.current(0) Button(self.ndb, text="Aceptar", command=self.__ExtRow,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) def __ExtRow(self): if self.com.get() != "Seleccionar" and self.con.get() != "Selecionar" and self.nodos.get() != "": a = str(self.nodos.get()) k = a.split("_") c = B.extractRow(str(self.com.get()),str(self.con.get()),k) if c != []: z = "" for i in c: z += str(i) + ", " z = z[:-2] Label(self.ndb,text= z ,font=("Times New Roman",20),fg="black", bg="white",width=50).place(x=25,y=310) else: messagebox.showinfo(message="Fila vacia\n", title="Empty Row") else: messagebox.showinfo(message="Algo anda mal\n", title="Something's wrong") def Up(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Actualizar una Fila",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=300,y=400) Button(self.ndb, text="Aceptar", command=self._Up,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) def _Up(self): if self.com.get() != "Seleccionar": Label(self.ndb,text="Tabla: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Button(self.ndb, text="Aceptar",font=("Times New Roman",15),command = self.__Up,fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __Up(self): if self.com.get() != "Seleccionar" and self.con.get() != "Selecionar": self.register = StringVar() self.nodos = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.nodos.place(x=240,y=250) aux = ["Seleccionar"] self.o = B.serializar.rollback(str(self.com.get())+"-"+str(self.con.get())+"-B").Keys() for i in self.o: aux.append(i) self.nodos["values"] = aux self.nodos.current(0) Label(self.ndb,text="Llaves: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=250) Label(self.ndb,text="Registro: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=140,y=300) Entry(self.ndb,font=("Times New Roman",15),fg="black", bg="white",width=20,textvariable = self.register).place(x=250,y=305) Button(self.ndb, text="Aceptar", command=self.Upp,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=275) def Upp(self): if self.com.get() != "Seleccionar" and self.con.get() != "Selecionar" and self.nodos!="Seleccionar" and self.register!="": a = self.register.get() b = a.split(",") c = [] dic = {} for i in b: c.append(i.split(":")) for i in c: dic[int(i[0])] = str(i[1]) d = str(self.nodos.get()) # Se hace casteo porque daba error hacer el split directo e = d.split(",") z = B.update(str(self.com.get()),str(self.con.get()),dic,e) if z == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif z == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif z == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Data Base does not exist") elif z == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Table does not exist") elif z == 4: messagebox.showinfo(message="Llave primaria no existe\n", title="Primay Key does not exist") else: messagebox.showinfo(message="Algo anda mal\n", title="Something's wrong") def DeleteTP(self): self.isPantFunciones = 1 self.Funciones.destroy() self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Eliminar una Fila",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=300,y=400) Button(self.ndb, text="Aceptar", command=self._DeleteTP,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) def _DeleteTP(self): if self.com.get() != "Seleccionar": self.register = StringVar() Label(self.ndb,text="Tabla: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Button(self.ndb, text="Aceptar",font=("Times New Roman",15),command = self.__DeleteTP,fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __DeleteTP(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar": self.nodos = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.nodos.place(x=240,y=250) aux = ["Seleccionar"] self.o = B.serializar.rollback(str(self.com.get())+"-"+str(self.con.get())+"-B").Keys() for i in self.o: aux.append(i) self.nodos["values"] = aux self.nodos.current(0) Label(self.ndb,text="Llaves: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=250) Button(self.ndb, text="Aceptar", command=self.F,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=250) def F(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar" and self.nodos.get()!="Seleccionar": a = messagebox.askquestion(message="Seguro que desea eliminar la\n la fila "+str(self.nodos.get()+"\nesta accion no puede revertirse"), title="Confirmacion") if a != "no": z = B.delete(str(self.com.get()), str(self.con.get()),self.nodos.get().split("_")) if z == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif z == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif z == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Data Base does not exist") elif z == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Table does not exist") elif z == 4: messagebox.showinfo(message="Llave primaria no existe\n", title="Primay Key does not exist") else: self.nodos.current(0) else: messagebox.showinfo(message="Algo anda mal\n", title="Something's wrong") def TruncateTB(self): if self.dell: self.ndb.destroy() self.dell = False else: self.Funciones.destroy() self.isPantFunciones = 1 self.ndb = Frame(height=500, width=800) self.ndb.config(bg="#37474f") self.ndb.pack(padx=15, pady=15) Label(self.ndb,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.ndb,text="Eliminar una Fila",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.ndb,text="Bases de Datos: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=50,y=150) self.com = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.com.place(x=240,y=155) aux = ["Seleccionar"] for i in B.showDatabases(): aux.append(i) self.com["values"] = aux self.com.current(0) Button(self.ndb, text="Atras", command=self.AccederPestanaFunciones,font=("Times New Roman",15),fg="#102027",bg="red",width=10).place(x=300,y=300) Button(self.ndb, text="Aceptar", command=self._TruncateTB,font=("Times New Roman",15),fg="#102027",bg="#ff6f00",width=10).place(x=500,y=150) def _TruncateTB(self): if self.com.get() != "Seleccionar": self.register = StringVar() Label(self.ndb,text="Tabla: ",font=("Times New Roman",20),fg="#ffffff", bg="#37474f").place(x=150,y=200) Button(self.ndb, text="Aceptar",font=("Times New Roman",15),command = self.__TruncateTB,fg="#102027",bg="#ff6f00",width=10).place(x=500,y=200) self.con = ttk.Combobox(self.ndb,state="readonly",font=("Times New Roman",15)) self.con.place(x=240,y=200) aux = ["Seleccionar"] for i in B.showTables(str(self.com.get())): aux.append(i) self.con["values"] = aux self.con.current(0) def __TruncateTB(self): if self.com.get() != "Seleccionar" and self.con.get() != "Seleccionar": a = messagebox.askquestion(message="Seguro que desea eliminar\n todos los registros de \n"+str(self.con.get()+"\n esta accion no puede revertirse"), title="Confirmacion") if a != "no": z = B.truncate(str(self.com.get()), str(self.con.get())) if z == 0: messagebox.showinfo(message="Operacion Realizada con Exito\n", title="Succes") elif z == 1: messagebox.showinfo(message="Ha ocurrido un error\n", title="Error") elif z == 2: messagebox.showinfo(message="La base de Datos no Existe\n", title="Data Base does not exist") elif z == 3: messagebox.showinfo(message="La Tabla no existe\n", title="Table does not exist") self.dell = True self.TruncateTB() else: self.con.current(0) else: messagebox.showinfo(message="Algo anda mal\n", title="Something's wrong") def AcercaDe(self): self.FrameInicial.destroy() self.isAcerca = True self.isPantFunciones = 0 self.Acerca = Frame(height=500, width=800) self.Acerca.config(bg="#37474f") self.Acerca.pack(padx=15, pady=15) self.t3 = PhotoImage(file="team17/docs/img/t3.png") Label(self.Acerca, image = self.t3, bg="#37474f").place(x=575,y=300) Label(self.Acerca,text="Tytus 2020",font=("Times New Roman",40),fg="#ffffff", bg="#37474f").place(x=250,y=10) Label(self.Acerca,text="Acerca De",font=("Times New Roman",10),fg="#ffffff", bg="#37474f").place(x=250,y=70) Label(self.Acerca,text="Universidad San Carlos de Guatemala",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=250,y=100) Label(self.Acerca,text="Facultad de Ingeniera",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=250,y=125) Label(self.Acerca,text="Escuela de Ciencias y Sistemas",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=250,y=150) Label(self.Acerca,text="Estructuras de Datos",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=250,y=175) Label(self.Acerca,text="Ing. Luis Espino",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=250,y=200) Label(self.Acerca,text="Aux. Andree Avalos",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=250,y=225) Label(self.Acerca,text="Programadadores: ",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=250,y=265) Label(self.Acerca,text="Adrian Samuel Molina Cabrera",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=300,y=300) Label(self.Acerca,text="Diego Andrés Obín Rosales",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=300,y=325) Label(self.Acerca,text="German José Paz Cordón",font=("Times New Roman",15),fg="#ffffff", bg="#37474f").place(x=300,y=350) Button(self.Acerca,text="Atras",font=("Times New Roman",15),fg="black",bg="white",command=self.pantalla1, width=10).place(x=325,y=400) #--------------------------------SALIR----------------------------------------# def Salir(self): messagebox.showinfo(message="Hasta la proximaaaa\n",title="Exit") self.PP.destroy()
55.101408
172
0.549576
10,421
78,244
4.115248
0.041551
0.04603
0.075831
0.107427
0.901201
0.889285
0.87231
0.856057
0.840923
0.825883
0
0.077938
0.270768
78,244
1,419
173
55.14024
0.673665
0.008563
0
0.7112
0
0
0.202905
0.000604
0
0
0
0
0
1
0.0568
false
0
0.004
0
0.0616
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4d7ab7c7f1c559621876f5b81d472be6d798690e
30,800
py
Python
pycaged/__init__.py
heitorcmesquita/pycaged
8f24a777a116df6664ddf5fbf0b45fdbbc1fb1d0
[ "MIT" ]
6
2020-10-28T14:45:02.000Z
2022-02-01T18:35:47.000Z
pycaged/__init__.py
heitorcmesquita/pycaged
8f24a777a116df6664ddf5fbf0b45fdbbc1fb1d0
[ "MIT" ]
1
2021-04-08T22:31:42.000Z
2021-04-08T22:43:12.000Z
pycaged/__init__.py
heitorcmesquita/pycaged
8f24a777a116df6664ddf5fbf0b45fdbbc1fb1d0
[ "MIT" ]
null
null
null
from os import remove from py7zr import SevenZipFile import pandas as pd import wget #Extraindo dados mensais que serão utilizados class caged: def add_fxet(idade): if idade >= 10 and idade <=14: fxet = 1 elif idade >= 15 and idade <=17: fxet = 2 elif idade >= 18 and idade <=24: fxet = 3 elif idade >= 25 and idade <=29: fxet = 4 elif idade >= 30 and idade <=39: fxet = 5 elif idade >= 40 and idade <=49: fxet = 6 elif idade >= 50 and idade < 64: fxet = 7 elif idade > 65: fxet = 8 else: fxet = 99 return fxet def __init__(self, ano, mes): self.year = str(ano) #Baixando dados de classificação de emprego do IBGE e criando dicionário de meses url = 'https://docs.google.com/spreadsheets/d/1bMFKpREb4YlW2ZzW1WVLdMN59ol-iLw5/export?format=xlsx' wget.download(url, 'cnae.xlsx') cnae = pd.read_excel('cnae.xlsx', index_col = None) dicmes = {'01':'Janeiro', '02':'Fevereiro','03':'Março', '04':'Abril','05':'Maio', '06':'Junho', '07':'Julho', '08':'Agosto', '09':'Setembro', '10':'Outubro','11':'Novembro', '12':'Dezembro'} self.cnae = cnae self.dicmes = dicmes self.ano = ano self.mes = mes remove('cnae.xlsx') del url def getDataMunicipios(self): if self.ano < 2020: #Baixando e extraindo microdados url = "ftp://ftp.mtps.gov.br/pdet/microdados/CAGED/"+self.year+"/CAGEDEST_"+self.mes+self.year+".7z" wget.download(url, 'caged.7z') archive = SevenZipFile('caged.7z', mode = 'r') archive.extractall() print('microdados baixados com sucesso, passando para leitura') #Lendo o arquivo txt (tem alguns sem '_') data = pd.DataFrame() try: for chunk in pd.read_csv('CAGEDEST_'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = chunk[(chunk.UF == self.uf)].reset_index() chunk['Salário Mensal'] = [d.replace(',','.') for d in chunk['Salário Mensal']] chunk['Salário Mensal'] = pd.to_numeric(chunk['Salário Mensal']) chunk['FxEt'] = list(map(caged.add_fxet, chunk['Idade'])) data = data.append(chunk) self.data = data except FileNotFoundError: try: for chunk in pd.read_csv('CAGEDEST'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = chunk[(chunk.UF == self.uf)].reset_index() chunk['Salário Mensal'] = [d.replace(',','.') for d in chunk['Salário Mensal']] chunk['Salário Mensal'] = pd.to_numeric(chunk['Salário Mensal']) chunk['FxEt'] = list(map(caged.add_fxet, chunk['Idade'])) data = data.append(chunk) self.data = data except: for chunk in pd.read_csv('CAGED_'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = chunk[(chunk.UF == self.uf)].reset_index() chunk['Salário Mensal'] = [d.replace(',','.') for d in chunk['Salário Mensal']] chunk['Salário Mensal'] = pd.to_numeric(chunk['Salário Mensal']) chunk['FxEt'] = list(map(caged.add_fxet, chunk['Idade'])) data = data.append(chunk) self.data = data #Excluindo os arquivos que já não serão usados archive.close() remove('caged.7z') try: remove('CAGEDEST_'+self.mes+self.year+'.txt') except FileNotFoundError: try: remove('CAGEDEST'+self.mes+self.year+'.txt') except : remove('CAGED_'+self.mes+self.year+'.txt') del url print('microdados lidos, fazendo cálculos') elif self.ano >= 2020: #Baixando e extraindo microdados url = 'ftp://ftp.mtps.gov.br/pdet/microdados/NOVO CAGED/Movimentações/'+ self.year+ '/' + self.dicmes[self.mes]+'/CAGEDMOV'+self.year+self.mes+'.7z' try: wget.download(url, 'caged.7z') except: print('Os microdados do mês selecionado ainda não estão disponíveis') archive = SevenZipFile('caged.7z', mode = 'r') archive.extractall() print('microdados baixados com sucesso, passando para leitura') #Lendo o arquivo txt e filtrando por UF data = pd.DataFrame() for chunk in pd.read_csv('CAGEDMOV'+ self.year + self.mes +'.txt', sep = ';', encoding = 'UTF-8', chunksize = 100000): chunk = chunk[(chunk.uf == self.uf)].reset_index() chunk['FxEt'] = list(map(caged.add_fxet, chunk['idade'])) data = data.append(chunk) self.data = data print('microdados lidos, fazendo cálculos') #Excluindo os arquivos que já não serão usados archive.close() remove('caged.7z') remove('CAGEDMOV'+self.year+self.mes+'.txt') del url def getDataEstados(self): if self.ano < 2020: #Baixando e extraindo microdados url = "ftp://ftp.mtps.gov.br/pdet/microdados/CAGED/"+self.year+"/CAGEDEST_"+self.mes+self.year+".7z" wget.download(url, 'caged.7z') archive = SevenZipFile('caged.7z', mode = 'r') archive.extractall() archive.close() remove('caged.7z') print('microdados baixados com sucesso, passando para leitura') data = pd.DataFrame() self.data = data del url elif self.ano >= 2020: #Baixando e extraindo microdados url = 'ftp://ftp.mtps.gov.br/pdet/microdados/NOVO CAGED/Movimentações/'+ self.year+ '/' + self.dicmes[self.mes]+'/CAGEDMOV'+self.year+self.mes+'.7z' try: wget.download(url, 'caged.7z') except: print('Os microdados do mês selecionado ainda não estão disponíveis') archive = SevenZipFile('caged.7z', mode = 'r') archive.extractall() archive.close() remove('caged.7z') print('microdados baixados com sucesso, passando para leitura') data = pd.DataFrame() self.data = data del url def getMSubclasse(self, uf): self.uf = uf caged.getDataMunicipios(self) data = self.data if self.ano < 2020: #Contando número de contratações e demissões em um DF separado. Fazendo a média salárial do agrupamento data['Count'] = '' data3 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].median() data2 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo', 'FxEt'], as_index = False)['Count'].count() data = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].mean() data['uf'] = self.uf data['Count'] = '' data['Salário Mensal Mediano'] = '' data['mes'] = self.mes #Trazendo dados de quantidade de contratações e demissões, e retornando DF for k in range(0,len(data2)): data['Count'][k] = data2['Count'][k] for k in range(0,len(data3)): data['Salário Mensal Mediano'][k] = data3['Salário Mensal'][k] data['Admitidos/Desligados'] = data['Admitidos/Desligados'].replace(2,-1) data['Salário Mensal'].fillna(0, inplace = True) data['Salário Mensal'] = data['Salário Mensal'].astype(int) data['Salário Mensal Mediano'].fillna(0, inplace = True) data['Salário Mensal Mediano'] = data['Salário Mensal Mediano'].astype(int) print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data if self.ano >= 2020: #Contando número de contratações e demissões em um DF separado. Fazendo a média salárial do agrupamento data['região'] = self.year data['Count'] = '' data.rename(columns = {"município":"Município", "saldomovimentação":"Admitidos/Desligados", "região":"Ano Declarado", "subclasse":"CNAE 2.0 Subclas", 'sexo':'Sexo', 'salário':'Salário Mensal'}, inplace = True) data3 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].median() data2 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo', 'FxEt'], as_index = False)['Count'].count() data = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].mean() data['uf'] = self.uf data['Count'] = '' data['Salário Mensal Mediano'] = '' data['mes'] = self.mes #Trazendo dados de quantidade de contratações e demissões, e retornando DF for k in range(0,len(data2)): data['Count'][k] = data2['Count'][k] for k in range(0,len(data3)): data['Salário Mensal Mediano'][k] = data3['Salário Mensal'][k] data['Admitidos/Desligados'] = data['Admitidos/Desligados'].replace(2,-1) data['Sexo'] = data['Sexo'].replace(3,2) data['Salário Mensal'].fillna(0, inplace = True) data['Salário Mensal'] = data['Salário Mensal'].astype(int) data['Salário Mensal Mediano'].fillna(0, inplace = True) data['Salário Mensal Mediano'] = data['Salário Mensal Mediano'].astype(int) print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data def getESubclasse(self): caged.getDataEstados(self) data = self.data if self.ano < 2020: try: for chunk in pd.read_csv('CAGEDEST_'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) except FileNotFoundError: try: for chunk in pd.read_csv('CAGEDEST'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) except: for chunk in pd.read_csv('CAGED_'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) #Excluindo os arquivos que já não serão usados try: remove('CAGEDEST_'+self.mes+self.year+'.txt') except FileNotFoundError: try: remove('CAGEDEST'+self.mes+self.year+'.txt') except : remove('CAGED_'+self.mes+self.year+'.txt') data = data.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo'], as_index = False)['Count'].sum() self.data = data print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data if self.ano >= 2020: for chunk in pd.read_csv('CAGEDMOV'+ self.year + self.mes +'.txt', sep = ';', encoding = 'UTF-8', chunksize = 100000): chunk['região'] = self.year chunk['Count'] = '' chunk.rename(columns = {"uf":"UF","município":"Município", "saldomovimentação":"Admitidos/Desligados", "região":"Ano Declarado", "subclasse":"CNAE 2.0 Subclas", 'sexo':'Sexo', 'salário':'Salário Mensal'}, inplace = True) chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes chunk['Admitidos/Desligados'] = chunk['Admitidos/Desligados'].replace(2,-1) chunk['Sexo'] = chunk['Sexo'].replace(3,2) data = data.append(chunk) remove('CAGEDMOV'+self.year+self.mes+'.txt') data = data.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'CNAE 2.0 Subclas', 'Sexo'], as_index = False)['Count'].sum() self.data = data print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data def getMClasse(self, uf): self.uf = uf caged.getDataMunicipios(self) data = self.data if self.ano < 2020: #Contando número de contratações e demissões em um DF separado. Fazendo a média salárial do agrupamento data = pd.merge(data, self.cnae, left_on = 'CNAE 2.0 Subclas', right_on = 'Subclasse', how = 'left') data['Count'] = '' data3 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].median() data2 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo', 'FxEt'], as_index = False)['Count'].count() data = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].mean() data['uf'] = self.uf data['Count'] = '' data['Salário Mensal Mediano'] = '' data['mes'] = self.mes #Trazendo dados de quantidade de contratações e demissões, e retornando DF for k in range(0,len(data2)): data['Count'][k] = data2['Count'][k] for k in range(0,len(data3)): data['Salário Mensal Mediano'][k] = data3['Salário Mensal'][k] data['Admitidos/Desligados'] = data['Admitidos/Desligados'].replace(2,-1) data['Salário Mensal'].fillna(0, inplace = True) data['Salário Mensal'] = data['Salário Mensal'].astype(int) data['Salário Mensal Mediano'].fillna(0, inplace = True) data['Salário Mensal Mediano'] = data['Salário Mensal Mediano'].astype(int) print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data if self.ano >= 2020: #Contando número de contratações e demissões em um DF separado. Fazendo a média salárial do agrupamento data = pd.merge(data, self.cnae, left_on = 'subclasse', right_on = 'Subclasse', how = 'left') data['região'] = self.year data['Count'] = '' data.rename(columns = {"município":"Município", "saldomovimentação":"Admitidos/Desligados", "região":"Ano Declarado", "subclasse":"CNAE 2.0 Subclas", 'sexo':'Sexo', 'salário':'Salário Mensal'}, inplace = True) data3 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].median() data2 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo', 'FxEt'], as_index = False)['Count'].count() data = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].mean() data['uf'] = self.uf data['Count'] = '' data['Salário Mensal Mediano'] = '' data['mes'] = self.mes #Trazendo dados de quantidade de contratações e demissões, e retornando DF for k in range(0,len(data2)): data['Count'][k] = data2['Count'][k] for k in range(0,len(data3)): data['Salário Mensal Mediano'][k] = data3['Salário Mensal'][k] data['Admitidos/Desligados'] = data['Admitidos/Desligados'].replace(2,-1) data['Sexo'] = data['Sexo'].replace(3,2) data['Salário Mensal'].fillna(0, inplace = True) data['Salário Mensal'] = data['Salário Mensal'].astype(int) data['Salário Mensal Mediano'].fillna(0, inplace = True) data['Salário Mensal Mediano'] = data['Salário Mensal Mediano'].astype(int) print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data def getEClasse(self): caged.getDataEstados(self) data = self.data if self.ano < 2020: try: for chunk in pd.read_csv('CAGEDEST_'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = pd.merge(chunk, self.cnae, left_on = 'CNAE 2.0 Subclas', right_on = 'Subclasse', how = 'left') chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) except FileNotFoundError: try: for chunk in pd.read_csv('CAGEDEST'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = pd.merge(chunk, self.cnae, left_on = 'CNAE 2.0 Subclas', right_on = 'Subclasse', how = 'left') chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) except: for chunk in pd.read_csv('CAGED_'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = pd.merge(chunk, self.cnae, left_on = 'CNAE 2.0 Subclas', right_on = 'Subclasse', how = 'left') chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) #Excluindo os arquivos que já não serão usados try: remove('CAGEDEST_'+self.mes+self.year+'.txt') except FileNotFoundError: try: remove('CAGEDEST'+self.mes+self.year+'.txt') except : remove('CAGED_'+self.mes+self.year+'.txt') data = data.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo'], as_index = False)['Count'].sum() self.data = data print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data if self.ano >= 2020: for chunk in pd.read_csv('CAGEDMOV'+ self.year + self.mes +'.txt', sep = ';', encoding = 'UTF-8', chunksize = 100000): chunk = pd.merge(chunk, self.cnae, left_on = 'subclasse', right_on = 'Subclasse', how = 'left') chunk['região'] = self.year chunk['Count'] = '' chunk.rename(columns = {"uf":"UF", "município":"Município", "saldomovimentação":"Admitidos/Desligados", "região":"Ano Declarado", 'sexo':'Sexo', 'salário':'Salário Mensal'}, inplace = True) chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes chunk['Admitidos/Desligados'] = chunk['Admitidos/Desligados'].replace(2,-1) chunk['Sexo'] = chunk['Sexo'].replace(3,2) data = data.append(chunk) remove('CAGEDMOV'+self.year+self.mes+'.txt') data = data.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Classe', 'Sexo'], as_index = False)['Count'].sum() self.data = data print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data def getMSecao(self, uf): self.uf = uf caged.getDataMunicipios(self) data = self.data if self.ano < 2020: #Contando número de contratações e demissões em um DF separado. Fazendo a média salárial do agrupamento data = pd.merge(data, self.cnae, left_on = 'CNAE 2.0 Subclas', right_on = 'Subclasse', how = 'left') data['Count'] = '' data3 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].median() data2 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo', 'FxEt'], as_index = False)['Count'].count() data = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].mean() data['uf'] = self.uf data['Count'] = '' data['Salário Mensal Mediano'] = '' data['mes'] = self.mes #Trazendo dados de quantidade de contratações e demissões, e retornando DF for k in range(0,len(data2)): data['Count'][k] = data2['Count'][k] for k in range(0,len(data3)): data['Salário Mensal Mediano'][k] = data3['Salário Mensal'][k] data['Admitidos/Desligados'] = data['Admitidos/Desligados'].replace(2,-1) data['Salário Mensal'].fillna(0, inplace = True) data['Salário Mensal'] = data['Salário Mensal'].astype(int) data['Salário Mensal Mediano'].fillna(0, inplace = True) data['Salário Mensal Mediano'] = data['Salário Mensal Mediano'].astype(int) print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data if self.ano >= 2020: #Contando número de contratações e demissões em um DF separado. Fazendo a média salárial do agrupamento data['região'] = self.year data['Count'] = '' data.rename(columns = {"município":"Município", "saldomovimentação":"Admitidos/Desligados", "região":"Ano Declarado", "seção":"Seção", 'sexo':'Sexo', 'salário':'Salário Mensal'}, inplace = True) data3 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].median() data2 = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo', 'FxEt'], as_index = False)['Count'].count() data = data.groupby(['Município', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo', 'FxEt'], as_index = False)['Salário Mensal'].mean() data['uf'] = self.uf data['Count'] = '' data['Salário Mensal Mediano'] = '' data['mes'] = self.mes #Trazendo dados de quantidade de contratações e demissões, e retornando DF for k in range(0,len(data2)): data['Count'][k] = data2['Count'][k] for k in range(0,len(data3)): data['Salário Mensal Mediano'][k] = data3['Salário Mensal'][k] data['Admitidos/Desligados'] = data['Admitidos/Desligados'].replace(2,-1) data['Sexo'] = data['Sexo'].replace(3,2) data['Salário Mensal'].fillna(0, inplace = True) data['Salário Mensal'] = data['Salário Mensal'].astype(int) data['Salário Mensal Mediano'].fillna(0, inplace = True) data['Salário Mensal Mediano'] = data['Salário Mensal Mediano'].astype(int) print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data def getESecao(self): caged.getDataEstados(self) data = self.data if self.ano < 2020: try: for chunk in pd.read_csv('CAGEDEST_'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = pd.merge(chunk, self.cnae, left_on = 'CNAE 2.0 Subclas', right_on = 'Subclasse', how = 'left') chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) except FileNotFoundError: try: for chunk in pd.read_csv('CAGEDEST'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = pd.merge(chunk, self.cnae, left_on = 'CNAE 2.0 Subclas', right_on = 'Subclasse', how = 'left') chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) except: for chunk in pd.read_csv('CAGED_'+self.mes+self.year+'.txt', sep = ';', encoding = 'iso-8859-1', chunksize = 100000): chunk = pd.merge(chunk, self.cnae, left_on = 'CNAE 2.0 Subclas', right_on = 'Subclasse', how = 'left') chunk['Count'] = '' chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes data = data.append(chunk) #Excluindo os arquivos que já não serão usados try: remove('CAGEDEST_'+self.mes+self.year+'.txt') except FileNotFoundError: try: remove('CAGEDEST'+self.mes+self.year+'.txt') except : remove('CAGED_'+self.mes+self.year+'.txt') data = data.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo'], as_index = False)['Count'].sum() self.data = data print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data if self.ano >= 2020: for chunk in pd.read_csv('CAGEDMOV'+ self.year + self.mes +'.txt', sep = ';', encoding = 'UTF-8', chunksize = 100000): chunk = pd.merge(chunk, self.cnae, left_on = 'subclasse', right_on = 'Subclasse', how = 'left') chunk['região'] = self.year chunk['Count'] = '' chunk.rename(columns = {"uf":"UF", "município":"Município", "saldomovimentação":"Admitidos/Desligados", "região":"Ano Declarado", 'sexo':'Sexo', 'salário':'Salário Mensal'}, inplace = True) chunk = chunk.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo'], as_index = False)['Count'].count() chunk['mes'] = self.mes chunk['Admitidos/Desligados'] = chunk['Admitidos/Desligados'].replace(2,-1) chunk['Sexo'] = chunk['Sexo'].replace(3,2) data = data.append(chunk) remove('CAGEDMOV'+self.year+self.mes+'.txt') data = data.groupby(['UF', 'Admitidos/Desligados', 'Ano Declarado', 'Seção', 'Sexo'], as_index = False)['Count'].sum() self.data = data print('Os dados do mês ' + self.mes + ' de ' + self.year + ' foram retornados com sucesso') return data def SubclasseMunicipios(ano, mes, uf): data = caged(ano, mes) data = data.getMSubclasse(uf) return data def ClasseMunicipios(ano, mes, uf): data = caged(ano, mes) data = data.getMClasse(uf) return data def SecaoMunicipios(ano, mes, uf): data = caged(ano, mes) data = data.getMSecao(uf) return data def SubclasseEstados(ano, mes): data = caged(ano, mes) data = data.getESubclasse() return data def ClasseEstados(ano, mes): data = caged(ano, mes) data = data.getEClasse() return data def SecaoEstados(ano, mes): data = caged(ano, mes) data = data.getESecao() return data
56.513761
237
0.527955
3,347
30,800
4.825217
0.074395
0.067616
0.050526
0.069102
0.926687
0.922353
0.922353
0.920372
0.914985
0.909226
0
0.021535
0.324578
30,800
544
238
56.617647
0.754795
0.052955
0
0.864444
0
0.002222
0.248156
0.005902
0
0
0
0
0
1
0.035556
false
0.008889
0.008889
0
0.088889
0.044444
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
4df62972fd7ed2d20cb41bdc9e203fbadfb5af8a
177
py
Python
build/build.py
aaron19950321/ICOM
d5bd0705776c505dd1df0a1c76a07fee2d218394
[ "PSF-2.0", "BSD-3-Clause" ]
5
2018-10-09T13:39:31.000Z
2020-03-26T18:39:49.000Z
build/build.py
aaron19950321/ICOM
d5bd0705776c505dd1df0a1c76a07fee2d218394
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
build/build.py
aaron19950321/ICOM
d5bd0705776c505dd1df0a1c76a07fee2d218394
[ "PSF-2.0", "BSD-3-Clause" ]
2
2018-10-09T13:39:36.000Z
2018-10-09T23:18:39.000Z
import os os.chdir('D:\\ICOM_P') #python pyinstaller --noconfirm --log-level=WARN --onefile ICOM_NEW.spec pyinstaller --noconfirm --log-level=WARN --onefile ICOM_NEW.spec
35.4
74
0.734463
26
177
4.884615
0.576923
0.314961
0.362205
0.440945
0.787402
0.787402
0.787402
0.787402
0.787402
0
0
0
0.112994
177
4
75
44.25
0.808917
0.40678
0
0
0
0
0.1
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0
1
0
0
null
1
1
1
0
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
11
12a54c2793906026bceec3cc8fdb4bcdd67e5f11
7,942
py
Python
packages/gtmapi/lmsrvlabbook/tests/test_note_service.py
gigabackup/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
60
2018-09-26T15:46:00.000Z
2021-10-10T02:37:14.000Z
packages/gtmapi/lmsrvlabbook/tests/test_note_service.py
gigabackup/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
1,706
2018-09-26T16:11:22.000Z
2021-08-20T13:37:59.000Z
packages/gtmapi/lmsrvlabbook/tests/test_note_service.py
griffinmilsap/gigantum-client
70fe6b39b87b1c56351f2b4c551b6f1693813e4f
[ "MIT" ]
11
2019-03-14T13:23:51.000Z
2022-01-25T01:29:16.000Z
import pytest import os from snapshottest import snapshot from lmsrvlabbook.tests.fixtures import fixture_working_dir from graphene.test import Client import graphene from mock import patch from gtmcore.configuration import Configuration from gtmcore.inventory.inventory import InventoryManager class TestNoteService(object): def test_create_user_note_no_body(self, fixture_working_dir, snapshot): """Test creating and getting a user note""" # Create labbook im = InventoryManager() lb = im.create_labbook("default", "default", "user-note-test", description="testing user notes") # Create a user note query = """ mutation makeUserNote { createUserNote(input: { owner: "default", labbookName: "user-note-test", title: "I think this is a thing" }) { newActivityRecordEdge { node{ message detailObjects{ data type show importance tags } type show importance tags } } } } """ snapshot.assert_match(fixture_working_dir[2].execute(query)) def test_create_user_note_full(self, fixture_working_dir, snapshot): """Test creating a full user note""" # Create labbook lb = InventoryManager().create_labbook("default", "default", "user-note-test", description="testing user notes") # Create a user note query = """ mutation makeUserNote { createUserNote(input: { owner: "default", labbookName: "user-note-test", title: "I think this is a thing", body: "##AND THIS IS A BODY\\n- asdggf\\n-asdf", tags: ["this", "and", "that"] }) { newActivityRecordEdge { node{ message detailObjects{ data type show importance tags } type show importance tags } } } } """ snapshot.assert_match(fixture_working_dir[2].execute(query)) def test_create_user_note_check_vals(self, fixture_working_dir, snapshot): """Test to make sure keys and IDs are getting set OK""" # Create labbook im = InventoryManager() lb = im.create_labbook("default", "default", "user-note-test", description="testing user notes") # Create a user note query = """ mutation makeUserNote { createUserNote(input: { owner: "default", labbookName: "user-note-test", title: "I think this is a thing", body: "##AND THIS IS A BODY\\n- asdggf\\n-asdf", tags: ["this", "and", "that"] }) { newActivityRecordEdge { node{ message detailObjects{ id key data type show importance tags } id commit linkedCommit type show importance tags } cursor } } } """ result = fixture_working_dir[2].execute(query) assert len(result['data']['createUserNote']['newActivityRecordEdge']['node']['id']) > 10 assert type(result['data']['createUserNote']['newActivityRecordEdge']['node']['id']) == str assert len(result['data']['createUserNote']['newActivityRecordEdge']['node']['commit']) == 40 assert type(result['data']['createUserNote']['newActivityRecordEdge']['node']['commit']) == str assert result['data']['createUserNote']['newActivityRecordEdge']['node']['linkedCommit'] == "no-linked-commit" assert result['data']['createUserNote']['newActivityRecordEdge']['node']['message'] == "I think this is a thing" assert len(result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['id']) > 10 assert type(result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['id']) == str assert len(result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['key']) > 10 assert type(result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['key']) == str assert "AND THIS IS A BODY" in result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['data'][0][1] def test_create_user_note_check_vals_dataset(self, fixture_working_dir, snapshot): """Test to make sure keys and IDs are getting set OK""" # Create labbook im = InventoryManager() ds = im.create_dataset("default", "default", "user-note-test", storage_type='gigantum_object_v1', description="testing user notes") # Create a user note query = """ mutation makeUserNote { createUserNote(input: { owner: "default", datasetName: "user-note-test", title: "I think this is a thing", body: "##AND THIS IS A BODY\\n- asdggf\\n-asdf", tags: ["this", "and", "that"] }) { newActivityRecordEdge { node{ message detailObjects{ id key data type show importance tags } id commit linkedCommit type show importance tags } cursor } } } """ result = fixture_working_dir[2].execute(query) assert len(result['data']['createUserNote']['newActivityRecordEdge']['node']['id']) > 10 assert type(result['data']['createUserNote']['newActivityRecordEdge']['node']['id']) == str assert len(result['data']['createUserNote']['newActivityRecordEdge']['node']['commit']) == 40 assert type(result['data']['createUserNote']['newActivityRecordEdge']['node']['commit']) == str assert result['data']['createUserNote']['newActivityRecordEdge']['node']['linkedCommit'] == "no-linked-commit" assert result['data']['createUserNote']['newActivityRecordEdge']['node']['message'] == "I think this is a thing" assert len(result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['id']) > 10 assert type(result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['id']) == str assert len(result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['key']) > 10 assert type(result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['key']) == str assert "AND THIS IS A BODY" in result['data']['createUserNote']['newActivityRecordEdge']['node']['detailObjects'][0]['data'][0][1]
37.286385
138
0.500755
661
7,942
5.945537
0.155825
0.165394
0.134351
0.251908
0.893639
0.881679
0.881679
0.850891
0.850891
0.850891
0
0.007064
0.376102
7,942
212
139
37.462264
0.786075
0.038403
0
0.758427
0
0
0.614676
0.082851
0
0
0
0
0.134831
1
0.022472
false
0
0.095506
0
0.123596
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
42689f4b8bc5406fdaace14f5b28335c6c175970
23,940
py
Python
biserici_inlemnite/app/migrations/0030_auto_20210924_1627.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
biserici_inlemnite/app/migrations/0030_auto_20210924_1627.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
biserici_inlemnite/app/migrations/0030_auto_20210924_1627.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-09-24 13:27 from django.db import migrations, models import django.db.models.deletion import modelcluster.fields import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('nomenclatoare', '0013_historicalmaterialinvelitoareturle_materialinvelitoareturle'), ('app', '0029_auto_20210924_1550'), ] operations = [ migrations.AddField( model_name='descrierepage', name='finisaj_exterior_observatii', field=wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații'), ), migrations.AddField( model_name='descrierepage', name='finisaj_exterior_tip', field=models.ManyToManyField(blank=True, to='nomenclatoare.FinisajExterior', verbose_name='Tip'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_material', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inchidere_tambur', to='nomenclatoare.finisajexterior', verbose_name='Material'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_observatii', field=wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrila_cu_horj', field=models.BooleanField(default=False, verbose_name='Șindrila cu horj'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrila_cu_tesitura', field=models.BooleanField(default=False, verbose_name='Șindrila cu teșitură'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrila_grosime_medie', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (grosime medie)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrila_latime_medie', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (lățime medie)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrila_lungime', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (lungime)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrila_numar_straturi', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (număr straturi)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrila_pasul_baterii', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (pasul baterii)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrila_pasul_latuirii', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (pasul lățuirii)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrlia_esenta_lemnoasa', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inchidere_tambur_turn_sindrlia_esenta', to='nomenclatoare.esentalemnoasa', verbose_name='Șindrila (esență lemnoasă)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrlia_forma_botului', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inchidere_tambur_turn', to='nomenclatoare.tipbotsindrila', verbose_name='Șindrila (forma botului)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrlia_prelucrare', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inchidere_tambur_turn', to='nomenclatoare.tipprelucraresindrila', verbose_name='Șindrila (prelucrare)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrlia_tipul_de_batere', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inchidere_tambur_turn', to='nomenclatoare.tipbateresindrila', verbose_name='Șindrila (tipul de batere)'), ), migrations.AddField( model_name='descrierepage', name='inchidere_tambur_turn_sindrlia_tipul_prindere', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inchidere_tambur_turn', to='nomenclatoare.tipprinderesindrila', verbose_name='Șindrila (tipul de prindere)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_material', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_corp', to='nomenclatoare.finisajexterior', verbose_name='Material'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_observatii', field=wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrila_cu_horj', field=models.BooleanField(default=False, verbose_name='Șindrila cu horj'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrila_cu_tesitura', field=models.BooleanField(default=False, verbose_name='Șindrila cu teșitură'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrila_grosime_medie', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (grosime medie)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrila_latime_medie', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (lățime medie)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrila_lungime', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (lungime)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrila_numar_straturi', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (număr straturi)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrila_pasul_baterii', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (pasul baterii)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrila_pasul_latuirii', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (pasul lățuirii)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrlia_esenta_lemnoasa', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_corp_sindrlia_esenta', to='nomenclatoare.esentalemnoasa', verbose_name='Șindrila (esență lemnoasă)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrlia_forma_botului', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_corp', to='nomenclatoare.tipbotsindrila', verbose_name='Șindrila (forma botului)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrlia_prelucrare', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_corp', to='nomenclatoare.tipprelucraresindrila', verbose_name='Șindrila (prelucrare)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrlia_tipul_de_batere', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_corp', to='nomenclatoare.tipbateresindrila', verbose_name='Șindrila (tipul de batere)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_corp_sindrlia_tipul_prindere', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_corp', to='nomenclatoare.tipprinderesindrila', verbose_name='Șindrila (tipul de prindere)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_material', field=models.ManyToManyField(blank=True, to='nomenclatoare.MaterialInvelitoareTurle', verbose_name='Material'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_observatii', field=wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrila_cu_horj', field=models.BooleanField(default=False, verbose_name='Șindrila cu horj'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrila_cu_tesitura', field=models.BooleanField(default=False, verbose_name='Șindrila cu teșitură'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrila_grosime_medie', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (grosime medie)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrila_latime_medie', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (lățime medie)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrila_lungime', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (lungime)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrila_numar_straturi', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (număr straturi)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrila_pasul_baterii', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (pasul baterii)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrila_pasul_latuirii', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (pasul lățuirii)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrlia_esenta_lemnoasa', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turle_sindrlia_esenta', to='nomenclatoare.esentalemnoasa', verbose_name='Șindrila (esență lemnoasă)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrlia_forma_botului', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turle', to='nomenclatoare.tipbotsindrila', verbose_name='Șindrila (forma botului)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrlia_prelucrare', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turle', to='nomenclatoare.tipprelucraresindrila', verbose_name='Șindrila (prelucrare)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrlia_tipul_de_batere', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turle', to='nomenclatoare.tipbateresindrila', verbose_name='Șindrila (tipul de batere)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turle_sindrlia_tipul_prindere', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turle', to='nomenclatoare.tipprinderesindrila', verbose_name='Șindrila (tipul de prindere)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_material', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turn', to='nomenclatoare.finisajexterior', verbose_name='Material'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_observatii', field=wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrila_cu_horj', field=models.BooleanField(default=False, verbose_name='Șindrila cu horj'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrila_cu_tesitura', field=models.BooleanField(default=False, verbose_name='Șindrila cu teșitură'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrila_grosime_medie', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (grosime medie)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrila_latime_medie', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (lățime medie)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrila_lungime', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (lungime)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrila_numar_straturi', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (număr straturi)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrila_pasul_baterii', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (pasul baterii)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrila_pasul_latuirii', field=models.IntegerField(blank=True, null=True, verbose_name='Șindrila (pasul lățuirii)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrlia_esenta_lemnoasa', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turn_sindrlia_esenta', to='nomenclatoare.esentalemnoasa', verbose_name='Șindrila (esență lemnoasă)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrlia_forma_botului', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turn', to='nomenclatoare.tipbotsindrila', verbose_name='Șindrila (forma botului)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrlia_prelucrare', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turn', to='nomenclatoare.tipprelucraresindrila', verbose_name='Șindrila (prelucrare)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrlia_tipul_de_batere', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turn', to='nomenclatoare.tipbateresindrila', verbose_name='Șindrila (tipul de batere)'), ), migrations.AddField( model_name='descrierepage', name='invelitoare_turn_sindrlia_tipul_prindere', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='invelitoare_turn', to='nomenclatoare.tipprinderesindrila', verbose_name='Șindrila (tipul de prindere)'), ), migrations.AlterField( model_name='ctitori', name='page', field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.PROTECT, related_name='ctitori', to='app.istoricpage'), ), migrations.AlterField( model_name='descrierepage', name='fundatia', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='p_biserici', to='nomenclatoare.tipfundatie', verbose_name='Tip'), ), migrations.AlterField( model_name='descrierepage', name='sistem_in_catei', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='p_biserici', to='nomenclatoare.tipstructuracatei', verbose_name='Tip'), ), migrations.AlterField( model_name='descrierepage', name='sistem_in_cheotoare', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='p_biserici', to='nomenclatoare.tipstructuracheotoare', verbose_name='Tip'), ), migrations.AlterField( model_name='mesteri', name='page', field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.PROTECT, related_name='mesteri', to='app.istoricpage'), ), migrations.AlterField( model_name='personalitati', name='page', field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.PROTECT, related_name='personalitati', to='app.istoricpage'), ), migrations.AlterField( model_name='zugravi', name='page', field=modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.PROTECT, related_name='zugravi', to='app.istoricpage'), ), migrations.CreateModel( name='FinisajePronaos', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), ('observatii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')), ('element', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='nomenclatoare.elementbiserica')), ('material', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='nomenclatoare.finisaj')), ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='finisaje_pronaos', to='app.descrierepage')), ], options={ 'ordering': ['sort_order'], 'abstract': False, }, ), migrations.CreateModel( name='FinisajePortic', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), ('observatii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')), ('element', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='nomenclatoare.elementbiserica')), ('material', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='nomenclatoare.finisaj')), ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='finisaje_portic', to='app.descrierepage')), ], options={ 'ordering': ['sort_order'], 'abstract': False, }, ), migrations.CreateModel( name='FinisajeNaos', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), ('observatii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')), ('element', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='nomenclatoare.elementbiserica')), ('material', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='nomenclatoare.finisaj')), ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='finisaje_naos', to='app.descrierepage')), ], options={ 'ordering': ['sort_order'], 'abstract': False, }, ), migrations.CreateModel( name='FinisajeAltar', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), ('observatii', wagtail.core.fields.RichTextField(blank=True, null=True, verbose_name='Observații')), ('element', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='nomenclatoare.elementbiserica')), ('material', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='nomenclatoare.finisaj')), ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='finisaje_altar', to='app.descrierepage')), ], options={ 'ordering': ['sort_order'], 'abstract': False, }, ), ]
56.595745
237
0.662448
2,392
23,940
6.397993
0.061037
0.04293
0.056913
0.074425
0.960141
0.958442
0.957331
0.939166
0.933155
0.921785
0
0.00193
0.220677
23,940
422
238
56.729858
0.818352
0.001921
0
0.701923
1
0
0.285033
0.153985
0
0
0
0
0
1
0
false
0
0.009615
0
0.016827
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
35fda91a8476ad9b8b9394d146e4e43a5ba7cc28
8,773
py
Python
test/k8s_metrics_tests/metric_data/stats.py
alexanderldavis/splunk-connect-for-kubernetes
01bf0876e5f355b26825821a3b1d1a398cde4fde
[ "Apache-2.0" ]
null
null
null
test/k8s_metrics_tests/metric_data/stats.py
alexanderldavis/splunk-connect-for-kubernetes
01bf0876e5f355b26825821a3b1d1a398cde4fde
[ "Apache-2.0" ]
null
null
null
test/k8s_metrics_tests/metric_data/stats.py
alexanderldavis/splunk-connect-for-kubernetes
01bf0876e5f355b26825821a3b1d1a398cde4fde
[ "Apache-2.0" ]
1
2022-03-16T09:54:43.000Z
2022-03-16T09:54:43.000Z
from test.k8s_metrics_tests.metric_data.helper import ( greater, greater_or_equal, should_exist, some_should_be_greater, ) stats_metrics = [ { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.cpu.cfs.periods", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.cpu.cfs.throttled_periods", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.cpu.cfs.throttled_time", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.cpu.usage.total", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.cpu.usage.user", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.cpu.usage.system", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.cpu.load_average", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.diskio.*.stats.Async", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.diskio.*.stats.Read", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.diskio.*.Sync", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.diskio.*.stats.Total", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.diskio.*.stats.Write", "selector": "node", }, { "assertions": [[greater_or_equal, 0]], "name": "kube.node.diskio.*.minor", "selector": "node", }, { "assertions": [[greater_or_equal, 0]], "name": "kube.node.diskio.*.major", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.filesystem.available", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.base_usage", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.filesystem.capacity", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.filesystem.inodes", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.filesystem.inodes_free", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.io_in_progress", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.io_time", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.read_time", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.reads_completed", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.reads_merged", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.sectors_read", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.sectors_written", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.filesystem.usage", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.weighted_io_time", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.write_time", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.writes_completed", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.filesystem.writes_merged", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.memory.cache", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.memory.container_data.pgfault", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.memory.container_data.pgmajfault", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.memory.failcnt", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.memory.hierarchical_data.pgfault", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.memory.hierarchical_data.pgmajfault", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.memory.max_usage", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.memory.rss", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.memory.swap", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.memory.usage", "selector": "node", }, { "assertions": [[should_exist, None], [greater, 0]], "name": "kube.node.memory.working_set", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.tasks_stats.nr_io_wait", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.tasks_stats.nr_running", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.tasks_stats.nr_sleeping", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.tasks_stats.nr_stopped", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.tasks_stats.nr_uninterruptible", "selector": "node", }, { "assertions": [[should_exist, None], [some_should_be_greater, 0]], "name": "kube.node.network.*.rx_bytes", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.network.*.rx_dropped", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.network.*.rx_errors", "selector": "node", }, { "assertions": [[should_exist, None], [some_should_be_greater, 0]], "name": "kube.node.network.*.rx_packets", "selector": "node", }, { "assertions": [[should_exist, None], [some_should_be_greater, 0]], "name": "kube.node.network.*.tx_bytes", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.network.*.tx_dropped", "selector": "node", }, { "assertions": [[should_exist, None], [greater_or_equal, 0]], "name": "kube.node.network.*.tx_errors", "selector": "node", }, { "assertions": [[should_exist, None], [some_should_be_greater, 0]], "name": "kube.node.network.*.tx_packets", "selector": "node", }, ]
30.674825
74
0.527528
861
8,773
5.166086
0.097561
0.061826
0.111286
0.160746
0.929631
0.929631
0.927833
0.91839
0.910522
0.904227
0
0.008776
0.272655
8,773
285
75
30.782456
0.688293
0
0
0.388693
0
0
0.352445
0.187165
0
0
0
0
0.194346
1
0
false
0
0.003534
0
0.003534
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
c470d291cc472ef0b6f42b9b6e8b613ef17167b4
290
py
Python
config/settings/__init__.py
hyphae/apis-service_center
0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1
[ "Apache-2.0" ]
null
null
null
config/settings/__init__.py
hyphae/apis-service_center
0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1
[ "Apache-2.0" ]
3
2021-03-20T10:35:08.000Z
2022-03-21T16:54:05.000Z
config/settings/__init__.py
hyphae/apis-service_center
0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1
[ "Apache-2.0" ]
null
null
null
"""設定ファイルを切り替えて起動できるようにするため settings.py を settings パッケージ化 以下のコマンドで起動時に設定ファイルを指定することができる. - $ ./manage.py runserver --settings=config.settings.deploy_example ... - $ uwsgi --env DJANGO_SETTINGS_MODULE=config.settings.deploy_example ... 指定しなければ base.py の内容が有効になる. """ from .base import *
29
74
0.775862
31
290
7.129032
0.645161
0.126697
0.180995
0.244344
0
0
0
0
0
0
0
0
0.103448
290
9
75
32.222222
0.85
0.951724
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
672cd3a0f283590f989e96f8e31e13b4d62cdc8d
6,429
py
Python
tests/segmentation_test.py
BHAR-HumanActivity/B-HAR
2bd6960d79de6d7cf4241e44dd8e269ffc00b1d3
[ "MIT" ]
1
2021-03-06T16:25:39.000Z
2021-03-06T16:25:39.000Z
tests/segmentation_test.py
BHAR-HumanActivity/B-HAR
2bd6960d79de6d7cf4241e44dd8e269ffc00b1d3
[ "MIT" ]
null
null
null
tests/segmentation_test.py
BHAR-HumanActivity/B-HAR
2bd6960d79de6d7cf4241e44dd8e269ffc00b1d3
[ "MIT" ]
2
2021-02-02T16:21:16.000Z
2021-08-30T02:59:15.000Z
import unittest from b_har.baseline import B_HAR from b_har.utility.configurator import Configurator from datetime import datetime import warnings class SegmentationTestCase(unittest.TestCase): p = '/home/ict/PycharmProjects/config.cfg' ds_path = '/home/ict/B-HAR Compatible/' def test_segmentation_daphnet(self): Configurator(self.p).set('settings', 'log_dir', 'logs') bhar = B_HAR(self.p) print('%s -> %s' % ('daphnet', str(datetime.fromtimestamp(datetime.timestamp(datetime.now()))).split('.')[0])) Configurator(self.p).set('dataset', 'path', '%s%s' % (self.ds_path, 'daphnet')) Configurator(self.p).set('settings', 'data_treatment', 'segmentation') Configurator(self.p).set('dataset', 'header_type', 'tdcp') Configurator(self.p).set('settings', 'time', '4') Configurator(self.p).set('settings', 'sampling_frequency', '64') Configurator(self.p).set('settings', 'overlap', '0.5') Configurator(self.p).set('cleaning', 'low_cut', '20') bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc']) self.assertEqual(True, True) def test_segmentation_hhar_phone(self): Configurator(self.p).set('settings', 'log_dir', 'logs') bhar = B_HAR(self.p) print( '%s -> %s' % ('hhar_phone', str(datetime.fromtimestamp(datetime.timestamp(datetime.now()))).split('.')[0])) Configurator(self.p).set('dataset', 'path', '%s%s' % (self.ds_path, 'hhar_phone')) Configurator(self.p).set('settings', 'data_treatment', 'segmentation') Configurator(self.p).set('dataset', 'header_type', 'tdcp') Configurator(self.p).set('settings', 'time', '2') Configurator(self.p).set('settings', 'sampling_frequency', '200') Configurator(self.p).set('settings', 'overlap', '1') Configurator(self.p).set('cleaning', 'filter', 'no') bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc']) self.assertEqual(True, True) def test_segmentation_hhar_watch(self): Configurator(self.p).set('settings', 'log_dir', 'logs') bhar = B_HAR(self.p) print( '%s -> %s' % ('hhar_watch', str(datetime.fromtimestamp(datetime.timestamp(datetime.now()))).split('.')[0])) Configurator(self.p).set('dataset', 'path', '%s%s' % (self.ds_path, 'hhar_watch')) Configurator(self.p).set('settings', 'data_treatment', 'segmentation') Configurator(self.p).set('dataset', 'header_type', 'tdcp') Configurator(self.p).set('settings', 'time', '2') Configurator(self.p).set('settings', 'sampling_frequency', '200') Configurator(self.p).set('settings', 'overlap', '1') Configurator(self.p).set('cleaning', 'filter', 'no') bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc']) self.assertEqual(True, True) def test_segmentation_mhealth(self): Configurator(self.p).set('settings', 'log_dir', 'logs') bhar = B_HAR(self.p) print('%s -> %s' % ('mhealth', str(datetime.fromtimestamp(datetime.timestamp(datetime.now()))).split('.')[0])) Configurator(self.p).set('dataset', 'path', '%s%s' % (self.ds_path, 'mhealth')) Configurator(self.p).set('settings', 'data_treatment', 'segmentation') Configurator(self.p).set('dataset', 'header_type', 'dcp') Configurator(self.p).set('settings', 'time', '5') Configurator(self.p).set('settings', 'sampling_frequency', '50') Configurator(self.p).set('settings', 'overlap', '2.5') Configurator(self.p).set('cleaning', 'low_cut', '20') bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc']) self.assertEqual(True, True) def test_segmentation_papam(self): Configurator(self.p).set('settings', 'log_dir', 'logs') bhar = B_HAR(self.p) print('%s -> %s' % ('papam', str(datetime.fromtimestamp(datetime.timestamp(datetime.now()))).split('.')[0])) Configurator(self.p).set('dataset', 'path', '%s%s' % (self.ds_path, 'papam')) Configurator(self.p).set('settings', 'data_treatment', 'segmentation') Configurator(self.p).set('dataset', 'header_type', 'tdcp') Configurator(self.p).set('settings', 'time', '2') Configurator(self.p).set('settings', 'sampling_frequency', '100') Configurator(self.p).set('settings', 'overlap', '0') Configurator(self.p).set('cleaning', 'filter', 'no') bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc']) self.assertEqual(True, True) def test_segmentation_wisdm_v1(self): Configurator(self.p).set('settings', 'log_dir', 'logs') bhar = B_HAR(self.p) print('%s -> %s' % ('wisdm_v1', str(datetime.fromtimestamp(datetime.timestamp(datetime.now()))).split('.')[0])) Configurator(self.p).set('dataset', 'path', '%s%s' % (self.ds_path, 'wisdm_v1')) Configurator(self.p).set('settings', 'data_treatment', 'segmentation') Configurator(self.p).set('dataset', 'header_type', 'tdcp') Configurator(self.p).set('settings', 'time', '10') Configurator(self.p).set('settings', 'sampling_frequency', '20') Configurator(self.p).set('settings', 'overlap', '0') Configurator(self.p).set('cleaning', 'filter', 'no') bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc']) self.assertEqual(True, True) def test_segmentation_wisdm_v2(self): Configurator(self.p).set('settings', 'log_dir', 'logs') bhar = B_HAR(self.p) print('%s -> %s' % ('wisdm_v2', str(datetime.fromtimestamp(datetime.timestamp(datetime.now()))).split('.')[0])) Configurator(self.p).set('dataset', 'path', '%s%s' % (self.ds_path, 'wisdm_v2')) Configurator(self.p).set('settings', 'data_treatment', 'segmentation') Configurator(self.p).set('dataset', 'header_type', 'tdcp') Configurator(self.p).set('settings', 'time', '10') Configurator(self.p).set('settings', 'sampling_frequency', '20') Configurator(self.p).set('settings', 'overlap', '0') Configurator(self.p).set('cleaning', 'filter', 'no') bhar.get_baseline(['K-NN', 'LDA', 'QDA', 'RF', 'DT'], ['m1_acc']) self.assertEqual(True, True) # ----------------------------- if __name__ == '__main__': warnings.filterwarnings('ignore') unittest.main()
54.483051
119
0.609426
784
6,429
4.875
0.116071
0.082418
0.249084
0.29304
0.894035
0.893773
0.876243
0.843276
0.843276
0.843276
0
0.011099
0.173122
6,429
117
120
54.948718
0.707863
0.004511
0
0.615385
0
0
0.240857
0.005627
0
0
0
0
0.067308
1
0.067308
false
0
0.048077
0
0.144231
0.067308
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
6734a277815f4a34c7c7316684d0d6705a71e117
5,554
py
Python
welford/test_welford.py
a-mitani/welford
b7f96b9ad5e803d6de665c7df1cdcfb2a53bddc8
[ "MIT" ]
6
2021-02-23T16:50:17.000Z
2022-02-05T18:26:07.000Z
welford/test_welford.py
a-mitani/welford
b7f96b9ad5e803d6de665c7df1cdcfb2a53bddc8
[ "MIT" ]
2
2021-07-31T11:01:55.000Z
2021-08-16T15:11:57.000Z
welford/test_welford.py
a-mitani/welford
b7f96b9ad5e803d6de665c7df1cdcfb2a53bddc8
[ "MIT" ]
null
null
null
import numpy as np from welford import Welford def test_init(): a = np.array([[0]]) w = Welford(a) assert w.count == 1 assert np.allclose(w.mean, np.array([0])) assert np.alltrue(np.isnan(w.var_s)) assert np.allclose(w.var_p, np.array([0])) a = np.array([[0], [1]]) w = Welford(a) assert w.count == 2 assert np.allclose(w.mean, np.array([0.5])) assert np.allclose(w.var_s, np.array([0.5])) assert np.allclose(w.var_p, np.array([0.25])) a = np.array([[0, 100], [1, 110], [2, 120], [3, 130], [4, 140]]) w = Welford(a) assert w.count == 5 assert np.allclose(w.mean, np.array([2, 120])) assert np.allclose(w.var_s, np.array([2.5, 250])) assert np.allclose(w.var_p, np.array([2, 200])) a = np.arange(60).reshape(3, 4, 5) w = Welford(a) assert w.mean.shape == w.var_s.shape == w.var_p.shape == (4, 5) assert np.allclose(w.mean, np.mean(a, axis=0)) assert np.allclose(w.var_s, np.var(a, axis=0, ddof=1)) assert np.allclose(w.var_p, np.var(a, axis=0, ddof=0)) def test_add(): w = Welford() w.add(np.array([0, 100])) assert np.allclose(w.mean, np.array([0, 100])) assert np.alltrue(np.isnan(w.var_s)) assert np.allclose(w.var_p, np.array([0, 0])) w.add(np.array([1, 110])) assert np.allclose(w.mean, np.array([0.5, 105])) assert np.allclose(w.var_s, np.array([0.5, 50])) assert np.allclose(w.var_p, np.array([0.25, 25])) w = Welford() w.add(np.array([[0, 100, 1000], [2, 220, 2200]])) w.add(np.array([[1, 110, 1100], [2, 220, 2200]])) assert np.allclose(w.mean, np.array([[0.5, 105, 1050], [2, 220, 2200]])) assert np.allclose(w.var_s, np.array([[0.5, 50, 5000], [0, 0, 0]])) assert np.allclose(w.var_p, np.array([[0.25, 25, 2500], [0, 0, 0]])) def test_add_all(): w = Welford() a = np.array([[0, 100], [1, 110], [2, 120], [3, 130], [4, 140]]) w.add_all(a) assert w.count == 5 assert np.allclose(w.mean, np.array([2, 120])) assert np.allclose(w.var_s, np.array([2.5, 250])) assert np.allclose(w.var_p, np.array([2, 200])) w = Welford() a = np.array([[0, 100]]) w.add_all(a) assert w.count == 1 assert np.allclose(w.mean, np.array([0, 100])) assert np.alltrue(np.isnan(w.var_s)) assert np.allclose(w.var_p, np.array([0, 0])) a = np.array([[1, 110], [2, 120], [3, 130], [4, 140]]) w.add_all(a) assert w.count == 5 assert np.allclose(w.mean, np.array([2, 120])) assert np.allclose(w.var_s, np.array([2.5, 250])) assert np.allclose(w.var_p, np.array([2, 200])) w = Welford() a = np.array([[[0, 100, 1000], [2, 220, 2200]], [[1, 110, 1100], [2, 220, 2200]]]) w.add_all(a) assert w.count == 2 assert np.allclose(w.mean, np.array([[0.5, 105, 1050], [2, 220, 2200]])) assert np.allclose(w.var_s, np.array([[0.5, 50, 5000], [0, 0, 0]])) assert np.allclose(w.var_p, np.array([[0.25, 25, 2500], [0, 0, 0]])) def test_rollback(): a = np.array([[0, 100]]) w = Welford(a) a = np.array([1, 110]) w.add(a) assert np.allclose(w.mean, np.array([0.5, 105])) assert np.allclose(w.var_s, np.array([0.5, 50])) assert np.allclose(w.var_p, np.array([0.25, 25])) w.rollback() a = np.array([2, 120]) w.add(a) assert w.count == 2 assert np.allclose(w.mean, np.array([1, 110])) assert np.allclose(w.var_s, np.array([2, 200])) assert np.allclose(w.var_p, np.array([1, 100])) a = np.array([[2, 120], [3, 130]]) w.add_all(a) w.rollback() assert w.count == 2 assert np.allclose(w.mean, np.array([1, 110])) assert np.allclose(w.var_s, np.array([2, 200])) assert np.allclose(w.var_p, np.array([1, 100])) w = Welford() w.add(np.array([[0, 100, 1000], [2, 220, 2200]])) w.add(np.array([[1, 110, 1100], [2, 220, 2200]])) w.rollback() w.add(np.array([[2, 120, 1200], [2, 220, 2200]])) assert np.allclose(w.mean, np.array([[1.0, 110, 1100], [2, 220, 2200]])) assert np.allclose(w.var_s, np.array([[2.0, 200, 20000], [0, 0, 0]])) assert np.allclose(w.var_p, np.array([[1, 100, 10000], [0, 0, 0]])) def test_merge(): a = np.array([[0, 100], [1, 110], [2, 120], [3, 130], [4, 140]]) wa = Welford(a) b = np.array([[5, 150], [6, 160], [7, 170]]) wb = Welford(b) wa.merge(wb) assert wa.count == 8 assert np.allclose(wa.mean, np.array([3.5, 135])) assert np.allclose(wa.var_s, np.array([6, 600])) assert np.allclose(wa.var_p, np.array([5.25, 525])) wa.rollback() c = np.array([[5, 150], [6, 160], [7, 170], [8, 180], [9, 190], [10, 200]]) wc = Welford(c) wa.merge(wc) assert wa.count == 11 assert np.allclose(wa.mean, np.array([5, 150])) assert np.allclose(wa.var_s, np.array([11, 1100])) assert np.allclose(wa.var_p, np.array([10, 1000])) a = np.array([[0, 100]]) wa = Welford(a) b = np.array([[1, 110]]) wb = Welford(b) wa.merge(wb) assert wa.count == 2 assert np.allclose(wa.mean, np.array([0.5, 105])) assert np.allclose(wa.var_s, np.array([0.5, 50])) assert np.allclose(wa.var_p, np.array([0.25, 25])) wa = Welford(np.array([[[0, 100, 1000], [2, 220, 2200]]])) wb = Welford(np.array([[[1, 110, 1100], [2, 220, 2200]]])) wa.merge(wb) assert wa.count == 2 assert np.allclose(wa.mean, np.array([[0.5, 105, 1050], [2, 220, 2200]])) assert np.allclose(wa.var_s, np.array([[0.5, 50, 5000], [0, 0, 0]])) assert np.allclose(wa.var_p, np.array([[0.25, 25, 2500], [0, 0, 0]]))
34.496894
86
0.564278
1,026
5,554
3.004873
0.074074
0.172559
0.280247
0.231593
0.883555
0.856633
0.825495
0.771327
0.69121
0.674992
0
0.145467
0.201656
5,554
160
87
34.7125
0.549842
0
0
0.614815
0
0
0
0
0
0
0
0
0.525926
1
0.037037
false
0
0.014815
0
0.051852
0
0
0
0
null
0
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
8
67538b323182ed0ce821ca5d681c08210fb135d5
18,838
py
Python
opensand-testbed/testbeds.py
jhuwyler/qpep
3b06f02f749cbc14ff9988ad6d9411f0a666f5f9
[ "Unlicense" ]
null
null
null
opensand-testbed/testbeds.py
jhuwyler/qpep
3b06f02f749cbc14ff9988ad6d9411f0a666f5f9
[ "Unlicense" ]
null
null
null
opensand-testbed/testbeds.py
jhuwyler/qpep
3b06f02f749cbc14ff9988ad6d9411f0a666f5f9
[ "Unlicense" ]
null
null
null
import subprocess import os from loguru import logger import nclib import docker import time import xml.etree.ElementTree as ET from dotenv import load_dotenv load_dotenv() class BasicTestbed(object): def __init__(self, host_ip="192.168.1.199", display_number=0, linux=False): self.host_ip = host_ip self.display_number = display_number self.linux = linux def start_testbed(self): # First, shut down any old running testbeds logger.debug("Shutting Down Previous Testbeds") subprocess.call(["docker-compose", "down"], stderr=subprocess.DEVNULL) # The DISPLAY env variable points to an X server for showing OpenSAND UI my_env = {**os.environ, 'DISPLAY': str(self.host_ip) + ":" + str(self.display_number)} logger.debug("Starting Testbed Containers") # Start the docker containers subprocess.call(["docker-compose", "up", "-d"], env=my_env) # Wait for the opensand container to initialize then send a command to run the simulation logger.debug("Starting Opensand Platform") opensand_launched = False while not opensand_launched: try: nc = nclib.Netcat(('localhost', int(os.getenv('SAT_PORT_NUMBER'))), verbose=False) nc.recv_until(b'help') nc.recv() nc.send(b'status\n') response = nc.recv() opensand_launched = ('SAT' in str(response)) and ('GW0' in str(response)) and ('ST1' in str(response)) except nclib.errors.NetcatError: continue time.sleep(1) # it often takes a little while for Opensand to identify all hosts logger.debug("Launching Opensand Simulation") nc.send(b'start\n') simulation_running = False while not simulation_running: nc.send(b'status\n') response = str(nc.recv()) # wait for all three components (satellite, terminal and gateway) to start running simulation_running = response.count('RUNNING') > 3 # now that the network is running, it is possible to add ip routes from user terminal through the network logger.debug("Connecting User Terminal to Satellite Spot Beam") docker_client = docker.from_env() terminal_container = docker_client.containers.get(os.getenv("ST_CONTAINER_NAME")) terminal_container.exec_run("/sbin/ip route delete default") terminal_container.exec_run("/sbin/ip route add default via " + str(os.getenv("GW_NETWORK_HEAD")) + ".0.3") logger.success("OpeSAND Testbed Running") def stop_testbed(self): logger.debug("Shutting Down Previous Testbeds") subprocess.call(["docker-compose", "down"]) def connect_terminal_workstation(self): logger.debug("Starting User Workstation") docker_client = docker.from_env() workstation_container = docker_client.containers.get(os.getenv("WS_ST_CONTAINER_NAME")) logger.debug("Adding External Route to Docker Host for GUI Services") workstation_container.exec_run("ip route add " + str(self.host_ip) + " via " + str(os.getenv("GUI_NETWORK_HEAD"))+".0.1 dev eth1") logger.debug("Connecting User Workstation to Satellite Router") workstation_container.exec_run("ip route del default") workstation_container.exec_run("ip route add default via " + str(os.getenv("ST_NETWORK_HEAD"))+".0.4") logger.success("Client Workstation Connected to Satellite Network") def connect_sitespeed_workstation(self): logger.debug("Starting Sitespeed Workstation") docker_client = docker.from_env() sitespeed_container = docker_client.containers.get(os.getenv("SITESPEED_CONTAINER_NAME")) sitespeed_container.exec_run("ip route del default") sitespeed_container.exec_run("ip route add default via " + str(os.getenv("ST_NETWORK_HEAD"))+".0.4") logger.success("Sitespeed Workstation Connected to Satellite Network") def launch_wireshark(self): logger.debug("Starting Wireshark on Satellite Endpoint") docker_client = docker.from_env() satellite_container = docker_client.containers.get(os.getenv("SAT_CONTAINER_NAME")) satellite_container.exec_run("wireshark", detach=True) def launch_web_browser(self): logger.debug("Launching Web Browser on User Workstation") docker_client = docker.from_env() workstation_container = docker_client.containers.get(os.getenv("WS_ST_CONTAINER_NAME")) workstation_container.exec_run("qupzilla", detach=True) def set_downlink_attenuation(self, attenuation_value=0): logger.debug("Setting OpenSAND Downlink Attenuation to " + str(attenuation_value)) gw_path = 'satellite/attenuation_scenario/gw0/plugins/ideal.conf' st_path = 'satellite/attenuation_scenario/st1/plugins/ideal.conf' gw_conf = ET.parse(gw_path) st_conf = ET.parse(st_path) xml_confs = [gw_conf.getroot(), st_conf.getroot()] for conf in xml_confs: attenuation_settings = conf.findall('ideal/ideal_attenuations/ideal_attenuation') for setting in attenuation_settings: if setting.attrib["link"] == "down": setting.set("attenuation_value", str(attenuation_value)) gw_conf.write(gw_path) st_conf.write(st_path) logger.debug("Updated Downlink Attenuations") def set_plr_percentage(self, plr_percentage, st_out=False, gw_out=True): logger.debug("Configuring Packet Loss Rate") docker_client = docker.from_env() containers_to_mod = [] if st_out: logger.debug("Setting PLR for ST->GW at " + str(plr_percentage)) containers_to_mod.append(docker_client.containers.get(os.getenv("ST_CONTAINER_NAME"))) if gw_out: logger.debug("Setting PLR for GW->ST at " + str(plr_percentage)) containers_to_mod.append(docker_client.containers.get(os.getenv("GW_CONTAINER_NAME"))) for container in containers_to_mod: response = container.exec_run('/sbin/tc qdisc change dev opensand_tun root netem loss ' + str(plr_percentage) + "%", stderr=True, stdout=True) if "RTNETLINK" in str(response.output): container.exec_run('/sbin/tc qdisc add dev opensand_tun root netem loss ' + str(plr_percentage) + "%", stderr=True, stdout=True) logger.debug("Updated PLR to " + str(plr_percentage) + "%") def run_attenuation_scenario(self): logger.debug("Running Attenuation Scenario") # wait to connect to opensand opensand_launched = False nc = None while not opensand_launched: try: nc = nclib.Netcat(('localhost', int(os.getenv('SAT_PORT_NUMBER'))), verbose=False) nc.recv_until(b'help') nc.recv() opensand_launched = True except: continue logger.debug("Connected to NC Listener") # stop running scenarios if any nc.send(b'stop\n') nc.recv_until(b'OK', timeout=10) nc.recv() # opensand reports that the testbed has stopped a little before it actually has time.sleep(1) # load attenuation scenario nc.send(b'scenario attenuation_scenario\n') nc.recv_until(b'OK', timeout=10) nc.recv() # start new scenario nc.send(b'start\n') nc.recv_until(b'OK', timeout=10) logger.debug("Scenario Restarted") nc.recv() # ensure that the terminal modem is still connected docker_client = docker.from_env() terminal_container = docker_client.containers.get(os.getenv("ST_CONTAINER_NAME")) #terminal_container.exec_run("/sbin/ip route delete default") terminal_container.exec_run("/sbin/ip route add default via " + str(os.getenv("GW_NETWORK_HEAD"))+".0.3") logger.debug("Attenuation Scenario Launched") class LeoTestbed(BasicTestbed): def start_testbed(self): # First, shut down any old running testbeds logger.debug("Shutting Down Previous Testbeds") subprocess.call(["docker-compose", "down"], stderr=subprocess.DEVNULL) # The DISPLAY env variable points to an X server for showing OpenSAND UI my_env = {**os.environ, 'DISPLAY': str(self.host_ip) + ":" + str(self.display_number)} logger.debug("Starting Testbed Containers") # Start the docker containers subprocess.call(["docker-compose", "up", "-d"], env=my_env) # Wait for the opensand container to initialize then send a command to run the simulation logger.debug("Starting Opensand Platform") opensand_launched = False while not opensand_launched: try: nc = nclib.Netcat(('localhost', int(os.getenv('SAT_PORT_NUMBER'))), verbose=False) nc.recv_until(b'help') nc.recv() nc.send(b'status\n') response = nc.recv() opensand_launched = ('SAT' in str(response)) and ('GW0' in str(response)) and ('ST1' in str(response)) except nclib.errors.NetcatError: continue logger.debug("Loading Iridium Delay Simulation") nc.send(b'scenario delay_scenario\n') nc.recv_until(b'OK', timeout=10) nc.recv() time.sleep(1) # it often takes a little while for Opensand to identify all hosts logger.debug("Launching Opensand Simulation") nc.send(b'start\n') simulation_running = False while not simulation_running: nc.send(b'status\n') response = str(nc.recv()) # wait for all three components (satellite, terminal and gateway) to start running simulation_running = response.count('RUNNING') > 3 # now that the network is running, it is possible to add ip routes from user terminal through the network logger.debug("Connecting User Terminal to Satellite Spot Beam") docker_client = docker.from_env() terminal_container = docker_client.containers.get(os.getenv("ST_CONTAINER_NAME")) terminal_container.exec_run("/sbin/ip route delete default") terminal_container.exec_run("/sbin/ip route add default via " + str(os.getenv("GW_NETWORK_HEAD")) + ".0.3") logger.success("OpeSAND Testbed Running") class BasicPEPTestbed(object): def __init__(self, host_ip="192.168.1.199", display_number=0, linux=False): self.host_ip = host_ip self.display_number = display_number self.linux = linux def start_testbed(self): # First, shut down any old running testbeds logger.debug("Shutting Down Previous Testbeds") subprocess.call(["docker-compose", "down"], stderr=subprocess.DEVNULL) # The DISPLAY env variable points to an X server for showing OpenSAND UI my_env = {**os.environ, 'DISPLAY': str(self.host_ip) + ":" + str(self.display_number)} logger.debug("Starting Testbed Containers") # Start the docker containers subprocess.call(["docker-compose", "up", "-d"], env=my_env) # Wait for the opensand container to initialize then send a command to run the simulation logger.debug("Starting Opensand Platform") opensand_launched = False while not opensand_launched: try: nc = nclib.Netcat(('localhost', int(os.getenv('SAT_PORT_NUMBER'))), verbose=False) nc.recv_until(b'help') nc.recv() nc.send(b'status\n') response = nc.recv() opensand_launched = ('SAT' in str(response)) and ('GW0' in str(response)) and ('ST1' in str(response)) except nclib.errors.NetcatError: continue time.sleep(1) # it often takes a little while for Opensand to identify all hosts logger.debug("Launching Opensand Simulation") nc.send(b'start\n') simulation_running = False while not simulation_running: nc.send(b'status\n') response = str(nc.recv()) # wait for all three components (satellite, terminal and gateway) to start running simulation_running = response.count('RUNNING') > 3 # now that the network is running, it is possible to add ip routes from user terminal through the network logger.debug("Connecting User Terminal to Satellite Spot Beam") docker_client = docker.from_env() terminal_container = docker_client.containers.get(os.getenv("ST_CONTAINER_NAME")) terminal_container.exec_run("/sbin/ip route delete default") terminal_container.exec_run("/sbin/ip route add default via " + str(os.getenv("GW_NETWORK_HEAD")) + ".0.3") logger.debug("Starting PEPsal on terminal workstation") terminal_client = docker_client.containers.get(os.getenv("ST_CONTAINER_NAME")) terminal_client.exec_run("bash /opensand_config/launch_pepsal.sh") logger.debug("Deploying PEPsal on Gateway Endpoint") gateway_client = docker_client.containers.get(os.getenv("GW_CONTAINER_NAME")) gateway_client.exec_run("bash /opensand_config/launch_pepsal.sh") logger.success("OpeSAND Testbed Running") def stop_testbed(self): logger.debug("Shutting Down Previous Testbeds") subprocess.call(["docker-compose", "down"]) def connect_terminal_workstation(self): logger.debug("Starting User Workstation") docker_client = docker.from_env() workstation_container = docker_client.containers.get(os.getenv("WS_ST_CONTAINER_NAME")) logger.debug("Adding External Route to Docker Host for GUI Services") workstation_container.exec_run("ip route add " + str(self.host_ip) + " via " + str(os.getenv("GUI_NETWORK_HEAD"))+".0.1 dev eth1") logger.debug("Connecting User Workstation to Satellite Router") workstation_container.exec_run("ip route del default") workstation_container.exec_run("ip route add default via " + str(os.getenv("ST_NETWORK_HEAD"))+".0.4") logger.success("Client Workstation Connected to Satellite Network") def connect_sitespeed_workstation(self): logger.debug("Starting Sitespeed Workstation") docker_client = docker.from_env() sitespeed_container = docker_client.containers.get(os.getenv("SITESPEED_CONTAINER_NAME")) sitespeed_container.exec_run("ip route del default") sitespeed_container.exec_run("ip route add default via " + str(os.getenv("ST_NETWORK_HEAD"))+".0.4") logger.success("Sitespeed Workstation Connected to Satellite Network") def launch_wireshark(self): logger.debug("Starting Wireshark on Satellite Endpoint") docker_client = docker.from_env() satellite_container = docker_client.containers.get(os.getenv("SAT_CONTAINER_NAME")) satellite_container.exec_run("wireshark", detach=True) def launch_web_browser(self): logger.debug("Launching Web Browser on User Workstation") docker_client = docker.from_env() workstation_container = docker_client.containers.get(os.getenv("WS_ST_CONTAINER_NAME")) workstation_container.exec_run("qupzilla", detach=True) def set_downlink_attenuation(self, attenuation_value=0): logger.debug("Setting OpenSAND Downlink Attenuation to " + str(attenuation_value)) gw_path = 'satellite/attenuation_scenario/gw0/plugins/ideal.conf' st_path = 'satellite/attenuation_scenario/st1/plugins/ideal.conf' gw_conf = ET.parse(gw_path) st_conf = ET.parse(st_path) xml_confs = [gw_conf.getroot(), st_conf.getroot()] for conf in xml_confs: attenuation_settings = conf.findall('ideal/ideal_attenuations/ideal_attenuation') for setting in attenuation_settings: if setting.attrib["link"] == "down": setting.set("attenuation_value", str(attenuation_value)) gw_conf.write(gw_path) st_conf.write(st_path) logger.debug("Updated Downlink Attenuations") def set_plr_percentage(self, plr_percentage, st_out=False, gw_out=True): logger.debug("Configuring Packet Loss Rate") docker_client = docker.from_env() containers_to_mod = [] if st_out: logger.debug("Setting PLR for ST->GW at " + str(plr_percentage)) containers_to_mod.append(docker_client.containers.get(os.getenv("ST_CONTAINER_NAME"))) if gw_out: logger.debug("Setting PLR for GW->ST at " + str(plr_percentage)) containers_to_mod.append(docker_client.containers.get(os.getenv("GW_CONTAINER_NAME"))) for container in containers_to_mod: response = container.exec_run('/sbin/tc qdisc change dev opensand_tun root netem loss ' + str(plr_percentage) + "%", stderr=True, stdout=True) if "RTNETLINK" in str(response.output): container.exec_run('/sbin/tc qdisc add dev opensand_tun root netem loss ' + str(plr_percentage) + "%", stderr=True, stdout=True) logger.debug("Updated PLR to " + str(plr_percentage) + "%") def run_attenuation_scenario(self): logger.debug("Running Attenuation Scenario") # wait to connect to opensand opensand_launched = False nc = None while not opensand_launched: try: nc = nclib.Netcat(('localhost', int(os.getenv('SAT_PORT_NUMBER'))), verbose=False) nc.recv_until(b'help') nc.recv() opensand_launched = True except: continue logger.debug("Connected to NC Listener") # stop running scenarios if any nc.send(b'stop\n') nc.recv_until(b'OK', timeout=10) nc.recv() # opensand reports that the testbed has stopped a little before it actually has time.sleep(1) # load attenuation scenario nc.send(b'scenario attenuation_scenario\n') nc.recv_until(b'OK', timeout=10) nc.recv() # start new scenario nc.send(b'start\n') nc.recv_until(b'OK', timeout=10) logger.debug("Scenario Restarted") nc.recv() # ensure that the terminal modem is still connected docker_client = docker.from_env() terminal_container = docker_client.containers.get(os.getenv("ST_CONTAINER_NAME")) #terminal_container.exec_run("/sbin/ip route delete default") terminal_container.exec_run("/sbin/ip route add default via " + str(os.getenv("GW_NETWORK_HEAD"))+".0.3") logger.debug("Attenuation Scenario Launched")
49.314136
154
0.66042
2,360
18,838
5.105508
0.100424
0.047473
0.037182
0.039422
0.969956
0.969956
0.969956
0.96896
0.96896
0.964976
0
0.005557
0.2358
18,838
381
155
49.44357
0.831412
0.107124
0
0.933775
0
0
0.252026
0.02705
0
0
0
0
0
1
0.069536
false
0
0.02649
0
0.10596
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
67a8fcaa9f6b044ef3d7890f9076a45a6c45e88c
356
py
Python
flask_perms/filters.py
jrice128/permission_manager
02d415a5f6bc0b4fb2cf40fa6431c813fabe38ba
[ "MIT" ]
null
null
null
flask_perms/filters.py
jrice128/permission_manager
02d415a5f6bc0b4fb2cf40fa6431c813fabe38ba
[ "MIT" ]
null
null
null
flask_perms/filters.py
jrice128/permission_manager
02d415a5f6bc0b4fb2cf40fa6431c813fabe38ba
[ "MIT" ]
1
2020-04-28T09:18:14.000Z
2020-04-28T09:18:14.000Z
def perm_check(checkSet, mainSet): checkSet = set(checkSet) mainSet = set(mainSet) if checkSet.issubset(mainSet): return True else: return False def is_subset(checkSet, mainSet): checkSet = set(checkSet) mainSet = set(mainSet) if checkSet.issubset(mainSet): return True else: return False
19.777778
34
0.63764
40
356
5.625
0.35
0.266667
0.204444
0.231111
0.897778
0.897778
0.897778
0.897778
0.897778
0.897778
0
0
0.27809
356
17
35
20.941176
0.875486
0
0
0.857143
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
67ad70f9e14e61627424701131cdffb1d7fdcb29
13,732
py
Python
ismrm2022_submission/deprecated_figure_script/figure_odf2d_sketch.py
mpaquette/tractoGRAPHy
9f1f702da1b6d89a6f552e4474fbf92d0ffcf60d
[ "MIT" ]
null
null
null
ismrm2022_submission/deprecated_figure_script/figure_odf2d_sketch.py
mpaquette/tractoGRAPHy
9f1f702da1b6d89a6f552e4474fbf92d0ffcf60d
[ "MIT" ]
11
2021-11-14T16:44:36.000Z
2021-12-28T21:43:26.000Z
ismrm2022_submission/deprecated_figure_script/figure_odf2d_sketch.py
mpaquette/tractoGRAPHy
9f1f702da1b6d89a6f552e4474fbf92d0ffcf60d
[ "MIT" ]
null
null
null
import numpy as np # dist on sphere def sphPDF(k, mu, direc): # Generate the PDF for a Von-Mises Fisher distribution p=3 # at locations direc for concentration k and mean orientation mu C3 = k / (2*np.pi*(np.exp(k)-np.exp(-k))) tmp = np.exp(k*np.dot(direc,mu[:,None])).squeeze() return C3*tmp # antipodally symetric # If building a multi-peak ODF, # you might want un-normed indivual peak # this will allow to mak-norm them before averaging # to control reltaive size of the maximas def sphPDF_sym(k, mu, direc, norm=False): d1 = sphPDF(k, mu, direc) d2 = sphPDF(k, mu, -direc) dd1 = (d1+d2)/2. if norm: dd1 = dd1/dd1.sum() return dd1 # pts_angle = np.linspace(0, 2*np.pi, 180, endpoint=False) pts_angle = np.linspace(0, 2*np.pi, 361) pts_3d = np.zeros((pts_angle.shape[0],3)) pts_3d[:,0] = np.cos(pts_angle) pts_3d[:,1] = np.sin(pts_angle) mu1 = np.array([1.4, 0.1, 0]) mu2 = np.array([0.1, 0.8, 0]) mu1 = mu1 / np.linalg.norm(mu1) mu2 = mu2 / np.linalg.norm(mu2) k1 = 8 k2 = 10 sf1 = sphPDF_sym(k1, mu1, pts_3d, norm=True) sf2 = sphPDF_sym(k2, mu2, pts_3d, norm=True) sf = (sf1+sf2)/2 import pylab as pl pl.figure() pl.polar(pts_angle, sf, color='black', linewidth=4) pl.gca().set_yticklabels([]) pl.gca().axis('off') pl.axvline(np.pi/4, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+2*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+3*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') # pl.show() p_0 = sf[np.logical_and(pts_angle>=np.pi/4, pts_angle<np.pi/4+np.pi/2)].sum() p_3 = sf[np.logical_and(pts_angle>=np.pi/4+np.pi/2, pts_angle<np.pi/4+2*+np.pi/2)].sum() p_2 = sf[np.logical_and(pts_angle>=np.pi/4+2*+np.pi/2, pts_angle<np.pi/4+3*+np.pi/2)].sum() p_1 = sf[pts_angle<np.pi/4].sum() + sf[pts_angle>=np.pi/4+3*+np.pi/2].sum() - sf[-1] p_tot = p_0 + p_1 + p_2 + p_3 # print('Cone orientation = {:.1f} deg'.format(cone_orientation*180/(np.pi))) # print(' {:.1f}'.format(100*p_0/p_tot)) # print('{:.1f} {:.1f}'.format(100*p_3/p_tot, 100*p_1/p_tot)) # print(' {:.1f}'.format(100*p_2/p_tot)) pl.text(0.5, 1.0, "{:.1f}%".format(100*p_0/p_tot), horizontalalignment='center', verticalalignment='bottom', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(1.0, 0.5, "{:.1f}%".format(100*p_1/p_tot), horizontalalignment='left', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.5, 0.0, "{:.1f}%".format(100*p_2/p_tot), horizontalalignment='center', verticalalignment='top', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.0, 0.5, "{:.1f}%".format(100*p_3/p_tot), horizontalalignment='right', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) # pl.show() pl.savefig('/home/paquette/Documents/'+'odf_2D.png', dpi=300, pad_inches=0.25, transparent=True, bbox_inches='tight') pl.close() cone_half_angle = (70*np.pi/180) pl.figure() cone_orientation = np.pi/2 # mask = np.abs((pts_angle - cone_orientation)) < cone_half_angle mask = np.minimum(np.abs(pts_angle - cone_orientation), 2*np.pi-np.abs(pts_angle - cone_orientation)) < cone_half_angle # pl.polar(pts_angle[mask], sf[mask], color='black', linewidth=4) sf_mask = sf.copy() sf_mask[~mask] = 0 pl.polar(pts_angle, sf_mask, color='black', linewidth=4) pl.gca().set_yticklabels([]) pl.gca().axis('off') pl.axvline(np.pi/4, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+2*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+3*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(cone_orientation+cone_half_angle, linewidth=2, alpha=0.9, color='red') pl.axvline(cone_orientation-cone_half_angle, linewidth=2, alpha=0.9, color='red') p_0 = sf_mask[np.logical_and(pts_angle>=np.pi/4, pts_angle<np.pi/4+np.pi/2)].sum() p_3 = sf_mask[np.logical_and(pts_angle>=np.pi/4+np.pi/2, pts_angle<np.pi/4+2*+np.pi/2)].sum() p_2 = sf_mask[np.logical_and(pts_angle>=np.pi/4+2*+np.pi/2, pts_angle<np.pi/4+3*+np.pi/2)].sum() p_1 = sf_mask[pts_angle<np.pi/4].sum() + sf_mask[pts_angle>=np.pi/4+3*+np.pi/2].sum() - sf_mask[-1] p_tot = p_0 + p_1 + p_2 + p_3 # print('Cone orientation = {:.1f} deg'.format(cone_orientation*180/(np.pi))) # print(' {:.1f}'.format(100*p_0/p_tot)) # print('{:.1f} {:.1f}'.format(100*p_3/p_tot, 100*p_1/p_tot)) # print(' {:.1f}'.format(100*p_2/p_tot)) pl.text(0.5, 1.0, "{:.1f}%".format(100*p_0/p_tot), horizontalalignment='center', verticalalignment='bottom', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(1.0, 0.5, "{:.1f}%".format(100*p_1/p_tot), horizontalalignment='left', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.5, 0.0, "{:.1f}%".format(100*p_2/p_tot), horizontalalignment='center', verticalalignment='top', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.0, 0.5, "{:.1f}%".format(100*p_3/p_tot), horizontalalignment='right', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) # pl.show() pl.savefig('/home/paquette/Documents/'+'odf_2D_cone0.png', dpi=300, pad_inches=0.25, transparent=True, bbox_inches='tight') pl.close() pl.figure() cone_orientation = np.pi # mask = np.abs((pts_angle - cone_orientation)) < cone_half_angle mask = np.minimum(np.abs(pts_angle - cone_orientation), 2*np.pi-np.abs(pts_angle - cone_orientation)) < cone_half_angle # pl.polar(pts_angle[mask], sf[mask], color='black', linewidth=4) sf_mask = sf.copy() sf_mask[~mask] = 0 pl.polar(pts_angle, sf_mask, color='black', linewidth=4) pl.gca().set_yticklabels([]) pl.gca().axis('off') pl.axvline(np.pi/4, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+2*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+3*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(cone_orientation+cone_half_angle, linewidth=2, alpha=0.9, color='red') pl.axvline(cone_orientation-cone_half_angle, linewidth=2, alpha=0.9, color='red') p_0 = sf_mask[np.logical_and(pts_angle>=np.pi/4, pts_angle<np.pi/4+np.pi/2)].sum() p_3 = sf_mask[np.logical_and(pts_angle>=np.pi/4+np.pi/2, pts_angle<np.pi/4+2*+np.pi/2)].sum() p_2 = sf_mask[np.logical_and(pts_angle>=np.pi/4+2*+np.pi/2, pts_angle<np.pi/4+3*+np.pi/2)].sum() p_1 = sf_mask[pts_angle<np.pi/4].sum() + sf_mask[pts_angle>=np.pi/4+3*+np.pi/2].sum() - sf_mask[-1] p_tot = p_0 + p_1 + p_2 + p_3 # print('Cone orientation = {:.1f} deg'.format(cone_orientation*180/(np.pi))) # print(' {:.1f}'.format(100*p_0/p_tot)) # print('{:.1f} {:.1f}'.format(100*p_3/p_tot, 100*p_1/p_tot)) # print(' {:.1f}'.format(100*p_2/p_tot)) pl.text(0.5, 1.0, "{:.1f}%".format(100*p_0/p_tot), horizontalalignment='center', verticalalignment='bottom', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(1.0, 0.5, "{:.1f}%".format(100*p_1/p_tot), horizontalalignment='left', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.5, 0.0, "{:.1f}%".format(100*p_2/p_tot), horizontalalignment='center', verticalalignment='top', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.0, 0.5, "{:.1f}%".format(100*p_3/p_tot), horizontalalignment='right', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) # pl.show() pl.savefig('/home/paquette/Documents/'+'odf_2D_cone3.png', dpi=300, pad_inches=0.25, transparent=True, bbox_inches='tight') pl.close() pl.figure() cone_orientation = 3*np.pi/2 # mask = np.abs((pts_angle - cone_orientation)) < cone_half_angle mask = np.minimum(np.abs(pts_angle - cone_orientation), 2*np.pi-np.abs(pts_angle - cone_orientation)) < cone_half_angle # pl.polar(pts_angle[mask], sf[mask], color='black', linewidth=4) sf_mask = sf.copy() sf_mask[~mask] = 0 pl.polar(pts_angle, sf_mask, color='black', linewidth=4) pl.gca().set_yticklabels([]) pl.gca().axis('off') pl.axvline(np.pi/4, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+2*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+3*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(cone_orientation+cone_half_angle, linewidth=2, alpha=0.9, color='red') pl.axvline(cone_orientation-cone_half_angle, linewidth=2, alpha=0.9, color='red') p_0 = sf_mask[np.logical_and(pts_angle>=np.pi/4, pts_angle<np.pi/4+np.pi/2)].sum() p_3 = sf_mask[np.logical_and(pts_angle>=np.pi/4+np.pi/2, pts_angle<np.pi/4+2*+np.pi/2)].sum() p_2 = sf_mask[np.logical_and(pts_angle>=np.pi/4+2*+np.pi/2, pts_angle<np.pi/4+3*+np.pi/2)].sum() p_1 = sf_mask[pts_angle<np.pi/4].sum() + sf_mask[pts_angle>=np.pi/4+3*+np.pi/2].sum() - sf_mask[-1] p_tot = p_0 + p_1 + p_2 + p_3 # print('Cone orientation = {:.1f} deg'.format(cone_orientation*180/(np.pi))) # print(' {:.1f}'.format(100*p_0/p_tot)) # print('{:.1f} {:.1f}'.format(100*p_3/p_tot, 100*p_1/p_tot)) # print(' {:.1f}'.format(100*p_2/p_tot)) pl.text(0.5, 1.0, "{:.1f}%".format(100*p_0/p_tot), horizontalalignment='center', verticalalignment='bottom', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(1.0, 0.5, "{:.1f}%".format(100*p_1/p_tot), horizontalalignment='left', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.5, 0.0, "{:.1f}%".format(100*p_2/p_tot), horizontalalignment='center', verticalalignment='top', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.0, 0.5, "{:.1f}%".format(100*p_3/p_tot), horizontalalignment='right', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) # pl.show() pl.savefig('/home/paquette/Documents/'+'odf_2D_cone2.png', dpi=300, pad_inches=0.25, transparent=True, bbox_inches='tight') pl.close() pl.figure() cone_orientation = 0 # mask = np.abs((pts_angle - cone_orientation)) < cone_half_angle mask = np.minimum(np.abs(pts_angle - cone_orientation), 2*np.pi-np.abs(pts_angle - cone_orientation)) < cone_half_angle # pl.polar(pts_angle[mask], sf[mask], color='black', linewidth=4) sf_mask = sf.copy() sf_mask[~mask] = 0 pl.polar(pts_angle, sf_mask, color='black', linewidth=4) pl.gca().set_yticklabels([]) pl.gca().axis('off') pl.axvline(np.pi/4, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+2*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(np.pi/4+3*+np.pi/2, linewidth=2, alpha=0.5, linestyle='dashed') pl.axvline(cone_orientation+cone_half_angle, linewidth=2, alpha=0.9, color='red') pl.axvline(cone_orientation-cone_half_angle, linewidth=2, alpha=0.9, color='red') p_0 = sf_mask[np.logical_and(pts_angle>=np.pi/4, pts_angle<np.pi/4+np.pi/2)].sum() p_3 = sf_mask[np.logical_and(pts_angle>=np.pi/4+np.pi/2, pts_angle<np.pi/4+2*+np.pi/2)].sum() p_2 = sf_mask[np.logical_and(pts_angle>=np.pi/4+2*+np.pi/2, pts_angle<np.pi/4+3*+np.pi/2)].sum() p_1 = sf_mask[pts_angle<np.pi/4].sum() + sf_mask[pts_angle>=np.pi/4+3*+np.pi/2].sum() - sf_mask[-1] p_tot = p_0 + p_1 + p_2 + p_3 # print('Cone orientation = {:.1f} deg'.format(cone_orientation*180/(np.pi))) # print(' {:.1f}'.format(100*p_0/p_tot)) # print('{:.1f} {:.1f}'.format(100*p_3/p_tot, 100*p_1/p_tot)) # print(' {:.1f}'.format(100*p_2/p_tot)) pl.text(0.5, 1.0, "{:.1f}%".format(100*p_0/p_tot), horizontalalignment='center', verticalalignment='bottom', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(1.0, 0.5, "{:.1f}%".format(100*p_1/p_tot), horizontalalignment='left', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.5, 0.0, "{:.1f}%".format(100*p_2/p_tot), horizontalalignment='center', verticalalignment='top', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) pl.text(0.0, 0.5, "{:.1f}%".format(100*p_3/p_tot), horizontalalignment='right', verticalalignment='center', size='xx-large', bbox=dict(facecolor='white', alpha=0.0), transform=pl.gca().transAxes) # pl.show() # pl.show() pl.savefig('/home/paquette/Documents/'+'odf_2D_cone1.png', dpi=300, pad_inches=0.25, transparent=True, bbox_inches='tight') pl.close()
30.114035
119
0.654675
2,427
13,732
3.565307
0.067985
0.055934
0.03467
0.055472
0.912747
0.910782
0.907662
0.905582
0.900035
0.895296
0
0.061397
0.129406
13,732
455
120
30.18022
0.662401
0.152126
0
0.845865
1
0
0.087834
0.010785
0
0
0
0
0
1
0.007519
false
0
0.007519
0
0.022556
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
67b61aee60924c42cff2d8541b81cd5dd53725b7
13,671
py
Python
gitea_api/api/settings_api.py
r7l/python-gitea-api
31d3dba27ea7e551e2048a1230c4ab4d73365006
[ "MIT" ]
1
2022-02-09T23:43:26.000Z
2022-02-09T23:43:26.000Z
gitea_api/api/settings_api.py
r7l/python-gitea-api
31d3dba27ea7e551e2048a1230c4ab4d73365006
[ "MIT" ]
null
null
null
gitea_api/api/settings_api.py
r7l/python-gitea-api
31d3dba27ea7e551e2048a1230c4ab4d73365006
[ "MIT" ]
null
null
null
# coding: utf-8 """ Gitea API. This documentation describes the Gitea API. # noqa: E501 OpenAPI spec version: 1.16.7 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from gitea_api.api_client import ApiClient class SettingsApi(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def get_general_api_settings(self, **kwargs): # noqa: E501 """Get instance's global settings for api # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_general_api_settings(async_req=True) >>> result = thread.get() :param async_req bool :return: GeneralAPISettings If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_general_api_settings_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_general_api_settings_with_http_info(**kwargs) # noqa: E501 return data def get_general_api_settings_with_http_info(self, **kwargs): # noqa: E501 """Get instance's global settings for api # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_general_api_settings_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: GeneralAPISettings If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_general_api_settings" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['AccessToken', 'AuthorizationHeaderToken', 'BasicAuth', 'SudoHeader', 'SudoParam', 'TOTPHeader', 'Token'] # noqa: E501 return self.api_client.call_api( '/settings/api', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GeneralAPISettings', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_general_attachment_settings(self, **kwargs): # noqa: E501 """Get instance's global settings for Attachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_general_attachment_settings(async_req=True) >>> result = thread.get() :param async_req bool :return: GeneralAttachmentSettings If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_general_attachment_settings_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_general_attachment_settings_with_http_info(**kwargs) # noqa: E501 return data def get_general_attachment_settings_with_http_info(self, **kwargs): # noqa: E501 """Get instance's global settings for Attachment # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_general_attachment_settings_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: GeneralAttachmentSettings If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_general_attachment_settings" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['AccessToken', 'AuthorizationHeaderToken', 'BasicAuth', 'SudoHeader', 'SudoParam', 'TOTPHeader', 'Token'] # noqa: E501 return self.api_client.call_api( '/settings/attachment', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GeneralAttachmentSettings', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_general_repository_settings(self, **kwargs): # noqa: E501 """Get instance's global settings for repositories # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_general_repository_settings(async_req=True) >>> result = thread.get() :param async_req bool :return: GeneralRepoSettings If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_general_repository_settings_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_general_repository_settings_with_http_info(**kwargs) # noqa: E501 return data def get_general_repository_settings_with_http_info(self, **kwargs): # noqa: E501 """Get instance's global settings for repositories # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_general_repository_settings_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: GeneralRepoSettings If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_general_repository_settings" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['AccessToken', 'AuthorizationHeaderToken', 'BasicAuth', 'SudoHeader', 'SudoParam', 'TOTPHeader', 'Token'] # noqa: E501 return self.api_client.call_api( '/settings/repository', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GeneralRepoSettings', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_general_ui_settings(self, **kwargs): # noqa: E501 """Get instance's global settings for ui # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_general_ui_settings(async_req=True) >>> result = thread.get() :param async_req bool :return: GeneralUISettings If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_general_ui_settings_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_general_ui_settings_with_http_info(**kwargs) # noqa: E501 return data def get_general_ui_settings_with_http_info(self, **kwargs): # noqa: E501 """Get instance's global settings for ui # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_general_ui_settings_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :return: GeneralUISettings If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_general_ui_settings" % key ) params[key] = val del params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['AccessToken', 'AuthorizationHeaderToken', 'BasicAuth', 'SudoHeader', 'SudoParam', 'TOTPHeader', 'Token'] # noqa: E501 return self.api_client.call_api( '/settings/ui', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GeneralUISettings', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
36.553476
144
0.615683
1,510
13,671
5.28543
0.099338
0.041098
0.028067
0.036086
0.931462
0.926701
0.926701
0.914046
0.914046
0.914046
0
0.013815
0.295809
13,671
373
145
36.651475
0.815207
0.309268
0
0.791878
1
0
0.176498
0.05658
0
0
0
0
0
1
0.045685
false
0
0.020305
0
0.13198
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
db2eed0f7b05a70cc0fba2b80cde8beb4f0f5ca1
205
py
Python
allennlp_models/pair_classification/__init__.py
matt-peters/allennlp-models
cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e
[ "Apache-2.0" ]
402
2020-03-11T22:58:35.000Z
2022-03-29T09:05:27.000Z
allennlp_models/pair_classification/__init__.py
matt-peters/allennlp-models
cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e
[ "Apache-2.0" ]
116
2020-03-11T01:26:57.000Z
2022-03-25T13:03:56.000Z
allennlp_models/pair_classification/__init__.py
matt-peters/allennlp-models
cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e
[ "Apache-2.0" ]
140
2020-03-11T00:51:35.000Z
2022-03-29T09:05:36.000Z
# flake8: noqa: F403 from allennlp_models.pair_classification.dataset_readers import * from allennlp_models.pair_classification.models import * from allennlp_models.pair_classification.predictors import *
41
65
0.863415
25
205
6.8
0.48
0.211765
0.317647
0.388235
0.705882
0.494118
0
0
0
0
0
0.021164
0.078049
205
4
66
51.25
0.878307
0.087805
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
e1d510cc8cda85403555b119f942a80595fb06a5
59,500
py
Python
db/PGManager.py
cleolepart/timedomain
340e3fa614bca2dc333c9723893951318356dccf
[ "MIT" ]
null
null
null
db/PGManager.py
cleolepart/timedomain
340e3fa614bca2dc333c9723893951318356dccf
[ "MIT" ]
null
null
null
db/PGManager.py
cleolepart/timedomain
340e3fa614bca2dc333c9723893951318356dccf
[ "MIT" ]
null
null
null
import os import sys import glob from astropy.io import ascii import pandas import psycopg2 import re from astropy.table import Table import sqlite3 from sqlalchemy import create_engine from sqlalchemy import text import sqlalchemy import fitsio import numpy """ Tables to read: Secondary targets: Table name: secondary Table sources: SV3 /global/cfs/cdirs/desi/target/secondary/sv3/outdata/0.57.0/ MAIN /global/cfs/cdirs/desi/target/secondary/main/outdata/1.0.0/ redshifts-prod: Table name: redshifts_prod Table sources: /global/project/projectdirs/desi/spectro/redux/*/zcatalog-*-cumulative.fits /global/project/projectdirs/desi/spectro/redux/*/zcatalog-*-pernight.fits zbest_prod: Table name: zbest_<prod> (hdu=1 is zbest, don't save hdu=2 for fibermap) Table sources: /global/project/projectdirs/desi/spectro/redux/{prod}/tiles/cumulative/*/zbest*.fits /global/project/projectdirs/desi/spectro/redux/{prod}/tiles/pernight/*/zbest*.fits zbest_daily: Table name: zbest_daily (hdu=1 is zbest, don't save hdu=2 for fibermap) Table sources: /global/project/projectdirs/desi/spectro/redux/daily/tiles/cumulative spectra_prod: Table name: spectra_<prod> Table sources: /global/project/projectdirs/desi/spectro/redux/{prod}/tiles/cumulative/*/spectra*.fits fibermap_daily: read from cumulative only those taken that night """ try: with open('/global/homes/a/akim/secrets/desi_pg.txt', 'r') as f: data = f.read() uname, passwd = data.split() engine = create_engine(f'postgresql://{uname}:{passwd}@decatdb.lbl.gov/desi') # conn = sqlite3.connect("/global/cfs/cdirs/desi/science/td/db/desi.db") except: print("No connection") def dtypesToSchema(dtypes): for index,value in dtypes.items(): if value == numpy.float64: nvalue = 'DOUBLE PRECISION' elif value == numpy.float32: nvalue = 'REAL' elif value == numpy.int64: nvalue = 'BIGINT' elif value == numpy.int32: nvalue = 'INTEGER' elif value == numpy.int16 or value == numpy.uint8 : nvalue = 'SMALLINT' elif value == numpy.object: nvalue = 'TEXT' elif value == numpy.bool: nvalue = 'BOOLEAN' else: print ("**unknown** ",value) # print(f'{index} {nvalue}, {value}') print(f'{index.lower()} {nvalue},') class zbest_daily: schema=""" CREATE TABLE IF NOT EXISTS "zbest_daily" ( targetid BIGINT, chi2 DOUBLE PRECISION, z DOUBLE PRECISION, zerr DOUBLE PRECISION, zwarn BIGINT, npixels BIGINT, spectype TEXT, subtype TEXT, ncoeff BIGINT, deltachi2 DOUBLE PRECISION, numexp INTEGER, numtile INTEGER, coeff_0 DOUBLE PRECISION, coeff_1 DOUBLE PRECISION, coeff_2 DOUBLE PRECISION, coeff_3 DOUBLE PRECISION, coeff_4 DOUBLE PRECISION, coeff_5 DOUBLE PRECISION, coeff_6 DOUBLE PRECISION, coeff_7 DOUBLE PRECISION, coeff_8 DOUBLE PRECISION, coeff_9 DOUBLE PRECISION, tile BIGINT, petal BIGINT, yyyymmdd BIGINT, PRIMARY KEY (targetid, tile, yyyymmdd) ); """ @staticmethod def create_table(overwrite = False): with engine.connect() as conn: if overwrite: conn.execute(text("DROP TABLE IF EXISTS zbest_daily;")) conn.execute(zbest_daily.schema) conn.close() @staticmethod def fill_table(): dir_root = "/global/project/projectdirs/desi/spectro/redux/daily/tiles/cumulative" #find the last date dates_db=[] try: with engine.connect() as conn: for row in conn.execute(f"SELECT DISTINCT YYYYMMDD FROM zbest_daily"): dates_db.append(row[0]) except: pass dates = [] for path in glob.glob(f'{dir_root}/*/202?????'): split = path.split('/') dates.append(split[-1]) dates = numpy.unique(dates) for date in dates: if int(date) not in dates_db: # Do things in terms of dates dfs=[] print(date) for path in glob.glob(f'{dir_root}/*/{date}'): split = path.split('/') tile = split[-2] if tile.isnumeric(): for i in range(10): filename = f'{dir_root}/{tile}/{date}/zbest-{i}-{tile}-thru{date}.fits' try: dat = Table.read(filename, format='fits',hdu=1) except: print(f"{filename} not found") continue for icoeff in range(0,10): dat[f'COEFF_{icoeff}']= dat['COEFF'][0:len(dat),icoeff] dat.remove_column('COEFF') dat.convert_bytestring_to_unicode() df = dat.to_pandas() df['TILE']=numpy.full(df.shape[0],int(tile)) df['PETAL']=numpy.full(df.shape[0],i) df['YYYYMMDD']=numpy.full(df.shape[0],int(date)) df.columns= df.columns.str.lower() dfs.append(df) if len(dfs)>0: try: dfs = pandas.concat(dfs, ignore_index=True, sort=False) dfs.to_sql(f'zbest_daily',engine,index=False,if_exists='append') except sqlite3.OperationalError as err: dtypesToSchema(dfs.dtypes) sys.exit() class dr9_pv: schema=""" CREATE TABLE IF NOT EXISTS "pv.dr9" ( objid BIGINT, brickid INTEGER, brickname TEXT, ra DOUBLE PRECISION, dec DOUBLE PRECISION, type TEXT, sersic REAL, z_phot_median REAL, z_phot_l95 REAL, mag_g REAL, mag_r REAL, mag_z REAL, mag_b REAL, mag_g_err REAL, mag_r_err REAL, mag_z_err REAL, fibre_mag_g REAL, fibre_mag_r REAL, fibre_mag_z REAL, uncor_radius REAL, ba_ratio REAL, circ_radius REAL, pos_angle REAL, insga BOOLEAN, inbgs BOOLEAN, inlocalbright BOOLEAN, inspecfootprint BOOLEAN, sga_pa REAL, sga_ba REAL, sb_d25_g REAL, sb_d25_r REAL, sb_d25_z REAL, radius_sb25 REAL, sga_morphtype TEXT, sga_id BIGINT, sga_redshift REAL, size_sga REAL, pmra REAL, pmdec REAL, ref_epoch REAL, override BOOLEAN, pvtype TEXT, pvpriority INTEGER, target TEXT, survey TEXT, pointingid INTEGER ); """ @staticmethod def create_table(overwrite = False): with engine.connect() as conn: if overwrite: conn.execute(text("DROP TABLE IF EXISTS pv.dr9;")) conn.execute(dr9_pv.schema) conn.close() @staticmethod def fill_table(): dirs=["savepath_dr9","savepath_dr9_corr"] surveys=["sv3","main"] targets = ["ext","fp","sga","tf"] for di, survey in zip(dirs,surveys): for target in targets: filename = f"/global/homes/k/ksaid/desi_pv/{di}/pv_{target}_full.fits" try: dat = Table.read(filename, format='fits') except: print(f"{filename} not found") continue dat.convert_bytestring_to_unicode() df = dat.to_pandas() df['target']=numpy.full(df.shape[0],target) df['survey']=numpy.full(df.shape[0],survey) df.columns= df.columns.str.lower() try: df.to_sql('pv.dr9',engine,index=False,if_exists='append') except: dtypesToSchema(df.dtypes) sys.exit() @staticmethod def null_sga(): with engine.connect() as conn: # conn.execute("create table temp as (select * from dr9_pv);") query = """ UPDATE dr9_pv SET sga_id = NULL, sga_morphtype = NULL, sga_redshift = NULL, sga_pa = NULL, sga_ba = NULL WHERE sga_id = 0 OR sga_id = -1; """ conn.execute(query) class secondary: schema=f""" CREATE TABLE IF NOT EXISTS secondary ( ra DOUBLE PRECISION, dec DOUBLE PRECISION, pmra REAL, pmdec REAL, ref_epoch REAL, override BOOLEAN, flux_g REAL, flux_r REAL, flux_z REAL, parallax REAL, gaia_phot_g_mean_mag REAL, gaia_phot_bp_mean_mag REAL, gaia_phot_rp_mean_mag REAL, gaia_astrometric_excess_noise REAL, targetid BIGINT, sv3_desi_target BIGINT, sv3_scnd_target BIGINT, scnd_order INTEGER, desitarget_v TEXT, run TEXT, program TEXT, lunation TEXT, desi_target BIGINT, scnd_target BIGINT ); """ runs=['main','sv3'] @staticmethod def create_table(overwrite = False): with engine.connect() as conn: if overwrite: conn.execute(text("DROP TABLE IF EXISTS secondary;")) conn.execute(secondary.schema) conn.close() @staticmethod def fill_table(): # SV3 if 'sv3' in secondary.runs: dir_root = "/global/cfs/cdirs/desi/target/secondary/sv3/outdata/0.57.0/" lunations = ["bright", "dark"] for lunation in lunations: for root, dirs, files in os.walk(os.path.join(dir_root,lunation)): for file in files: if file.endswith('.fits'): filename = os.path.join(root,file) print(file) program = file[:-5] dat = Table.read(filename, format='fits') df = dat.to_pandas() df['desitarget_v']= numpy.full(df.shape[0],'0.57.0') df['run']=numpy.full(df.shape[0],'sv3') df['program']=numpy.full(df.shape[0],program) df['lunation']=numpy.full(df.shape[0],lunation) df.columns= df.columns.str.lower() try: df.to_sql('secondary',engine,index=False,if_exists='append') except: dtypesToSchema(df.dtypes) sys.exit() # main # SCHEMA EVOLUTION # New keywords DESI_TARGET SCND_TARGET fix = ''' ALTER TABLE secondary ADD COLUMN DESI_TARGET INT; ALTER TABLE secondary ADD COLUMN SCND_TARGET INT; ''' if 'main' in secondary.runs: dir_root = "/global/cfs/cdirs/desi/target/secondary/main/outdata/1.0.0/" lunations = ["bright", "dark"] for lunation in lunations: for root, dirs, files in os.walk(os.path.join(dir_root,lunation)): for file in files: if file.endswith('.fits'): filename = os.path.join(root,file) print(file) program = file[:-5] dat = Table.read(filename, format='fits') df = dat.to_pandas() df['desitarget_v']= numpy.full(df.shape[0],'1.0.0') df['run']=numpy.full(df.shape[0],'main') df['program']=numpy.full(df.shape[0],program) df['lunation']=numpy.full(df.shape[0],lunation) df.columns= df.columns.str.lower() try: df.to_sql('secondary',engine,index=False,if_exists='append') except: dtypesToSchema(df.dtypes) sys.exit() class zcatalog_denali: schema=""" CREATE TABLE IF NOT EXISTS "zcatalog_denali" ( targetid BIGINT, chi2 DOUBLE PRECISION, z DOUBLE PRECISION, zerr DOUBLE PRECISION, zwarn BIGINT, npixels BIGINT, spectype TEXT, subtype TEXT, ncoeff BIGINT, deltachi2 DOUBLE PRECISION, numexp INTEGER, numtile INTEGER, petal_loc SMALLINT, device_loc INTEGER, location BIGINT, fiber INTEGER, fiberstatus INTEGER, target_ra DOUBLE PRECISION, target_dec DOUBLE PRECISION, pmra REAL, pmdec REAL, ref_epoch REAL, lambda_ref REAL, fa_target BIGINT, fa_type SMALLINT, objtype TEXT, priority INTEGER, subpriority DOUBLE PRECISION, obsconditions INTEGER, release SMALLINT, brickid INTEGER, brick_objid INTEGER, morphtype TEXT, flux_g REAL, flux_r REAL, flux_z REAL, flux_ivar_g REAL, flux_ivar_r REAL, flux_ivar_z REAL, maskbits SMALLINT, ref_id BIGINT, ref_cat TEXT, gaia_phot_g_mean_mag REAL, gaia_phot_bp_mean_mag REAL, gaia_phot_rp_mean_mag REAL, parallax REAL, brickname TEXT, ebv REAL, flux_w1 REAL, flux_w2 REAL, fiberflux_g REAL, fiberflux_r REAL, fiberflux_z REAL, fibertotflux_g REAL, fibertotflux_r REAL, fibertotflux_z REAL, sersic REAL, shape_r REAL, shape_e1 REAL, shape_e2 REAL, photsys TEXT, priority_init BIGINT, numobs_init BIGINT, sv2_desi_target BIGINT, sv2_bgs_target BIGINT, sv2_mws_target BIGINT, sv2_scnd_target BIGINT, desi_target BIGINT, bgs_target BIGINT, mws_target BIGINT, tileid INTEGER, coadd_numexp SMALLINT, coadd_exptime REAL, mean_delta_x REAL, rms_delta_x REAL, mean_delta_y REAL, rms_delta_y REAL, mean_fiber_x REAL, mean_fiber_y REAL, mean_fiber_ra DOUBLE PRECISION, mean_fiber_dec DOUBLE PRECISION, mean_fiberassign_x REAL, mean_fiberassign_y REAL, first_night INTEGER, last_night INTEGER, num_night SMALLINT, first_expid INTEGER, last_expid INTEGER, num_expid SMALLINT, first_tileid INTEGER, last_tileid INTEGER, num_tileid SMALLINT, first_fiber INTEGER, last_fiber INTEGER, num_fiber SMALLINT, first_mjd REAL, last_mjd REAL, num_mjd SMALLINT, sv1_scnd_target BIGINT, sv1_bgs_target BIGINT, sv1_desi_target BIGINT, sv1_mws_target BIGINT, cmx_target BIGINT, coeff_0 DOUBLE PRECISION, coeff_1 DOUBLE PRECISION, coeff_2 DOUBLE PRECISION, coeff_3 DOUBLE PRECISION, coeff_4 DOUBLE PRECISION, coeff_5 DOUBLE PRECISION, coeff_6 DOUBLE PRECISION, coeff_7 DOUBLE PRECISION, coeff_8 DOUBLE PRECISION, coeff_9 DOUBLE PRECISION, PRIMARY KEY (targetid, tileid) ); """ # @staticmethod def create_table(overwrite = False): with engine.connect() as conn: if overwrite: conn.execute(text("DROP TABLE IF EXISTS zcatalog_denali;")) conn.execute(text(zcatalog_denali.schema)) conn.close() @staticmethod def fill_table(prod='denali'): root = f"/global/project/projectdirs/desi/spectro/redux/{prod}" coadds = ["cumulative","pernight"] coadds = ["cumulative"] for coadd in coadds: filename = os.path.join(root,f"zcatalog-denali-{coadd}.fits") print(filename) dat = Table.read(filename, format='fits') # There is a multidimensional column that needs to be broken up for icoeff in range(0,10): dat[f'COEFF_{icoeff}']= dat['COEFF'][0:len(dat),icoeff] dat.remove_column('COEFF') dat.convert_bytestring_to_unicode() df = dat.to_pandas() df.columns= df.columns.str.lower() try: df.to_sql('zcatalog_denali',engine,index=False,if_exists='append') except: dtypesToSchema(df.dtypes) print(df[0]) sys.exit() class zpix_everest: prod='everest' schema1=""" CREATE TABLE IF NOT EXISTS everest.zpix_redshifts ( targetid BIGINT, chi2 DOUBLE PRECISION, z DOUBLE PRECISION, zerr DOUBLE PRECISION, zwarn BIGINT, npixels BIGINT, spectype TEXT, subtype TEXT, ncoeff BIGINT, deltachi2 DOUBLE PRECISION, coadd_fiberstatus INTEGER, target_ra DOUBLE PRECISION, target_dec DOUBLE PRECISION, pmra REAL, pmdec REAL, ref_epoch REAL, fa_target BIGINT, fa_type SMALLINT, objtype TEXT, subpriority DOUBLE PRECISION, obsconditions INTEGER, release INTEGER, brickid INTEGER, brick_objid INTEGER, morphtype TEXT, flux_g REAL, flux_r REAL, flux_z REAL, flux_ivar_g REAL, flux_ivar_r REAL, flux_ivar_z REAL, maskbits SMALLINT, ref_id BIGINT, ref_cat TEXT, gaia_phot_g_mean_mag REAL, gaia_phot_bp_mean_mag REAL, gaia_phot_rp_mean_mag REAL, parallax REAL, brickname TEXT, ebv REAL, flux_w1 REAL, flux_w2 REAL, flux_ivar_w1 REAL, flux_ivar_w2 REAL, fiberflux_g REAL, fiberflux_r REAL, fiberflux_z REAL, fibertotflux_g REAL, fibertotflux_r REAL, fibertotflux_z REAL, sersic REAL, shape_r REAL, shape_e1 REAL, shape_e2 REAL, photsys TEXT, priority_init BIGINT, numobs_init BIGINT, desi_target BIGINT, bgs_target BIGINT, mws_target BIGINT, scnd_target DOUBLE PRECISION, plate_ra DOUBLE PRECISION, plate_dec DOUBLE PRECISION, coadd_numexp SMALLINT, coadd_exptime REAL, coadd_numnight SMALLINT, coadd_numtile SMALLINT, mean_delta_x REAL, rms_delta_x REAL, mean_delta_y REAL, rms_delta_y REAL, mean_fiber_ra DOUBLE PRECISION, std_fiber_ra REAL, mean_fiber_dec DOUBLE PRECISION, std_fiber_dec REAL, mean_psf_to_fiber_specflux REAL, tsnr2_gpbdark_b REAL, tsnr2_elg_b REAL, tsnr2_gpbbright_b REAL, tsnr2_lya_b REAL, tsnr2_bgs_b REAL, tsnr2_gpbbackup_b REAL, tsnr2_qso_b REAL, tsnr2_lrg_b REAL, tsnr2_gpbdark_r REAL, tsnr2_elg_r REAL, tsnr2_gpbbright_r REAL, tsnr2_lya_r REAL, tsnr2_bgs_r REAL, tsnr2_gpbbackup_r REAL, tsnr2_qso_r REAL, tsnr2_lrg_r REAL, tsnr2_gpbdark_z REAL, tsnr2_elg_z REAL, tsnr2_gpbbright_z REAL, tsnr2_lya_z REAL, tsnr2_bgs_z REAL, tsnr2_gpbbackup_z REAL, tsnr2_qso_z REAL, tsnr2_lrg_z REAL, tsnr2_gpbdark REAL, tsnr2_elg REAL, tsnr2_gpbbright REAL, tsnr2_lya REAL, tsnr2_bgs REAL, tsnr2_gpbbackup REAL, tsnr2_qso REAL, tsnr2_lrg REAL, coeff_0 DOUBLE PRECISION, coeff_1 DOUBLE PRECISION, coeff_2 DOUBLE PRECISION, coeff_3 DOUBLE PRECISION, coeff_4 DOUBLE PRECISION, coeff_5 DOUBLE PRECISION, coeff_6 DOUBLE PRECISION, coeff_7 DOUBLE PRECISION, coeff_8 DOUBLE PRECISION, coeff_9 DOUBLE PRECISION, run TEXT, program TEXT, sv1_desi_target DOUBLE PRECISION, sv1_bgs_target DOUBLE PRECISION, sv1_mws_target DOUBLE PRECISION, sv1_scnd_target DOUBLE PRECISION, numtarget DOUBLE PRECISION, blobdist REAL, fiberflux_ivar_g REAL, fiberflux_ivar_r REAL, fiberflux_ivar_z REAL, hpxpixel DOUBLE PRECISION, sv2_desi_target DOUBLE PRECISION, sv2_bgs_target DOUBLE PRECISION, sv2_mws_target DOUBLE PRECISION, sv2_scnd_target DOUBLE PRECISION, sv3_desi_target DOUBLE PRECISION, sv3_bgs_target DOUBLE PRECISION, sv3_mws_target DOUBLE PRECISION, sv3_scnd_target DOUBLE PRECISION ); """ schema2=""" CREATE TABLE IF NOT EXISTS everest.zpix_fibermap ( targetid BIGINT, priority INTEGER, subpriority DOUBLE PRECISION, night INTEGER, expid INTEGER, mjd DOUBLE PRECISION, tileid INTEGER, exptime DOUBLE PRECISION, petal_loc SMALLINT, device_loc INTEGER, location BIGINT, fiber INTEGER, fiberstatus INTEGER, fiberassign_x REAL, fiberassign_y REAL, lambda_ref REAL, plate_ra DOUBLE PRECISION, plate_dec DOUBLE PRECISION, num_iter BIGINT, fiber_x DOUBLE PRECISION, fiber_y DOUBLE PRECISION, delta_x DOUBLE PRECISION, delta_y DOUBLE PRECISION, fiber_ra DOUBLE PRECISION, fiber_dec DOUBLE PRECISION, psf_to_fiber_specflux DOUBLE PRECISION, run TEXT, program TEXT ); """ # @staticmethod def create_table(prod='everest',overwrite = False, hdu=1,group='zpix',cumulative=''): if hdu==1: tablename=f'{prod}.{group}{cumulative}_redshifts' schema = zpix_everest.schema1 elif hdu==2: tablename=f'{prod}.{group}{cumulative}_fibermap' schema = zpix_everest.schema2 print(tablename) with engine.connect() as conn: if overwrite: cmd = f'DROP TABLE IF EXISTS {tablename};' conn.execute(text(cmd)) conn.execute(text(schema)) conn.close() @staticmethod def fill_table(prod='everest',hdu=1,schema=False): if hdu==1: tablename='zpix_redshifts' elif hdu==2: tablename='zpix_fibermap' print(tablename) root = f"/global/project/projectdirs/desi/spectro/redux/{prod}/zcatalog/" coadds = ["cumulative"] coadds=[""] runs=['main','sv1','sv2','sv3'] programs = ['bright','dark','backup','other'] dfs=[] for coadd in coadds: for run in runs: for program in programs: filename = os.path.join(root,f"zpix-{run}-{program}.fits") print(filename) try: dat = Table.read(filename, format='fits',hdu=hdu) except: continue print(filename) # There is a multidimensional column that needs to be broken up if hdu==1: for icoeff in range(0,10): dat[f'COEFF_{icoeff}']= dat['COEFF'][0:len(dat),icoeff] dat.remove_column('COEFF') dat.convert_bytestring_to_unicode() df = dat.to_pandas() df['run']=numpy.full(df.shape[0],run) df['program']=numpy.full(df.shape[0],program) df.columns= df.columns.str.lower() # dtypesToSchema(df.dtypes) if schema: dfs.append(df[0:1]) if not schema: try: df.to_sql(tablename,engine,index=False,if_exists='append',schema=prod) except: dtypesToSchema(df.dtypes) print(df[0]) sys.exit() if schema: dfs = pandas.concat(dfs, ignore_index=True, sort=False) dtypesToSchema(dfs.dtypes) class ztile_everest: @staticmethod def tablename(prod='everest',coadd='pernight',hdu=1,short=False): if hdu==1: tag='redshifts' elif hdu==2: tag='fibermap' if not short: return f"{prod}.ztile_{coadd}_{tag}" else: return f"ztile_{coadd}_{tag}" @staticmethod def create_table(prod='everest',overwrite = False, hdu=1,coadd='pernight'): tablename = ztile_everest.tablename(prod=prod,coadd=coadd,hdu=hdu) if hdu==1 and coadd=='pernight': schema=""" CREATE TABLE IF NOT EXISTS {} ( targetid BIGINT, chi2 DOUBLE PRECISION, z DOUBLE PRECISION, zerr DOUBLE PRECISION, zwarn BIGINT, npixels BIGINT, spectype TEXT, subtype TEXT, ncoeff BIGINT, deltachi2 DOUBLE PRECISION, petal_loc SMALLINT, device_loc INTEGER, location BIGINT, fiber INTEGER, coadd_fiberstatus INTEGER, target_ra DOUBLE PRECISION, target_dec DOUBLE PRECISION, pmra REAL, pmdec REAL, ref_epoch REAL, lambda_ref REAL, fa_target BIGINT, fa_type SMALLINT, objtype TEXT, fiberassign_x REAL, fiberassign_y REAL, priority INTEGER, subpriority DOUBLE PRECISION, obsconditions INTEGER, release INTEGER, brickid INTEGER, brick_objid INTEGER, morphtype TEXT, flux_g REAL, flux_r REAL, flux_z REAL, flux_ivar_g REAL, flux_ivar_r REAL, flux_ivar_z REAL, maskbits SMALLINT, ref_id BIGINT, ref_cat TEXT, gaia_phot_g_mean_mag REAL, gaia_phot_bp_mean_mag REAL, gaia_phot_rp_mean_mag REAL, parallax REAL, brickname TEXT, ebv REAL, flux_w1 REAL, flux_w2 REAL, flux_ivar_w1 REAL, flux_ivar_w2 REAL, fiberflux_g REAL, fiberflux_r REAL, fiberflux_z REAL, fibertotflux_g REAL, fibertotflux_r REAL, fibertotflux_z REAL, sersic REAL, shape_r REAL, shape_e1 REAL, shape_e2 REAL, photsys TEXT, priority_init BIGINT, numobs_init BIGINT, desi_target BIGINT, bgs_target BIGINT, mws_target BIGINT, scnd_target DOUBLE PRECISION, plate_ra DOUBLE PRECISION, plate_dec DOUBLE PRECISION, tileid INTEGER, coadd_numexp SMALLINT, coadd_exptime REAL, coadd_numnight SMALLINT, coadd_numtile SMALLINT, mean_delta_x REAL, rms_delta_x REAL, mean_delta_y REAL, rms_delta_y REAL, mean_fiber_ra DOUBLE PRECISION, std_fiber_ra REAL, mean_fiber_dec DOUBLE PRECISION, std_fiber_dec REAL, mean_psf_to_fiber_specflux REAL, mean_fiber_x REAL, mean_fiber_y REAL, tsnr2_gpbdark_b REAL, tsnr2_elg_b REAL, tsnr2_gpbbright_b REAL, tsnr2_lya_b REAL, tsnr2_bgs_b REAL, tsnr2_gpbbackup_b REAL, tsnr2_qso_b REAL, tsnr2_lrg_b REAL, tsnr2_gpbdark_r REAL, tsnr2_elg_r REAL, tsnr2_gpbbright_r REAL, tsnr2_lya_r REAL, tsnr2_bgs_r REAL, tsnr2_gpbbackup_r REAL, tsnr2_qso_r REAL, tsnr2_lrg_r REAL, tsnr2_gpbdark_z REAL, tsnr2_elg_z REAL, tsnr2_gpbbright_z REAL, tsnr2_lya_z REAL, tsnr2_bgs_z REAL, tsnr2_gpbbackup_z REAL, tsnr2_qso_z REAL, tsnr2_lrg_z REAL, tsnr2_gpbdark REAL, tsnr2_elg REAL, tsnr2_gpbbright REAL, tsnr2_lya REAL, tsnr2_bgs REAL, tsnr2_gpbbackup REAL, tsnr2_qso REAL, tsnr2_lrg REAL, coeff_0 DOUBLE PRECISION, coeff_1 DOUBLE PRECISION, coeff_2 DOUBLE PRECISION, coeff_3 DOUBLE PRECISION, coeff_4 DOUBLE PRECISION, coeff_5 DOUBLE PRECISION, coeff_6 DOUBLE PRECISION, coeff_7 DOUBLE PRECISION, coeff_8 DOUBLE PRECISION, coeff_9 DOUBLE PRECISION, run TEXT, program TEXT, sv1_desi_target DOUBLE PRECISION, sv1_bgs_target DOUBLE PRECISION, sv1_mws_target DOUBLE PRECISION, sv1_scnd_target DOUBLE PRECISION, numtarget DOUBLE PRECISION, blobdist REAL, fiberflux_ivar_g REAL, fiberflux_ivar_r REAL, fiberflux_ivar_z REAL, hpxpixel DOUBLE PRECISION, sv2_desi_target DOUBLE PRECISION, sv2_bgs_target DOUBLE PRECISION, sv2_mws_target DOUBLE PRECISION, sv2_scnd_target DOUBLE PRECISION, sv3_desi_target DOUBLE PRECISION, sv3_bgs_target DOUBLE PRECISION, sv3_mws_target DOUBLE PRECISION, sv3_scnd_target DOUBLE PRECISION ); """.format(tablename) elif hdu==2 and coadd=='pernight': schema=""" CREATE TABLE IF NOT EXISTS {} ( targetid BIGINT, priority INTEGER, subpriority DOUBLE PRECISION, night INTEGER, expid INTEGER, mjd DOUBLE PRECISION, tileid INTEGER, exptime DOUBLE PRECISION, petal_loc SMALLINT, device_loc INTEGER, location BIGINT, fiber INTEGER, fiberstatus INTEGER, fiberassign_x REAL, fiberassign_y REAL, lambda_ref REAL, plate_ra DOUBLE PRECISION, plate_dec DOUBLE PRECISION, num_iter BIGINT, fiber_x DOUBLE PRECISION, fiber_y DOUBLE PRECISION, delta_x DOUBLE PRECISION, delta_y DOUBLE PRECISION, fiber_ra DOUBLE PRECISION, fiber_dec DOUBLE PRECISION, psf_to_fiber_specflux DOUBLE PRECISION, run TEXT, program TEXT ); """.format(tablename) elif hdu==1 and coadd=='cumulative': schema=""" CREATE TABLE IF NOT EXISTS {} ( targetid BIGINT, chi2 DOUBLE PRECISION, z DOUBLE PRECISION, zerr DOUBLE PRECISION, zwarn BIGINT, npixels BIGINT, spectype TEXT, subtype TEXT, ncoeff BIGINT, deltachi2 DOUBLE PRECISION, petal_loc SMALLINT, device_loc INTEGER, location BIGINT, fiber INTEGER, coadd_fiberstatus INTEGER, target_ra DOUBLE PRECISION, target_dec DOUBLE PRECISION, pmra REAL, pmdec REAL, ref_epoch REAL, lambda_ref REAL, fa_target BIGINT, fa_type SMALLINT, objtype TEXT, fiberassign_x REAL, fiberassign_y REAL, priority INTEGER, subpriority DOUBLE PRECISION, obsconditions INTEGER, release INTEGER, brickid INTEGER, brick_objid INTEGER, morphtype TEXT, flux_g REAL, flux_r REAL, flux_z REAL, flux_ivar_g REAL, flux_ivar_r REAL, flux_ivar_z REAL, maskbits SMALLINT, ref_id BIGINT, ref_cat TEXT, gaia_phot_g_mean_mag REAL, gaia_phot_bp_mean_mag REAL, gaia_phot_rp_mean_mag REAL, parallax REAL, brickname TEXT, ebv REAL, flux_w1 REAL, flux_w2 REAL, flux_ivar_w1 REAL, flux_ivar_w2 REAL, fiberflux_g REAL, fiberflux_r REAL, fiberflux_z REAL, fibertotflux_g REAL, fibertotflux_r REAL, fibertotflux_z REAL, sersic REAL, shape_r REAL, shape_e1 REAL, shape_e2 REAL, photsys TEXT, priority_init BIGINT, numobs_init BIGINT, desi_target BIGINT, bgs_target BIGINT, mws_target BIGINT, scnd_target DOUBLE PRECISION, plate_ra DOUBLE PRECISION, plate_dec DOUBLE PRECISION, tileid INTEGER, coadd_numexp SMALLINT, coadd_exptime REAL, coadd_numnight SMALLINT, coadd_numtile SMALLINT, mean_delta_x REAL, rms_delta_x REAL, mean_delta_y REAL, rms_delta_y REAL, mean_fiber_ra DOUBLE PRECISION, std_fiber_ra REAL, mean_fiber_dec DOUBLE PRECISION, std_fiber_dec REAL, mean_psf_to_fiber_specflux REAL, mean_fiber_x REAL, mean_fiber_y REAL, tsnr2_gpbdark_b REAL, tsnr2_elg_b REAL, tsnr2_gpbbright_b REAL, tsnr2_lya_b REAL, tsnr2_bgs_b REAL, tsnr2_gpbbackup_b REAL, tsnr2_qso_b REAL, tsnr2_lrg_b REAL, tsnr2_gpbdark_r REAL, tsnr2_elg_r REAL, tsnr2_gpbbright_r REAL, tsnr2_lya_r REAL, tsnr2_bgs_r REAL, tsnr2_gpbbackup_r REAL, tsnr2_qso_r REAL, tsnr2_lrg_r REAL, tsnr2_gpbdark_z REAL, tsnr2_elg_z REAL, tsnr2_gpbbright_z REAL, tsnr2_lya_z REAL, tsnr2_bgs_z REAL, tsnr2_gpbbackup_z REAL, tsnr2_qso_z REAL, tsnr2_lrg_z REAL, tsnr2_gpbdark REAL, tsnr2_elg REAL, tsnr2_gpbbright REAL, tsnr2_lya REAL, tsnr2_bgs REAL, tsnr2_gpbbackup REAL, tsnr2_qso REAL, tsnr2_lrg REAL, coeff_0 DOUBLE PRECISION, coeff_1 DOUBLE PRECISION, coeff_2 DOUBLE PRECISION, coeff_3 DOUBLE PRECISION, coeff_4 DOUBLE PRECISION, coeff_5 DOUBLE PRECISION, coeff_6 DOUBLE PRECISION, coeff_7 DOUBLE PRECISION, coeff_8 DOUBLE PRECISION, coeff_9 DOUBLE PRECISION, run TEXT, program TEXT, sv1_desi_target DOUBLE PRECISION, sv1_bgs_target DOUBLE PRECISION, sv1_mws_target DOUBLE PRECISION, sv1_scnd_target DOUBLE PRECISION, numtarget DOUBLE PRECISION, blobdist REAL, fiberflux_ivar_g REAL, fiberflux_ivar_r REAL, fiberflux_ivar_z REAL, hpxpixel DOUBLE PRECISION, sv2_desi_target DOUBLE PRECISION, sv2_bgs_target DOUBLE PRECISION, sv2_mws_target DOUBLE PRECISION, sv2_scnd_target DOUBLE PRECISION, sv3_desi_target DOUBLE PRECISION, sv3_bgs_target DOUBLE PRECISION, sv3_mws_target DOUBLE PRECISION, sv3_scnd_target DOUBLE PRECISION ); """.format(tablename) elif hdu==2 and coadd=='cumulative': schema=""" CREATE TABLE IF NOT EXISTS {} ( targetid BIGINT, priority INTEGER, subpriority DOUBLE PRECISION, night INTEGER, expid INTEGER, mjd DOUBLE PRECISION, tileid INTEGER, exptime DOUBLE PRECISION, petal_loc SMALLINT, device_loc INTEGER, location BIGINT, fiber INTEGER, fiberstatus INTEGER, fiberassign_x REAL, fiberassign_y REAL, lambda_ref REAL, plate_ra DOUBLE PRECISION, plate_dec DOUBLE PRECISION, num_iter BIGINT, fiber_x DOUBLE PRECISION, fiber_y DOUBLE PRECISION, delta_x DOUBLE PRECISION, delta_y DOUBLE PRECISION, fiber_ra DOUBLE PRECISION, fiber_dec DOUBLE PRECISION, psf_to_fiber_specflux DOUBLE PRECISION, run TEXT, program TEXT ); """.format(tablename) with engine.connect() as conn: if overwrite: cmd = f'DROP TABLE IF EXISTS {tablename};' conn.execute(text(cmd)) conn.execute(text(schema)) conn.close() @staticmethod def fill_table(prod='everest',hdu=1,coadd='pernight',schema=False): tablename = ztile_everest.tablename(prod=prod,coadd=coadd,hdu=hdu,short=True) print(tablename) root = f"/global/project/projectdirs/desi/spectro/redux/{prod}/zcatalog/" runs=['main','sv1','sv2','sv3'] programs = ['bright','dark','backup','other'] dfs=[] for run in runs: for program in programs: filename = os.path.join(root,f"ztile-{run}-{program}-{coadd}.fits") print(filename) try: dat = Table.read(filename, format='fits',hdu=hdu) except: continue print(filename) # There is a multidimensional column that needs to be broken up if hdu==1: for icoeff in range(0,10): dat[f'COEFF_{icoeff}']= dat['COEFF'][0:len(dat),icoeff] dat.remove_column('COEFF') dat.convert_bytestring_to_unicode() df = dat.to_pandas() df['run']=numpy.full(df.shape[0],run) df['program']=numpy.full(df.shape[0],program) df.columns= df.columns.str.lower() # dtypesToSchema(df.dtypes) if schema: dfs.append(df[0:1]) if not schema: try: df.to_sql(tablename,engine,index=False,if_exists='append',schema=prod) except: dtypesToSchema(df.dtypes) print(df[0]) sys.exit() if schema: dfs = pandas.concat(dfs, ignore_index=True, sort=False) dtypesToSchema(dfs.dtypes) class mtl: schema=f""" CREATE TABLE IF NOT EXISTS "mtl" ( ra DOUBLE PRECISION, dec DOUBLE PRECISION, ref_epoch REAL, parallax REAL, pmra REAL, pmdec REAL, targetid BIGINT, sv3_desi_target BIGINT, sv3_bgs_target BIGINT, sv3_mws_target BIGINT, subpriority DOUBLE PRECISION, obsconditions INTEGER, priority_init BIGINT, numobs_init BIGINT, sv3_scnd_target BIGINT, numobs_more BIGINT, numobs BIGINT, z DOUBLE PRECISION, zwarn BIGINT, ztileid INTEGER, target_state TEXT, timestamp TEXT, version TEXT, priority BIGINT, run TEXT, program TEXT, lunation TEXT, flux_g REAL, flux_r REAL, flux_z REAL, gaia_phot_g_mean_mag REAL, gaia_phot_bp_mean_mag REAL, gaia_phot_rp_mean_mag REAL, gaia_astrometric_excess_noise REAL, scnd_order INTEGER, checker TEXT, too_type TEXT, too_prio TEXT, oclayer TEXT, mjd_begin DOUBLE PRECISION, mjd_end DOUBLE PRECISION, tooid BIGINT ); """ root = "/global/cfs/cdirs/desi/survey/ops/surveyops/trunk/mtl/" runs = ["main","sv3","sv2"] runs=["sv3"] programs = ["ToO","","secondary"] lunations = ["bright","dark",""] @staticmethod def create_table(overwrite = False): with engine.connect() as conn: if overwrite: conn.execute(f"DROP TABLE IF EXISTS mtl;") conn.execute(mtl.schema) conn.close() @staticmethod def fill_table(): # The files have column names with SV?_ so purge them for run in mtl.runs: for program in mtl.programs: for lunation in mtl.lunations: path = os.path.join(mtl.root,run,program,lunation) if os.path.isdir(path): print(run, program, lunation) for file in glob.glob(path+"/*.ecsv"): if "input" in file: continue data = ascii.read(file) df = data.to_pandas() df['run']=numpy.full(df.shape[0],run) df['program']=numpy.full(df.shape[0],program) df['lunation']=numpy.full(df.shape[0],lunation) df.columns= df.columns.str.lower() try: df.to_sql('mtl',engine,index=False,if_exists='append') except: dtypesToSchema(df.dtypes) print(df.dtypes) sys.exit() else: print (path, 'not exists') class exposure_tables_daily: schema=""" CREATE TABLE IF NOT EXISTS "exposure_tables_daily" ( expid BIGINT PRIMARY KEY, exptime DOUBLE PRECISION, obstype TEXT, spectrographs DOUBLE PRECISION, camword TEXT, tileid BIGINT, night BIGINT, expflag TEXT, headererr TEXT, survey TEXT, seqnum BIGINT, seqtot BIGINT, program TEXT, mjd_obs DOUBLE PRECISION, reqra DOUBLE PRECISION, reqdec DOUBLE PRECISION, targtra DOUBLE PRECISION, targtdec DOUBLE PRECISION, comments TEXT, yyyymmdd BIGINT, purpose TEXT, fa_surv TEXT, badcamword TEXT, badamps TEXT, laststep TEXT, efftime_etc DOUBLE PRECISION, faprgrm TEXT, goaltime DOUBLE PRECISION, goaltype TEXT, ebvfac DOUBLE PRECISION, airfac DOUBLE PRECISION, speed DOUBLE PRECISION ); """ @staticmethod def create_table(overwrite = False): with engine.connect() as conn: if overwrite: conn.execute(f"DROP TABLE IF EXISTS exposure_tables_daily;") conn.execute(exposure_tables_daily.schema) conn.close() @staticmethod def fill_table(): dir_root='/global/cfs/cdirs/desi/spectro/redux/daily/exposure_tables/' #find the last date dates_db=[] try: with engine.connect() as conn: for row in conn.execute(f"SELECT DISTINCT yyyymmdd FROM exposure_tables_daily"): dates_db.append(row[0]) except: pass dates = [] for path in glob.glob(f'{dir_root}/*/exposure_table_????????.csv'): split = path.split('/') date = split[-1][-12:-4] dates.append(date) dates=numpy.sort(dates) # dates=numpy.flip(dates) dfs=[] for date in dates: if int(date) not in dates_db: file = f'/global/cfs/cdirs/desi/spectro/redux/daily/exposure_tables/{date[0:6]}/exposure_table_{date}.csv' data = ascii.read(file) df = data.to_pandas() df['YYYYMMDD']=numpy.full(df.shape[0],int(date)) df.columns= df.columns.str.lower() dfs.append(df) if len(dfs)>0: dfs = pandas.concat(dfs, ignore_index=True, sort=False) dfs.rename(columns={"mjd-obs": "mjd_obs"}, inplace=True) df.columns= df.columns.str.lower() try: dfs.to_sql(f'exposure_tables_daily',engine,index=False,if_exists='append') except: dtypesToSchema(dfs.dtypes) sys.exit() class proposals_pv: schema=""" CREATE TABLE IF NOT EXISTS "proposals_pv" ( objid BIGINT, brickid INTEGER, brickname TEXT, ra DOUBLE PRECISION, dec DOUBLE PRECISION, pmra REAL, pmdec REAL, ref_epoch REAL, override BOOLEAN, pvtype TEXT, pvpriority INTEGER, pointingid INTEGER, sga_id BIGINT, priority TEXT, lunation TEXT, run TEXT ); """ @staticmethod def create_table(overwrite = False): with engine.connect() as conn: if overwrite: conn.execute(text("DROP TABLE IF EXISTS proposals_pv;")) conn.execute(proposals_pv.schema) conn.close() @staticmethod def fill_table(): runs = ["main_year1","sv3","sv1"] lunations = ["BRIGHT","DARK"] priorities = ["LOW", "MEDIUM", "HIGH"] for run in runs: for lunation in lunations: for priority in priorities: filename = f"/global/cfs/cdirs/desi/target/proposals/proposals_{run}_frozen/indata/PV_{lunation}_{priority}.fits" try: dat = Table.read(filename, format='fits') except: print(f"{filename} not found") continue dat.convert_bytestring_to_unicode() df = dat.to_pandas() df['priority']=numpy.full(df.shape[0],priority) df['lunation']=numpy.full(df.shape[0],lunation) df['run']=numpy.full(df.shape[0],run) df.columns= df.columns.str.lower() try: df.to_sql('proposals_pv',engine,index=False,if_exists='append') except sqlite3.OperationalError as err: dtypesToSchema(df.dtypes) sys.exit() @staticmethod def fill_sga(): with engine.connect() as conn: # conn.execute("create table temp as (select * from proposals_pv);") query = """ UPDATE proposals_pv SET sga_id = NULL WHERE sga_id <1; """ conn.execute(query) query = """ UPDATE proposals_pv SET sga_id = dr9_pv.sga_id FROM dr9_pv WHERE proposals_pv.objid = dr9_pv.objid AND proposals_pv.brickid = dr9_pv.brickid; """ conn.execute(query) class fibermap_daily: schema=""" CREATE TABLE IF NOT EXISTS "fibermap_daily" ( targetid BIGINT, petal_loc SMALLINT, device_loc INTEGER, location BIGINT, fiber INTEGER, fiberstatus INTEGER, target_ra DOUBLE PRECISION, target_dec DOUBLE PRECISION, pmra REAL, pmdec REAL, ref_epoch REAL, lambda_ref REAL, fa_target BIGINT, fa_type SMALLINT, objtype TEXT, fiberassign_x REAL, fiberassign_y REAL, numtarget SMALLINT, priority INTEGER, subpriority DOUBLE PRECISION, obsconditions INTEGER, release SMALLINT, brickid INTEGER, brick_objid INTEGER, morphtype TEXT, flux_g REAL, flux_r REAL, flux_z REAL, flux_ivar_g REAL, flux_ivar_r REAL, flux_ivar_z REAL, maskbits SMALLINT, ref_id BIGINT, ref_cat TEXT, gaia_phot_g_mean_mag REAL, gaia_phot_bp_mean_mag REAL, gaia_phot_rp_mean_mag REAL, parallax REAL, brickname TEXT, ebv REAL, flux_w1 REAL, flux_w2 REAL, flux_ivar_w1 REAL, flux_ivar_w2 REAL, fiberflux_g REAL, fiberflux_r REAL, fiberflux_z REAL, fibertotflux_g REAL, fibertotflux_r REAL, fibertotflux_z REAL, sersic REAL, shape_r REAL, shape_e1 REAL, shape_e2 REAL, photsys TEXT, cmx_target BIGINT, sv1_desi_target BIGINT, sv1_bgs_target BIGINT, sv1_mws_target BIGINT, priority_init BIGINT, numobs_init BIGINT, desi_target BIGINT, bgs_target BIGINT, mws_target BIGINT, scnd_target BIGINT, plate_ra DOUBLE PRECISION, plate_dec DOUBLE PRECISION, num_iter BIGINT, fiber_x DOUBLE PRECISION, fiber_y DOUBLE PRECISION, delta_x DOUBLE PRECISION, delta_y DOUBLE PRECISION, fiber_ra DOUBLE PRECISION, fiber_dec DOUBLE PRECISION, exptime DOUBLE PRECISION, psf_to_fiber_specflux DOUBLE PRECISION, night INTEGER, expid INTEGER, mjd DOUBLE PRECISION, tileid INTEGER, yyyymmdd BIGINT, blobdist REAL, fiberflux_ivar_g REAL, fiberflux_ivar_r REAL, fiberflux_ivar_z REAL, hpxpixel BIGINT, sv1_scnd_target DOUBLE PRECISION, sv2_desi_target DOUBLE PRECISION, sv2_bgs_target DOUBLE PRECISION, sv2_mws_target DOUBLE PRECISION, sv2_scnd_target DOUBLE PRECISION, sv3_desi_target DOUBLE PRECISION, sv3_bgs_target DOUBLE PRECISION, sv3_mws_target DOUBLE PRECISION, sv3_scnd_target DOUBLE PRECISION, PRIMARY KEY (targetid, expid) ); """ @staticmethod def create_table(overwrite = False): with engine.connect() as conn: if overwrite: conn.execute(text("DROP TABLE IF EXISTS fibermap_daily;")) conn.execute(fibermap_daily.schema) conn.close() @staticmethod def fill_table(): magicdate='20210503' # the last date that daily directory was created # dir_root = "/global/project/projectdirs/desi/spectro/redux/daily/tiles/cumulative" dir_root = "/global/project/projectdirs/desi/spectro/redux/daily/tiles/" #find the last date dates_db=[] try: with engine.connect() as conn: for row in conn.execute(f"SELECT DISTINCT YYYYMMDD FROM fibermap_daily"): dates_db.append(row[0]) except: pass dates = [] for path in glob.glob(f'{dir_root}/*/202?????'): split = path.split('/') dates.append(split[-1]) for path in glob.glob(f'{dir_root}/cumulative/*/202?????'): split = path.split('/') dates.append(split[-1]) dates = numpy.unique(dates) dates=dates[dates >= '20201214'] for date in dates: if int(date) not in dates_db: print(date) # Do things in terms of dates dfs=[] if date<=magicdate or date != 20210213 or date != 20210315: # include dates that have missing daily reductions use_root = dir_root else: use_root = dir_root+'/cumulative/' for path in glob.glob(f'{use_root}/*/{date}'): split = path.split('/') tile = split[-2] if tile.isnumeric(): print(date,tile) for i in range(10): if date<=magicdate or date != 20210213 or date != 20210315: filename = f'{use_root}/{tile}/{date}/zbest-{i}-{tile}-{date}.fits' else: filename = f'{use_root}/{tile}/{date}/zbest-{i}-{tile}-thru{date}.fits' try: dat = Table.read(filename, format='fits',hdu=2) except: print(f"{filename} not found") continue dat.convert_bytestring_to_unicode() df = dat.to_pandas() # df['TILE']=numpy.full(df.shape[0],int(tile)) # df['PETAL']=numpy.full(df.shape[0],i) df=df[df['NIGHT']== int(date)] df['YYYYMMDD']=numpy.full(df.shape[0],int(date)) df.columns= df.columns.str.lower() dfs.append(df) if len(dfs)>0: try: dfs = pandas.concat(dfs, ignore_index=True, sort=False) dfs.to_sql(f'fibermap_daily',engine,index=False,if_exists='append') except: dtypesToSchema(dfs.dtypes) sys.exit() if __name__ == "__main__": # running as a cron job on cori10 zbest_daily.fill_table() fibermap_daily.fill_table() exposure_tables_daily.fill_table()
34.552846
133
0.492773
5,866
59,500
4.800886
0.079611
0.119842
0.035793
0.01534
0.802997
0.784887
0.773383
0.745863
0.729103
0.709218
0
0.014605
0.43842
59,500
1,722
134
34.552846
0.828216
0.01958
0
0.793828
0
0.002626
0.629055
0.034821
0
0
0
0
0
1
0.015758
false
0.003283
0.009192
0
0.043992
0.017728
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
e1d95d5df30e30e5f5a25b72fb8d788c9240eefa
735
py
Python
create_conda_env.py
machism0/non-bonded-periodic
30a6a10cae7487f88451db78319f66cf145bcba5
[ "MIT" ]
null
null
null
create_conda_env.py
machism0/non-bonded-periodic
30a6a10cae7487f88451db78319f66cf145bcba5
[ "MIT" ]
6
2017-12-18T12:48:52.000Z
2018-02-22T08:38:53.000Z
create_conda_env.py
machism0/non-bonded-periodic
30a6a10cae7487f88451db78319f66cf145bcba5
[ "MIT" ]
3
2017-12-11T16:11:15.000Z
2018-04-22T23:16:14.000Z
import subprocess import os if os.name != 'nt': # UNIX/MAC try: with open(os.devnull, 'wb') as quiet: subprocess.run('conda env create -f environment.yml'.split(), check=True, stderr=quiet) except subprocess.CalledProcessError: subprocess.run('conda env update -f environment.yml'.split()) else: # WINDOWS try: with open(os.devnull, 'wb') as quiet: subprocess.run('conda env create -f win-environment.yml'.split(), check=True, stderr=quiet) except subprocess.CalledProcessError: subprocess.run('conda env update -f win-environment.yml'.split())
31.956522
77
0.560544
80
735
5.15
0.4
0.126214
0.174757
0.203884
0.82767
0.76699
0.76699
0.76699
0.76699
0.76699
0
0
0.330612
735
22
78
33.409091
0.837398
0.021769
0
0.555556
0
0
0.215084
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
8
c023baa701789acafc33daa82f2de95fbe41afe6
7,686
py
Python
habitat/reporting/migrations/0007_auto_20171009_2046.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
1
2021-02-01T19:04:39.000Z
2021-02-01T19:04:39.000Z
habitat/reporting/migrations/0007_auto_20171009_2046.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
null
null
null
habitat/reporting/migrations/0007_auto_20171009_2046.py
matrach/habitatOS
1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-09 20:46 from __future__ import unicode_literals from django.db import migrations, models import habitat.timezone.models.martian_standard_time class Migration(migrations.Migration): dependencies = [ ('reporting', '0006_auto_20171008_2242'), ] operations = [ migrations.AddField( model_name='daily', name='addional_activities', field=models.TextField(blank=True, default=True, null=True, verbose_name='Additional Activities'), ), migrations.AddField( model_name='daily', name='scheduled_activities', field=models.TextField(blank=True, default=True, null=True, verbose_name='Scheduled Activities'), ), migrations.AlterField( model_name='communication', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='communication', name='time', field=models.TimeField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.time, help_text='example: 16:04:57, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', verbose_name='Coordinated Mars Time'), ), migrations.AlterField( model_name='daily', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='daily', name='remarks', field=models.TextField(blank=True, default=True, null=True, verbose_name='Additional Remarks'), ), migrations.AlterField( model_name='daily', name='time', field=models.TimeField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.time, help_text='example: 16:04:57, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', verbose_name='Coordinated Mars Time'), ), migrations.AlterField( model_name='incident', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='incident', name='time', field=models.TimeField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.time, help_text='example: 16:04:57, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', verbose_name='Coordinated Mars Time'), ), migrations.AlterField( model_name='medical', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='mood', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='mood', name='time', field=models.TimeField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.time, help_text='example: 16:04:57, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', verbose_name='Coordinated Mars Time'), ), migrations.AlterField( model_name='repair', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='repair', name='time', field=models.TimeField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.time, help_text='example: 16:04:57, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', verbose_name='Coordinated Mars Time'), ), migrations.AlterField( model_name='sleep', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='sociodynamicreport', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='sociodynamicreport', name='time', field=models.TimeField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.time, help_text='example: 16:04:57, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', verbose_name='Coordinated Mars Time'), ), migrations.AlterField( model_name='waste', name='date', field=models.CharField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.date, help_text='example: 51099.420109, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', max_length=15, verbose_name='Mars Sol Date'), ), migrations.AlterField( model_name='waste', name='time', field=models.TimeField(default=habitat.timezone.models.martian_standard_time.MartianStandardTime.time, help_text='example: 16:04:57, <a href="/api/v1/timezone/martian-standard-time/converter/" target="_blank">use converter</a> to calculate from Earth time', verbose_name='Coordinated Mars Time'), ), ]
68.625
319
0.690086
908
7,686
5.705947
0.099119
0.095541
0.121019
0.091874
0.9475
0.9475
0.898668
0.898668
0.898668
0.898668
0
0.033053
0.181239
7,686
111
320
69.243243
0.790243
0.008847
0
0.836538
1
0.153846
0.38109
0.120683
0
0
0
0
0
1
0
false
0
0.028846
0
0.057692
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
c03798f58d7c3400ea5f538a5f0288aa3b584e0f
320
py
Python
bitmovin_api_sdk/encoding/inputs/s3_role_based/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/encoding/inputs/s3_role_based/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/encoding/inputs/s3_role_based/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
from bitmovin_api_sdk.encoding.inputs.s3_role_based.s3_role_based_api import S3RoleBasedApi from bitmovin_api_sdk.encoding.inputs.s3_role_based.customdata.customdata_api import CustomdataApi from bitmovin_api_sdk.encoding.inputs.s3_role_based.s3_role_based_input_list_query_params import S3RoleBasedInputListQueryParams
80
128
0.921875
47
320
5.808511
0.382979
0.10989
0.201465
0.197802
0.553114
0.553114
0.553114
0.553114
0.553114
0.395604
0
0.022727
0.0375
320
3
129
106.666667
0.863636
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
fbf3d607364198930bad796a743cd75010484504
28,675
py
Python
alphacsc/other/sporco/sporco/fista/cbpdndl.py
sophiaas/alphacsc
402b8f6c8ee4ba9c86e9da0e2073d900cf8da207
[ "BSD-3-Clause" ]
89
2017-05-31T19:20:52.000Z
2022-03-22T09:52:17.000Z
alphacsc/other/sporco/sporco/fista/cbpdndl.py
sophiaas/alphacsc
402b8f6c8ee4ba9c86e9da0e2073d900cf8da207
[ "BSD-3-Clause" ]
75
2017-07-15T14:03:40.000Z
2022-03-29T17:31:58.000Z
alphacsc/other/sporco/sporco/fista/cbpdndl.py
sophiaas/alphacsc
402b8f6c8ee4ba9c86e9da0e2073d900cf8da207
[ "BSD-3-Clause" ]
35
2017-06-16T12:48:23.000Z
2022-03-21T09:49:55.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2016-2017 by Brendt Wohlberg <brendt@ieee.org> # Cristina Garcia-Cardona <cgarciac@lanl.gov> # All rights reserved. BSD 3-clause License. # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' file distributed # with the package. """Dictionary learning based on CBPDN sparse coding""" from __future__ import print_function from __future__ import absolute_import from builtins import range from builtins import object import copy import numpy as np from sporco.util import u import sporco.linalg as sl import sporco.cnvrep as cr from sporco.fista import ccmod from sporco.admm import dictlrn import sporco.admm.cbpdn as Acbpdn from sporco.fista import cbpdn as Fcbpdn __author__ = """Cristina Garcia-Cardona <cgarciac@lanl.gov>""" class ConvBPDNDictLearn(dictlrn.DictLearn): r"""**Class inheritance structure** .. inheritance-diagram:: ConvBPDNDictLearn :parts: 2 | Dictionary learning based on ConvBPDN (FISTA) and ConvCnstrMOD (FISTA) :cite:`garcia-2017-convolutional`. Solve the optimisation problem .. math:: \mathrm{argmin}_{\mathbf{d}, \mathbf{x}} \; (1/2) \sum_k \left \| \sum_m \mathbf{d}_m * \mathbf{x}_{k,m} - \mathbf{s}_k \right \|_2^2 + \lambda \sum_k \sum_m \| \mathbf{x}_{k,m} \|_1 \quad \text{such that} \quad \mathbf{d}_m \in C \;\;, where :math:`C` is the feasible set consisting of filters with unit norm and constrained support, via interleaved alternation between FISTA steps of the :class:`.fista.cbpdn.ConvBPDN` and :class:`.ConvCnstrMOD` problems. The multi-channel variants supported by :class:`.ConvCnstrMOD` are also supported. After termination of the :meth:`solve` method, attribute :attr:`itstat` is a list of tuples representing statistics of each iteration. The fields of the named tuple ``IterationStats`` are: ``Iter`` : Iteration number ``ObjFun`` : Objective function value ``DFid`` : Value of data fidelity term :math:`(1/2) \sum_k \| \sum_m \mathbf{d}_m * \mathbf{x}_{k,m} - \mathbf{s}_k \|_2^2` ``RegL1`` : Value of regularisation term :math:`\sum_k \sum_m \| \mathbf{x}_{k,m} \|_1` ``Cnstr`` : Constraint violation measure ``X_F_Btrack`` : Value of objective function for CSC problem ``X_Q_Btrack`` : Value of Quadratic approximation for CSC problem ``X_ItBt`` : Number of iterations in bactracking for CSC problem ``X_L`` : Inverse of gradient step parameter for CSC problem ``D_F_Btrack`` : Value of objective function for CDU problem ``D_Q_Btrack`` : Value of Quadratic approximation for CDU problem ``D_ItBt`` : Number of iterations in bactracking for CDU problem ``D_L`` : Inverse of gradient step parameter for CDU problem ``Time`` : Cumulative run time """ class Options(dictlrn.DictLearn.Options): """ConvBPDNDictLearn dictionary learning algorithm options. Options include all of those defined in :class:`.dictlrn.DictLearn.Options`, together with additional options: ``AccurateDFid`` : Flag determining whether data fidelity term is estimated from the value computed in the X update (``False``) or is computed after every outer iteration over an X update and a D update (``True``), which is slower but more accurate. ``DictSize`` : Dictionary size vector. ``CBPDN`` : Options :class:`.cbpdn.GenericConvBPDN.Options` ``CCMOD`` : Options :func:`.ccmod.ConvCnstrMOD.Options` """ defaults = copy.deepcopy(dictlrn.DictLearn.Options.defaults) defaults.update({'DictSize' : None, 'AccurateDFid' : False, 'CBPDN' : copy.deepcopy( Fcbpdn.ConvBPDN.Options.defaults)}) def __init__(self, opt=None): """Initialise ConvDictLearnFista dictionary learning algorithm options. """ self.defaults.update({'CCMOD' : copy.deepcopy( ccmod.ConvCnstrMOD.Options.defaults)}) dictlrn.DictLearn.Options.__init__(self, { 'CBPDN': Fcbpdn.ConvBPDN.Options( {'MaxMainIter': 1, 'BackTrack': {'Eta': 1.2, 'MaxIter': 50}}), 'CCMOD': ccmod.ConvCnstrMOD.Options({'MaxMainIter': 1, 'BackTrack': {'Eta': 1.2, 'MaxIter': 50}}) }) if opt is None: opt = {} self.update(opt) def __init__(self, D0, S, lmbda=None, opt=None, dimK=1, dimN=2): """ Initialise a ConvBPDNDictLearn object with problem size and options. Parameters ---------- D0 : array_like Initial dictionary array S : array_like Signal array lmbda : float Regularisation parameter opt : :class:`ConvBPDNDictLearn.Options` object Algorithm options dimK : int, optional (default 1) Number of signal dimensions. If there is only a single input signal (e.g. if `S` is a 2D array representing a single image) `dimK` must be set to 0. dimN : int, optional (default 2) Number of spatial/temporal dimensions """ if opt is None: opt = ConvBPDNDictLearn.Options() self.opt = opt # Get dictionary size if self.opt['DictSize'] is None: dsz = D0.shape else: dsz = self.opt['DictSize'] # Construct object representing problem dimensions cri = cr.CDU_ConvRepIndexing(dsz, S, dimK, dimN) # Normalise dictionary D0 = cr.Pcn(D0, dsz, cri.Nv, dimN, cri.dimCd, crp=True, zm=opt['CCMOD', 'ZeroMean']) # Modify D update options to include initial values for X opt['CCMOD'].update({'X0' : cr.zpad( cr.stdformD(D0, cri.C, cri.M, dimN), cri.Nv)}) # Create X update object xstep = Fcbpdn.ConvBPDN(D0, S, lmbda, opt['CBPDN'], dimK=dimK, dimN=dimN) # Create D update object dstep = ccmod.ConvCnstrMOD(None, S, dsz, opt['CCMOD'], dimK=dimK, dimN=dimN) print("L xstep in cbpdndl: ", xstep.L) print("L dstep in cbpdndl: ", dstep.L) # Configure iteration statistics reporting isfld = ['Iter', 'ObjFun', 'DFid', 'RegL1', 'Cnstr'] hdrtxt = ['Itn', 'Fnc', 'DFid', u('ℓ1'), 'Cnstr'] hdrmap = {'Itn': 'Iter', 'Fnc': 'ObjFun', 'DFid': 'DFid', u('ℓ1'): 'RegL1', 'Cnstr': 'Cnstr'} if self.opt['AccurateDFid']: isxmap = {'X_F_Btrack': 'F_Btrack', 'X_Q_Btrack': 'Q_Btrack', 'X_ItBt': 'IterBTrack', 'X_L': 'L', 'X_Rsdl': 'Rsdl'} evlmap = {'ObjFun': 'ObjFun', 'DFid': 'DFid', 'RegL1': 'RegL1'} else: isxmap = {'ObjFun': 'ObjFun', 'DFid': 'DFid', 'RegL1': 'RegL1', 'X_F_Btrack': 'F_Btrack', 'X_Q_Btrack': 'Q_Btrack', 'X_ItBt': 'IterBTrack', 'X_L': 'L', 'X_Rsdl': 'Rsdl'} evlmap = {} # If Backtracking enabled in xstep display the BT variables also if xstep.opt['BackTrack', 'Enabled']: isfld.extend(['X_F_Btrack', 'X_Q_Btrack', 'X_ItBt', 'X_L', 'X_Rsdl']) hdrtxt.extend(['F_X', 'Q_X', 'It_X', 'L_X']) hdrmap.update({'F_X': 'X_F_Btrack','Q_X': 'X_Q_Btrack', 'It_X': 'X_ItBt', 'L_X': 'X_L'}) else: # Add just L value to xstep display isfld.extend(['X_L', 'X_Rsdl']) hdrtxt.append('L_X') hdrmap.update({'L_X': 'X_L'}) isdmap = {'Cnstr': 'Cnstr', 'D_F_Btrack': 'F_Btrack', 'D_Q_Btrack': 'Q_Btrack', 'D_ItBt': 'IterBTrack', 'D_L': 'L', 'D_Rsdl': 'Rsdl'} # If Backtracking enabled in dstep display the BT variables also if dstep.opt['BackTrack', 'Enabled']: isfld.extend(['D_F_Btrack', 'D_Q_Btrack', 'D_ItBt', 'D_L', 'D_Rsdl', 'Time']) hdrtxt.extend(['F_D', 'Q_D', 'It_D', 'L_D']) hdrmap.update({'F_D': 'D_F_Btrack', 'Q_D': 'D_Q_Btrack', 'It_D': 'D_ItBt', 'L_D': 'D_L'}) else: # Add just L value to dstep display isfld.extend(['D_L', 'D_Rsdl', 'Time']) hdrtxt.append('L_D') hdrmap.update({'L_D': 'D_L'}) isc = dictlrn.IterStatsConfig(isfld=isfld, isxmap=isxmap, isdmap=isdmap, evlmap=evlmap, hdrtxt=hdrtxt, hdrmap=hdrmap) # Call parent constructor super(ConvBPDNDictLearn, self).__init__(xstep, dstep, opt, isc) def getdict(self, crop=True): """Get final dictionary. If ``crop`` is ``True``, apply :func:`.cnvrep.bcrop` to returned array. """ return self.dstep.getdict(crop=crop) def evaluate(self): """Evaluate functional value of previous iteration""" if self.opt['AccurateDFid']: D = self.getdict(crop=False) X = self.getcoef() Df = sl.rfftn(D, self.xstep.cri.Nv, self.xstep.cri.axisN) Xf = sl.rfftn(X, self.xstep.cri.Nv, self.xstep.cri.axisN) Sf = self.xstep.Sf Ef = np.sum(Df * Xf, axis=self.xstep.cri.axisM, keepdims=True) - Sf dfd = sl.rfl2norm2(Ef, self.xstep.S.shape, axis=self.xstep.cri.axisN)/2.0 rl1 = np.sum(np.abs(X)) return dict(DFid=dfd, RegL1=rl1, ObjFun=dfd+self.xstep.lmbda*rl1) else: return None class MixConvBPDNDictLearn(dictlrn.DictLearn): r"""**Class inheritance structure** .. inheritance-diagram:: MixConvBPDNDictLearn :parts: 2 | Dictionary learning based on ConvBPDN (ADMM) and ConvCnstrMOD (FISTA) :cite:`garcia-2017-convolutional`. Solve the optimisation problem .. math:: \mathrm{argmin}_{\mathbf{d}, \mathbf{x}} \; (1/2) \sum_k \left \| \sum_m \mathbf{d}_m * \mathbf{x}_{k,m} - \mathbf{s}_k \right \|_2^2 + \lambda \sum_k \sum_m \| \mathbf{x}_{k,m} \|_1 \quad \text{such that} \quad \mathbf{d}_m \in C \;\;, where :math:`C` is the feasible set consisting of filters with unit norm and constrained support, via interleaved alternation between ADMM steps of the :class:`.admm.cbpdn.ConvBPDN` and FISTA steps :class:`.ConvCnstrMOD` problems. The multi-channel variants supported by :class:`.ConvCnstrMOD` are also supported. After termination of the :meth:`solve` method, attribute :attr:`itstat` is a list of tuples representing statistics of each iteration. The fields of the named tuple ``IterationStats`` are: ``Iter`` : Iteration number ``ObjFun`` : Objective function value ``DFid`` : Value of data fidelity term :math:`(1/2) \sum_k \| \sum_m \mathbf{d}_m * \mathbf{x}_{k,m} - \mathbf{s}_k \|_2^2` ``RegL1`` : Value of regularisation term :math:`\sum_k \sum_m \| \mathbf{x}_{k,m} \|_1` ``Cnstr`` : Constraint violation measure ``XPrRsdl`` : Norm of X primal residual ``XDlRsdl`` : Norm of X dual residual ``XRho`` : X penalty parameter ``D_F_Btrack`` : Value of objective function for CDU problem ``D_Q_Btrack`` : Value of Quadratic approximation for CDU problem ``D_ItBt`` : Number of iterations in bactracking for CDU problem ``D_L`` : Inverse of gradient step parameter for CDU problem ``Time`` : Cumulative run time """ class Options(dictlrn.DictLearn.Options): """MixConvBPDNDictLearn dictionary learning algorithm options. Options include all of those defined in :class:`.dictlrn.DictLearn.Options`, together with additional options: ``AccurateDFid`` : Flag determining whether data fidelity term is estimated from the value computed in the X update (``False``) or is computed after every outer iteration over an X update and a D update (``True``), which is slower but more accurate. ``DictSize`` : Dictionary size vector. ``CBPDN`` : Options :class:`.admm.cbpdn.ConvBPDN.Options` ``CCMOD`` : Options :func:`.ccmod.ConvCnstrMOD.Options` """ defaults = copy.deepcopy(dictlrn.DictLearn.Options.defaults) defaults.update({'DictSize' : None, 'AccurateDFid' : False, 'CBPDN' : copy.deepcopy( Acbpdn.ConvBPDN.Options.defaults)}) def __init__(self, opt=None): """Initialise ConvBPDNAdmm_DictLearnFista dictionary learning algorithm options. """ self.defaults.update({'CCMOD' : copy.deepcopy( ccmod.ConvCnstrMOD.Options.defaults)}) dictlrn.DictLearn.Options.__init__(self, { 'CBPDN': Acbpdn.ConvBPDN.Options({'MaxMainIter': 1, 'AutoRho': {'Period': 10, 'AutoScaling': False, 'RsdlRatio': 10.0, 'Scaling': 2.0, 'RsdlTarget': 1.0}}), 'CCMOD': ccmod.ConvCnstrMOD.Options( {'MaxMainIter': 1, 'BackTrack': {'Eta': 1.2, 'MaxIter': 50}}) }) if opt is None: opt = {} self.update(opt) def __init__(self, D0, S, lmbda=None, opt=None, dimK=1, dimN=2): """ Initialise a MixConvBPDNDictLearn object with problem size and options. Parameters ---------- D0 : array_like Initial dictionary array S : array_like Signal array lmbda : float Regularisation parameter opt : :class:`ConvBPDNDictLearn.Options` object Algorithm options dimK : int, optional (default 1) Number of signal dimensions. If there is only a single input signal (e.g. if `S` is a 2D array representing a single image) `dimK` must be set to 0. dimN : int, optional (default 2) Number of spatial/temporal dimensions """ if opt is None: opt = MixConvBPDNDictLearn.Options() self.opt = opt # Get dictionary size if self.opt['DictSize'] is None: dsz = D0.shape else: dsz = self.opt['DictSize'] # Construct object representing problem dimensions cri = cr.CDU_ConvRepIndexing(dsz, S, dimK, dimN) # Normalise dictionary D0 = cr.Pcn(D0, dsz, cri.Nv, dimN, cri.dimCd, crp=True, zm=opt['CCMOD', 'ZeroMean']) # Modify D update options to include initial values for Y and U opt['CCMOD'].update({'X0' : cr.zpad( cr.stdformD(D0, cri.C, cri.M, dimN), cri.Nv)}) # Create X update object xstep = Acbpdn.ConvBPDN(D0, S, lmbda, opt['CBPDN'], dimK=dimK, dimN=dimN) # Create D update object dstep = ccmod.ConvCnstrMOD(None, S, dsz, opt['CCMOD'], dimK=dimK, dimN=dimN) # Configure iteration statistics reporting if self.opt['AccurateDFid']: isxmap = {'XPrRsdl': 'PrimalRsdl', 'XDlRsdl': 'DualRsdl', 'XRho': 'Rho'} evlmap = {'ObjFun': 'ObjFun', 'DFid': 'DFid', 'RegL1': 'RegL1'} else: isxmap = {'ObjFun': 'ObjFun', 'DFid': 'DFid', 'RegL1': 'RegL1', 'XPrRsdl': 'PrimalRsdl', 'XDlRsdl': 'DualRsdl', 'XRho': 'Rho'} evlmap = {} if dstep.opt['BackTrack', 'Enabled']: isfld = ['Iter', 'ObjFun', 'DFid', 'RegL1', 'Cnstr', 'XPrRsdl', 'XDlRsdl', 'XRho', 'D_F_Btrack', 'D_Q_Btrack', 'D_ItBt', 'D_L', 'Time'] isdmap = {'Cnstr': 'Cnstr', 'D_F_Btrack': 'F_Btrack', 'D_Q_Btrack': 'Q_Btrack', 'D_ItBt': 'IterBTrack', 'D_L': 'L'} hdrtxt = ['Itn', 'Fnc', 'DFid', u('ℓ1'), 'Cnstr', 'r_X', 's_X', u('ρ_X'), 'F_D', 'Q_D', 'It_D', 'L_D'] hdrmap={'Itn': 'Iter', 'Fnc': 'ObjFun', 'DFid': 'DFid', u('ℓ1'): 'RegL1', 'Cnstr': 'Cnstr', 'r_X': 'XPrRsdl', 's_X': 'XDlRsdl', u('ρ_X'): 'XRho', 'F_D': 'D_F_Btrack', 'Q_D': 'D_Q_Btrack', 'It_D': 'D_ItBt', 'L_D': 'D_L'} else: isfld = ['Iter', 'ObjFun', 'DFid', 'RegL1', 'Cnstr', 'XPrRsdl', 'XDlRsdl', 'XRho', 'D_L', 'Time'] isdmap={'Cnstr': 'Cnstr', 'D_L': 'L'} hdrtxt=['Itn', 'Fnc', 'DFid', u('ℓ1'), 'Cnstr', 'r_X', 's_X', u('ρ_X'), 'L_D'] hdrmap={'Itn': 'Iter', 'Fnc': 'ObjFun', 'DFid': 'DFid', u('ℓ1'): 'RegL1', 'Cnstr': 'Cnstr', 'r_X': 'XPrRsdl', 's_X': 'XDlRsdl', u('ρ_X'): 'XRho', 'L_D': 'D_L'} isc = dictlrn.IterStatsConfig(isfld=isfld, isxmap=isxmap, isdmap=isdmap, evlmap=evlmap, hdrtxt=hdrtxt, hdrmap=hdrmap) # Call parent constructor super(MixConvBPDNDictLearn, self).__init__(xstep, dstep, opt, isc) def getdict(self, crop=True): """Get final dictionary. If ``crop`` is ``True``, apply :func:`.cnvrep.bcrop` to returned array. """ return self.dstep.getdict(crop=crop) def reconstruct(self, D=None, X=None): """Reconstruct representation.""" if D is None: D = self.getdict(crop=False) if X is None: X = self.getcoef() Df = sl.rfftn(D, self.xstep.cri.Nv, self.xstep.cri.axisN) Xf = sl.rfftn(X, self.xstep.cri.Nv, self.xstep.cri.axisN) DXf = sl.inner(Df, Xf, axis=self.xstep.cri.axisM) return sl.irfftn(DXf, self.xstep.cri.Nv, self.xstep.cri.axisN) def evaluate(self): """Evaluate functional value of previous iteration""" if self.opt['AccurateDFid']: D = self.getdict(crop=False) X = self.getcoef() Df = sl.rfftn(D, self.xstep.cri.Nv, self.xstep.cri.axisN) Xf = sl.rfftn(X, self.xstep.cri.Nv, self.xstep.cri.axisN) Sf = self.xstep.Sf Ef = np.sum(Df * Xf, axis=self.xstep.cri.axisM, keepdims=True) - Sf dfd = sl.rfl2norm2(Ef, self.xstep.S.shape, axis=self.xstep.cri.axisN)/2.0 rl1 = np.sum(np.abs(X)) return dict(DFid=dfd, RegL1=rl1, ObjFun=dfd+self.xstep.lmbda*rl1) else: return None class MixConvBPDNMaskDcplDictLearn(dictlrn.DictLearn): r"""**Class inheritance structure** .. inheritance-diagram:: MixConvBPDNMaskDcplDictLearn :parts: 2 | Dictionary learning based on ConvBPDNMaskDcpl (ADMM) and ConvCnstrMODMaskDcpl (FISTA) :cite:`garcia-2017-convolutional`. Solve the optimisation problem .. math:: \mathrm{argmin}_{\mathbf{d}, \mathbf{x}} \; (1/2) \sum_k \left \| W (\sum_m \mathbf{d}_m * \mathbf{x}_{k,m} - \mathbf{s}_k ) \right \|_2^2 + \lambda \sum_k \sum_m \| \mathbf{x}_{k,m} \|_1 \quad \text{such that} \quad \mathbf{d}_m \in C \;\; \forall m \;, where :math:`C` is the feasible set consisting of filters with unit norm and constrained support, via interleaved alternation between ADMM steps of the :class:`.admm.cbpdn.ConvBPDNMaskDcpl` and FISTA steps :class:`.ConvCnstrMODMaskDcpl` problems. The multi-channel variants supported by :class:`.admm.cbpdn.ConvBPDNMaskDcpl` and :func:`.ConvCnstrMODMaskDcpl` are also supported. After termination of the :meth:`solve` method, attribute :attr:`itstat` is a list of tuples representing statistics of each iteration. The fields of the named tuple ``IterationStats`` are: ``Iter`` : Iteration number ``ObjFun`` : Objective function value ``DFid`` : Value of data fidelity term :math:`(1/2) \sum_k \| \sum_m \mathbf{d}_m * \mathbf{x}_{k,m} - \mathbf{s}_k \|_2^2` ``RegL1`` : Value of regularisation term :math:`\sum_k \sum_m \| \mathbf{x}_{k,m} \|_1` ``Cnstr`` : Constraint violation measure ``XPrRsdl`` : Norm of X primal residual ``XDlRsdl`` : Norm of X dual residual ``XRho`` : X penalty parameter ``D_F_Btrack`` : Value of objective function for CDU problem ``D_Q_Btrack`` : Value of Quadratic approximation for CDU problem ``D_ItBt`` : Number of iterations in bactracking for CDU problem ``D_L`` : Inverse of gradient step parameter for CDU problem ``Time`` : Cumulative run time """ class Options(dictlrn.DictLearn.Options): """MixConvBPDNMaskDcplDictLearn dictionary learning algorithm options. Options include all of those defined in :class:`.dictlrn.DictLearn.Options`, together with additional options: ``AccurateDFid`` : Flag determining whether data fidelity term is estimated from the value computed in the X update (``False``) or is computed after every outer iteration over an X update and a D update (``True``), which is slower but more accurate. ``DictSize`` : Dictionary size vector. ``CBPDN`` : Options :class:`.admm.cbpdn.ConvBPDNMaskDcpl.Options` ``CCMOD`` : Options :func:`.ccmod.ConvCnstrMODMaskDcpl.Options` """ defaults = copy.deepcopy(dictlrn.DictLearn.Options.defaults) defaults.update({'DictSize' : None, 'AccurateDFid' : False, 'CBPDN' : copy.deepcopy( Acbpdn.ConvBPDNMaskDcpl.Options.defaults)}) def __init__(self, opt=None): """Initialise ConvBPDNMaskDcplDictLearn dictionary learning algorithm options. """ self.defaults.update({'CCMOD' : copy.deepcopy( ccmod.ConvCnstrMODMaskDcpl.Options.defaults)}) dictlrn.DictLearn.Options.__init__(self, { 'CBPDN': Acbpdn.ConvBPDNMaskDcpl.Options({'MaxMainIter': 1, 'AutoRho': {'Period': 10, 'AutoScaling': False, 'RsdlRatio': 10.0, 'Scaling': 2.0, 'RsdlTarget': 1.0}}), 'CCMOD': ccmod.ConvCnstrMODMaskDcpl.Options( {'MaxMainIter': 1, 'BackTrack': {'Eta': 1.2, 'MaxIter': 50}}) }) if opt is None: opt = {} self.update(opt) def __init__(self, D0, S, lmbda, W, opt=None, dimK=1, dimN=2): """ Initialise a MixConvBPDNMaskDcplDictLearn object with problem size and options. Parameters ---------- D0 : array_like Initial dictionary array S : array_like Signal array lmbda : float Regularisation parameter W : array_like Mask array. The array shape must be such that the array is compatible for multiplication with the *internal* shape of input array S (see :class:`.cnvrep.CDU_ConvRepIndexing` for a discussion of the distinction between *external* and *internal* data layouts). opt : :class:`MixConvBPDNMaskDcplDictLearn.Options` object Algorithm options dimK : int, optional (default 1) Number of signal dimensions. If there is only a single input signal (e.g. if `S` is a 2D array representing a single image) `dimK` must be set to 0. dimN : int, optional (default 2) Number of spatial/temporal dimensions """ if opt is None: opt = MixConvBPDNMaskDcplDictLearn.Options() self.opt = opt # Get dictionary size if self.opt['DictSize'] is None: dsz = D0.shape else: dsz = self.opt['DictSize'] # Construct object representing problem dimensions cri = cr.CDU_ConvRepIndexing(dsz, S, dimK, dimN) # Normalise dictionary D0 = cr.Pcn(D0, dsz, cri.Nv, dimN, cri.dimCd, crp=True, zm=opt['CCMOD', 'ZeroMean']) # Modify D update options to include initial values for X X0 = cr.zpad(cr.stdformD(D0, cri.Cd, cri.M, dimN), cri.Nv) opt['CCMOD'].update({'X0' : X0}) # Create X update object xstep = Acbpdn.ConvBPDNMaskDcpl(D0, S, lmbda, W, opt['CBPDN'], dimK=dimK, dimN=dimN) # Create D update object dstep = ccmod.ConvCnstrMODMaskDcpl(None, S, W, dsz, opt['CCMOD'], dimK=dimK, dimN=dimN) # Configure iteration statistics reporting if self.opt['AccurateDFid']: isxmap = {'XPrRsdl': 'PrimalRsdl', 'XDlRsdl': 'DualRsdl', 'XRho': 'Rho'} evlmap = {'ObjFun': 'ObjFun', 'DFid': 'DFid', 'RegL1': 'RegL1'} else: isxmap = {'ObjFun': 'ObjFun', 'DFid': 'DFid', 'RegL1': 'RegL1', 'XPrRsdl': 'PrimalRsdl', 'XDlRsdl': 'DualRsdl', 'XRho': 'Rho'} evlmap = {} if dstep.opt['BackTrack', 'Enabled']: isfld = ['Iter', 'ObjFun', 'DFid', 'RegL1', 'Cnstr', 'XPrRsdl', 'XDlRsdl', 'XRho', 'D_F_Btrack', 'D_Q_Btrack', 'D_ItBt', 'D_L', 'Time'] isdmap = {'Cnstr': 'Cnstr', 'D_F_Btrack': 'F_Btrack', 'D_Q_Btrack': 'Q_Btrack', 'D_ItBt': 'IterBTrack', 'D_L': 'L'} hdrtxt = ['Itn', 'Fnc', 'DFid', u('ℓ1'), 'Cnstr', 'r_X', 's_X', u('ρ_X'), 'F_D', 'Q_D', 'It_D', 'L_D'] hdrmap = {'Itn': 'Iter', 'Fnc': 'ObjFun', 'DFid': 'DFid', u('ℓ1'): 'RegL1', 'Cnstr': 'Cnstr', 'r_X': 'XPrRsdl', 's_X': 'XDlRsdl', u('ρ_X'): 'XRho', 'F_D': 'D_F_Btrack', 'Q_D': 'D_Q_Btrack', 'It_D': 'D_ItBt', 'L_D': 'D_L'} else: isfld = ['Iter', 'ObjFun', 'DFid', 'RegL1', 'Cnstr', 'XPrRsdl', 'XDlRsdl', 'XRho', 'D_L', 'Time'] isdmap = {'Cnstr': 'Cnstr', 'D_L': 'L'} hdrtxt = ['Itn', 'Fnc', 'DFid', u('ℓ1'), 'Cnstr', 'r_X', 's_X', u('ρ_X'), 'L_D'] hdrmap = {'Itn': 'Iter', 'Fnc': 'ObjFun', 'DFid': 'DFid', u('ℓ1'): 'RegL1', 'Cnstr': 'Cnstr', 'r_X': 'XPrRsdl', 's_X': 'XDlRsdl', u('ρ_X'): 'XRho', 'L_D': 'D_L'} isc = dictlrn.IterStatsConfig(isfld=isfld, isxmap=isxmap, isdmap=isdmap, evlmap=evlmap, hdrtxt=hdrtxt, hdrmap=hdrmap) # Call parent constructor super(MixConvBPDNMaskDcplDictLearn, self).__init__(xstep, dstep, opt, isc) def getdict(self, crop=True): """Get final dictionary. If ``crop`` is ``True``, apply :func:`.cnvrep.bcrop` to returned array. """ return self.dstep.getdict(crop=crop) def reconstruct(self, D=None, X=None): """Reconstruct representation.""" if D is None: D = self.getdict(crop=False) if X is None: X = self.getcoef() Df = sl.rfftn(D, self.xstep.cri.Nv, self.xstep.cri.axisN) Xf = sl.rfftn(X, self.xstep.cri.Nv, self.xstep.cri.axisN) DXf = sl.inner(Df, Xf, axis=self.xstep.cri.axisM) return sl.irfftn(DXf, self.xstep.cri.Nv, self.xstep.cri.axisN) def evaluate(self): """Evaluate functional value of previous iteration""" if self.opt['AccurateDFid']: DX = self.reconstruct() S = self.xstep.S dfd = (np.linalg.norm(self.xstep.W * (DX - S))**2) / 2.0 X = self.getcoef() rl1 = np.sum(np.abs(X)) return dict(DFid=dfd, RegL1=rl1, ObjFun=dfd+self.xstep.lmbda*rl1) else: return None
37
79
0.552746
3,352
28,675
4.629177
0.112172
0.0203
0.020107
0.00696
0.861765
0.848747
0.830508
0.810853
0.791648
0.777341
0
0.009998
0.312851
28,675
774
80
37.047804
0.777507
0.395885
0
0.745098
0
0
0.156658
0
0
0
0
0
0
1
0.045752
false
0
0.042484
0
0.143791
0.009804
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
221bd3775a6f5fad865b79332ed6cf2163ce8d24
73,575
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_to_dict_v3.py
jalauzon-msft/azure-sdk-for-python
15967f5c6d3376f2334a382486ba86339786e028
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_to_dict_v3.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_to_dict_v3.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from azure.ai.formrecognizer import _models from testcase import FormRecognizerTest class TestToDict(FormRecognizerTest): def test_bounding_region_to_dict(self): model = _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1 ) # d = [p.to_dict() for p in model] d = model.to_dict() final = { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], } assert d == final def test_document_span_to_dict(self): model = _models.DocumentSpan( offset=5, length=2, ) d = model.to_dict() final = { "offset": 5, "length": 2, } assert d == final def test_address_value_to_dict(self): model = _models.AddressValue( house_number="123", po_box="4567", road="Contoso Ave", city="Redmond", state="WA", postal_code="98052", country_region="USA", street_address="123 Contoso Ave", ) d = model.to_dict() final = { "house_number": "123", "po_box": "4567", "road": "Contoso Ave", "city": "Redmond", "state": "WA", "postal_code": "98052", "country_region": "USA", "street_address": "123 Contoso Ave", } assert d == final def test_currency_value_to_dict(self): model = _models.CurrencyValue( amount=5.01, symbol="$", ) d = model.to_dict() final = { "amount": 5.01, "symbol": "$", } assert d == final def test_document_content_element_to_dict(self): model = _models.DocumentContentElement( content="sample", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], span=_models.DocumentSpan( offset=5, length=2, ), kind="word", confidence=0.99, ) d = model.to_dict() final = { "content": "sample", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "span": { "offset": 5, "length": 2, }, "confidence": 0.99, "kind": "word", } assert d == final def test_analyzed_document_to_dict(self): model = _models.AnalyzedDocument( doc_type="test:doc", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), _models.DocumentSpan( offset=5, length=2, ), ], fields={ "sample": _models.DocumentField( value_type="number", value=0.1, content="0.1", bounding_regions=[ _models.BoundingRegion( polygon=[ _models.Point(1, 2), _models.Point(3, 4), ], page_number=1, ), _models.BoundingRegion( polygon=[ _models.Point(1, 2), _models.Point(3, 4), ], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), _models.DocumentSpan( offset=5, length=2, ), ], confidence=0.99, ), }, confidence=0.99, ) d = model.to_dict() final = { "doc_type": "test:doc", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, { "offset": 5, "length": 2, }, ], "fields": { "sample": { "value_type": "number", "value": 0.1, "content": "0.1", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, { "offset": 5, "length": 2, }, ], "confidence": 0.99, }, }, "confidence": 0.99, } assert d == final def test_document_field_to_dict(self): model = _models.DocumentField( value_type="number", value=0.1, content="0.1", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), _models.DocumentSpan( offset=5, length=2, ), ], confidence=0.99, ) d = model.to_dict() final = { "value_type": "number", "value": 0.1, "content": "0.1", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, { "offset": 5, "length": 2, }, ], "confidence": 0.99, } assert d == final def test_document_key_value_element_to_dict(self): model = _models.DocumentKeyValueElement( content="content", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), _models.DocumentSpan( offset=5, length=2, ), ], ) d = model.to_dict() final = { "content": "content", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, { "offset": 5, "length": 2, }, ], } assert d == final def test_document_key_value_pair_to_dict(self): model = _models.DocumentKeyValuePair( key=_models.DocumentKeyValueElement( content="key", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ), value=_models.DocumentKeyValueElement( content="value", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ), confidence=0.89, ) d = model.to_dict() final = { "key": { "content": "key", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], }, "value": { "content": "value", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], }, "confidence": 0.89, } assert d == final def test_document_line_to_dict(self): model = _models.DocumentLine( content="sample line", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ) d = model.to_dict() final = { "content": "sample line", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "spans": [ { "offset": 5, "length": 2, }, ], } assert d == final def test_document_page_to_dict(self): model = _models.DocumentPage( kind="document", page_number=1, angle=180.0, width=8.5, height=11.0, unit="inch", spans=[ _models.DocumentSpan( offset=5, length=2, ), ], words=[ _models.DocumentWord( content="example", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], span=_models.DocumentSpan( offset=5, length=2, ), confidence=0.62, ), ], selection_marks=[ _models.DocumentSelectionMark( state="unselected", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], span=_models.DocumentSpan( offset=5, length=2, ), confidence=1.0, ), ], lines=[ _models.DocumentLine( content="sample line", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ), ], ) d = model.to_dict() final = { "kind": "document", "page_number": 1, "angle": 180.0, "width": 8.5, "height": 11.0, "unit": "inch", "spans": [ { "offset": 5, "length": 2, }, ], "words": [ { "content": "example", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "span": { "offset": 5, "length": 2, }, "confidence": 0.62, "kind": "word", }, ], "selection_marks": [ { "content": None, "state": "unselected", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "span": { "offset": 5, "length": 2, }, "kind": "selectionMark", "confidence": 1.0, }, ], "lines": [ { "content": "sample line", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "spans": [ { "offset": 5, "length": 2, }, ], }, ], } assert d == final def test_document_selection_mark_to_dict(self): model = _models.DocumentSelectionMark( state="unselected", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], span=_models.DocumentSpan( offset=5, length=2, ), confidence=1.0, ) d = model.to_dict() final = { "content": None, "state": "unselected", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "span": { "offset": 5, "length": 2, }, "kind": "selectionMark", "confidence": 1.0, } assert d == final def test_document_style_to_dict(self): model = _models.DocumentStyle( is_handwritten=True, spans=[ _models.DocumentSpan( offset=5, length=2, ), ], confidence=1.0, ) d = model.to_dict() final = { "is_handwritten": True, "spans": [ { "offset": 5, "length": 2, } ], "confidence": 1.0, } assert d == final def test_document_table_to_dict(self): model = _models.DocumentTable( row_count=3, column_count=2, cells=[ _models.DocumentTableCell( kind="content", row_index=2, column_index=3, row_span=1, column_span=1, content="cell content", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ), ], bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ) d = model.to_dict() final = { "row_count": 3, "column_count": 2, "cells": [ { "kind": "content", "row_index": 2, "column_index": 3, "row_span": 1, "column_span": 1, "content": "cell content", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], }, ], "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], } assert d == final def test_document_table_cell_to_dict(self): model = _models.DocumentTableCell( kind="content", row_index=2, column_index=3, row_span=1, column_span=1, content="cell content", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ) d = model.to_dict() final = { "kind": "content", "row_index": 2, "column_index": 3, "row_span": 1, "column_span": 1, "content": "cell content", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], } assert d == final def test_document_table_cell_to_dict_use_defaults(self): # NOTE: kind, column_span, and row_span are not included on purpose to test that the proper defaults are set. model = _models.DocumentTableCell( row_index=2, column_index=3, content="cell content", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ) d = model.to_dict() final = { "kind": "content", "row_index": 2, "column_index": 3, "row_span": 1, "column_span": 1, "content": "cell content", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], } assert d == final def test_model_operation_info_to_dict(self): model = _models.ModelOperationInfo( operation_id="id123", status="succeeded", percent_completed=100, created_on="1994-11-05T13:15:30Z", last_updated_on="1994-11-05T13:20:30Z", kind="documentModelBuild", resource_location="https://contoso.com/resource", api_version="2022-06-30-preview", tags={"test": "value"}, ) d = model.to_dict() final = { "operation_id": "id123", "status": "succeeded", "percent_completed": 100, "created_on": "1994-11-05T13:15:30Z", # TODO should this field be switched to a datetime? "last_updated_on": "1994-11-05T13:20:30Z", "kind": "documentModelBuild", "resource_location": "https://contoso.com/resource", "api_version": "2022-06-30-preview", "tags": {"test": "value"}, } assert d == final def test_document_word_to_dict(self): model = _models.DocumentWord( content="example", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], span=_models.DocumentSpan( offset=5, length=2, ), confidence=0.62, ) d = model.to_dict() final = { "content": "example", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "span": { "offset": 5, "length": 2, }, "confidence": 0.62, "kind": "word", } assert d == final def test_analyze_result_to_dict(self): model = _models.AnalyzeResult( api_version="2021-07-30-preview", model_id="modelId1", content="Sample\nFile content.", languages=[ _models.DocumentLanguage( locale="en", spans=[ _models.DocumentSpan(offset=5, length=2), ], confidence=0.99, ), ], paragraphs=[ _models.DocumentParagraph( role="pageNumber", content="a paragraph", bounding_regions=[ _models.BoundingRegion( polygon=[ _models.Point(1, 2), _models.Point(3, 4), ], page_number=1, ), ], spans=[ _models.DocumentSpan(offset=5, length=2), ], ) ], pages=[ _models.DocumentPage( kind="document", page_number=1, angle=180.0, width=8.5, height=11.0, unit="inch", spans=[ _models.DocumentSpan(offset=5, length=2), ], words=[ _models.DocumentWord( content="example", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], span=_models.DocumentSpan(offset=5, length=2), confidence=0.62, ), ], selection_marks=[ _models.DocumentSelectionMark( state="unselected", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], span=_models.DocumentSpan(offset=5, length=2), confidence=1.0, ), ], lines=[ _models.DocumentLine( content="sample line", polygon=[ _models.Point(1427.0, 1669.0), _models.Point(1527.0, 1669.0), _models.Point(1527.0, 1698.0), _models.Point(1427.0, 1698.0), ], spans=[_models.DocumentSpan(offset=5, length=2)], ), ], ), ], tables=[ _models.DocumentTable( row_count=3, column_count=2, cells=[ _models.DocumentTableCell( kind="content", row_index=2, column_index=3, row_span=1, column_span=1, content="cell content", bounding_regions=[ _models.BoundingRegion( polygon=[ _models.Point(1, 2), _models.Point(3, 4), ], page_number=1, ), ], spans=[_models.DocumentSpan(offset=5, length=2)], ), ], bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[_models.DocumentSpan(offset=5, length=2)], ), ], key_value_pairs=[ _models.DocumentKeyValuePair( key=_models.DocumentKeyValueElement( content="key", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ), value=_models.DocumentKeyValueElement( content="value", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), ], ), confidence=0.89, ), ], styles=[ _models.DocumentStyle( is_handwritten=True, spans=[ _models.DocumentSpan( offset=5, length=2, ), ], confidence=1.0, ), ], documents=[ _models.AnalyzedDocument( doc_type="test:doc", bounding_regions=[ _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), _models.BoundingRegion( polygon=[_models.Point(1, 2), _models.Point(3, 4)], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), _models.DocumentSpan( offset=5, length=2, ), ], fields={ "sample": _models.DocumentField( value_type="number", value=0.1, content="0.1", bounding_regions=[ _models.BoundingRegion( polygon=[ _models.Point(1, 2), _models.Point(3, 4), ], page_number=1, ), _models.BoundingRegion( polygon=[ _models.Point(1, 2), _models.Point(3, 4), ], page_number=1, ), ], spans=[ _models.DocumentSpan( offset=5, length=2, ), _models.DocumentSpan( offset=5, length=2, ), ], confidence=0.99, ), }, confidence=0.99, ), ], ) d = model.to_dict() final = { "api_version": "2021-07-30-preview", "model_id": "modelId1", "content": "Sample\nFile content.", "languages": [ { "locale": "en", "spans": [ { "offset": 5, "length": 2, }, ], "confidence": 0.99, } ], "pages": [ { "kind": "document", "page_number": 1, "angle": 180.0, "width": 8.5, "height": 11.0, "unit": "inch", "spans": [ { "offset": 5, "length": 2, }, ], "words": [ { "content": "example", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "span": { "offset": 5, "length": 2, }, "confidence": 0.62, "kind": "word", }, ], "selection_marks": [ { "content": None, "state": "unselected", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "span": { "offset": 5, "length": 2, }, "kind": "selectionMark", "confidence": 1.0, }, ], "lines": [ { "content": "sample line", "polygon": [ {"x": 1427.0, "y": 1669.0}, {"x": 1527.0, "y": 1669.0}, {"x": 1527.0, "y": 1698.0}, {"x": 1427.0, "y": 1698.0}, ], "spans": [ { "offset": 5, "length": 2, }, ], }, ], }, ], "paragraphs": [ { "role": "pageNumber", "content": "a paragraph", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], } ], "tables": [ { "row_count": 3, "column_count": 2, "cells": [ { "kind": "content", "row_index": 2, "column_index": 3, "row_span": 1, "column_span": 1, "content": "cell content", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], }, ], "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], }, ], "key_value_pairs": [ { "key": { "content": "key", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], }, "value": { "content": "value", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, ], }, "confidence": 0.89, }, ], "styles": [ { "is_handwritten": True, "spans": [ { "offset": 5, "length": 2, } ], "confidence": 1.0, }, ], "documents": [ { "doc_type": "test:doc", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, { "offset": 5, "length": 2, }, ], "fields": { "sample": { "value_type": "number", "value": 0.1, "content": "0.1", "bounding_regions": [ { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, { "page_number": 1, "polygon": [ {"x": 1, "y": 2}, { "x": 3, "y": 4, }, ], }, ], "spans": [ { "offset": 5, "length": 2, }, { "offset": 5, "length": 2, }, ], "confidence": 0.99, }, }, "confidence": 0.99, }, ], } assert d == final def test_model_operation_to_dict(self): model = _models.ModelOperation( api_version="2022-06-30-preview", tags={}, operation_id="id123", status="succeeded", percent_completed=100, created_on="1994-11-05T13:15:30Z", last_updated_on="1994-11-05T13:20:30Z", kind="documentModelBuild", resource_location="https://contoso.com/resource", result=_models.DocumentModel( api_version="2022-06-30-preview", tags={}, description="my description", created_on="1994-11-05T13:15:30Z", model_id="prebuilt-invoice", doc_types={ "prebuilt-invoice": _models.DocTypeInfo( build_mode="template", description="my description", field_confidence={"CustomerName": 95}, field_schema={ "prebuilt-invoice": { "CustomerName": {"type": "string"}, "CustomerId": {"type": "string"}, "PurchaseOrder": {"type": "string"}, "InvoiceId": {"type": "string"}, "InvoiceDate": {"type": "date"}, "DueDate": {"type": "date"}, "VendorName": {"type": "string"}, "VendorAddress": {"type": "string"}, "VendorAddressRecipient": {"type": "string"}, "CustomerAddress": {"type": "string"}, "CustomerAddressRecipient": {"type": "string"}, "BillingAddress": {"type": "string"}, "BillingAddressRecipient": {"type": "string"}, "ShippingAddress": {"type": "string"}, "ShippingAddressRecipient": {"type": "string"}, "SubTotal": {"type": "number"}, "TotalTax": {"type": "number"}, "InvoiceTotal": {"type": "number"}, "AmountDue": {"type": "number"}, "PreviousUnpaidBalance": {"type": "number"}, "RemittanceAddress": {"type": "string"}, "RemittanceAddressRecipient": {"type": "string"}, "ServiceAddress": {"type": "string"}, "ServiceAddressRecipient": {"type": "string"}, "ServiceStartDate": {"type": "date"}, "ServiceEndDate": {"type": "date"}, "Items": { "type": "array", "items": { "type": "object", "properties": { "Amount": {"type": "number"}, "Date": {"type": "date"}, "Description": {"type": "string"}, "Quantity": {"type": "number"}, "ProductCode": {"type": "string"}, "Tax": {"type": "number"}, "Unit": {"type": "string"}, "UnitPrice": {"type": "number"}, }, }, }, } }, ) }, ), error=_models.DocumentAnalysisError( code="ResourceNotFound", message="Resource was not found", target="resource", details=[ _models.DocumentAnalysisError( code="ResourceNotFound", message="Resource was not found" ) ], innererror=_models.DocumentAnalysisInnerError( code="ResourceNotFound", message="Resource was not found", innererror=_models.DocumentAnalysisInnerError( code="ResourceNotFound", message="Resource was not found", ), ), ), ) d = model.to_dict() final = { "api_version": "2022-06-30-preview", "tags": {}, "operation_id": "id123", "status": "succeeded", "percent_completed": 100, "created_on": "1994-11-05T13:15:30Z", "last_updated_on": "1994-11-05T13:20:30Z", "kind": "documentModelBuild", "resource_location": "https://contoso.com/resource", "result": { "api_version": "2022-06-30-preview", "tags": {}, "description": "my description", "created_on": "1994-11-05T13:15:30Z", "model_id": "prebuilt-invoice", "doc_types": { "prebuilt-invoice": { "build_mode": "template", "description": "my description", "field_confidence": {"CustomerName": 95}, "field_schema": { "prebuilt-invoice": { "CustomerName": {"type": "string"}, "CustomerId": {"type": "string"}, "PurchaseOrder": {"type": "string"}, "InvoiceId": {"type": "string"}, "InvoiceDate": {"type": "date"}, "DueDate": {"type": "date"}, "VendorName": {"type": "string"}, "VendorAddress": {"type": "string"}, "VendorAddressRecipient": {"type": "string"}, "CustomerAddress": {"type": "string"}, "CustomerAddressRecipient": {"type": "string"}, "BillingAddress": {"type": "string"}, "BillingAddressRecipient": {"type": "string"}, "ShippingAddress": {"type": "string"}, "ShippingAddressRecipient": {"type": "string"}, "SubTotal": {"type": "number"}, "TotalTax": {"type": "number"}, "InvoiceTotal": {"type": "number"}, "AmountDue": {"type": "number"}, "PreviousUnpaidBalance": {"type": "number"}, "RemittanceAddress": {"type": "string"}, "RemittanceAddressRecipient": {"type": "string"}, "ServiceAddress": {"type": "string"}, "ServiceAddressRecipient": {"type": "string"}, "ServiceStartDate": {"type": "date"}, "ServiceEndDate": {"type": "date"}, "Items": { "type": "array", "items": { "type": "object", "properties": { "Amount": {"type": "number"}, "Date": {"type": "date"}, "Description": {"type": "string"}, "Quantity": {"type": "number"}, "ProductCode": {"type": "string"}, "Tax": {"type": "number"}, "Unit": {"type": "string"}, "UnitPrice": {"type": "number"}, }, }, }, } }, } }, }, "error": { "code": "ResourceNotFound", "message": "Resource was not found", "target": "resource", "details": [ { "code": "ResourceNotFound", "message": "Resource was not found", "target": None, "details": [], "innererror": None, } ], "innererror": { "code": "ResourceNotFound", "message": "Resource was not found", "innererror": { "code": "ResourceNotFound", "message": "Resource was not found", "innererror": None, }, }, }, } assert d == final def test_doc_type_info_to_dict(self): model = _models.DocTypeInfo( description="my description", build_mode="neural", field_confidence={"CustomerName": 95}, field_schema={ "prebuilt-invoice": { "CustomerName": {"type": "string"}, "CustomerId": {"type": "string"}, "PurchaseOrder": {"type": "string"}, "InvoiceId": {"type": "string"}, "InvoiceDate": {"type": "date"}, "DueDate": {"type": "date"}, "VendorName": {"type": "string"}, "VendorAddress": {"type": "string"}, "VendorAddressRecipient": {"type": "string"}, "CustomerAddress": {"type": "string"}, "CustomerAddressRecipient": {"type": "string"}, "BillingAddress": {"type": "string"}, "BillingAddressRecipient": {"type": "string"}, "ShippingAddress": {"type": "string"}, "ShippingAddressRecipient": {"type": "string"}, "SubTotal": {"type": "number"}, "TotalTax": {"type": "number"}, "InvoiceTotal": {"type": "number"}, "AmountDue": {"type": "number"}, "PreviousUnpaidBalance": {"type": "number"}, "RemittanceAddress": {"type": "string"}, "RemittanceAddressRecipient": {"type": "string"}, "ServiceAddress": {"type": "string"}, "ServiceAddressRecipient": {"type": "string"}, "ServiceStartDate": {"type": "date"}, "ServiceEndDate": {"type": "date"}, "Items": { "type": "array", "items": { "type": "object", "properties": { "Amount": {"type": "number"}, "Date": {"type": "date"}, "Description": {"type": "string"}, "Quantity": {"type": "number"}, "ProductCode": {"type": "string"}, "Tax": {"type": "number"}, "Unit": {"type": "string"}, "UnitPrice": {"type": "number"}, }, }, }, } }, ) d = model.to_dict() final = { "description": "my description", "build_mode": "neural", "field_confidence": {"CustomerName": 95}, "field_schema": { "prebuilt-invoice": { "CustomerName": {"type": "string"}, "CustomerId": {"type": "string"}, "PurchaseOrder": {"type": "string"}, "InvoiceId": {"type": "string"}, "InvoiceDate": {"type": "date"}, "DueDate": {"type": "date"}, "VendorName": {"type": "string"}, "VendorAddress": {"type": "string"}, "VendorAddressRecipient": {"type": "string"}, "CustomerAddress": {"type": "string"}, "CustomerAddressRecipient": {"type": "string"}, "BillingAddress": {"type": "string"}, "BillingAddressRecipient": {"type": "string"}, "ShippingAddress": {"type": "string"}, "ShippingAddressRecipient": {"type": "string"}, "SubTotal": {"type": "number"}, "TotalTax": {"type": "number"}, "InvoiceTotal": {"type": "number"}, "AmountDue": {"type": "number"}, "PreviousUnpaidBalance": {"type": "number"}, "RemittanceAddress": {"type": "string"}, "RemittanceAddressRecipient": {"type": "string"}, "ServiceAddress": {"type": "string"}, "ServiceAddressRecipient": {"type": "string"}, "ServiceStartDate": {"type": "date"}, "ServiceEndDate": {"type": "date"}, "Items": { "type": "array", "items": { "type": "object", "properties": { "Amount": {"type": "number"}, "Date": {"type": "date"}, "Description": {"type": "string"}, "Quantity": {"type": "number"}, "ProductCode": {"type": "string"}, "Tax": {"type": "number"}, "Unit": {"type": "string"}, "UnitPrice": {"type": "number"}, }, }, }, } }, } assert d == final def test_document_model_to_dict(self): model = _models.DocumentModel( description="my description", created_on="1994-11-05T13:15:30Z", model_id="prebuilt-invoice", api_version="2022-06-30-preview", tags={"test": "value"}, doc_types={ "prebuilt-invoice": _models.DocTypeInfo( build_mode="template", description="my description", field_confidence={"CustomerName": 95}, field_schema={ "prebuilt-invoice": { "CustomerName": {"type": "string"}, "CustomerId": {"type": "string"}, "PurchaseOrder": {"type": "string"}, "InvoiceId": {"type": "string"}, "InvoiceDate": {"type": "date"}, "DueDate": {"type": "date"}, "VendorName": {"type": "string"}, "VendorAddress": {"type": "string"}, "VendorAddressRecipient": {"type": "string"}, "CustomerAddress": {"type": "string"}, "CustomerAddressRecipient": {"type": "string"}, "BillingAddress": {"type": "string"}, "BillingAddressRecipient": {"type": "string"}, "ShippingAddress": {"type": "string"}, "ShippingAddressRecipient": {"type": "string"}, "SubTotal": {"type": "number"}, "TotalTax": {"type": "number"}, "InvoiceTotal": {"type": "number"}, "AmountDue": {"type": "number"}, "PreviousUnpaidBalance": {"type": "number"}, "RemittanceAddress": {"type": "string"}, "RemittanceAddressRecipient": {"type": "string"}, "ServiceAddress": {"type": "string"}, "ServiceAddressRecipient": {"type": "string"}, "ServiceStartDate": {"type": "date"}, "ServiceEndDate": {"type": "date"}, "Items": { "type": "array", "items": { "type": "object", "properties": { "Amount": {"type": "number"}, "Date": {"type": "date"}, "Description": {"type": "string"}, "Quantity": {"type": "number"}, "ProductCode": {"type": "string"}, "Tax": {"type": "number"}, "Unit": {"type": "string"}, "UnitPrice": {"type": "number"}, }, }, }, } }, ), }, ) d = model.to_dict() final = { "description": "my description", "created_on": "1994-11-05T13:15:30Z", "model_id": "prebuilt-invoice", "api_version": "2022-06-30-preview", "tags": {"test": "value"}, "doc_types": { "prebuilt-invoice": { "build_mode": "template", "description": "my description", "field_confidence": {"CustomerName": 95}, "field_schema": { "prebuilt-invoice": { "CustomerName": {"type": "string"}, "CustomerId": {"type": "string"}, "PurchaseOrder": {"type": "string"}, "InvoiceId": {"type": "string"}, "InvoiceDate": {"type": "date"}, "DueDate": {"type": "date"}, "VendorName": {"type": "string"}, "VendorAddress": {"type": "string"}, "VendorAddressRecipient": {"type": "string"}, "CustomerAddress": {"type": "string"}, "CustomerAddressRecipient": {"type": "string"}, "BillingAddress": {"type": "string"}, "BillingAddressRecipient": {"type": "string"}, "ShippingAddress": {"type": "string"}, "ShippingAddressRecipient": {"type": "string"}, "SubTotal": {"type": "number"}, "TotalTax": {"type": "number"}, "InvoiceTotal": {"type": "number"}, "AmountDue": {"type": "number"}, "PreviousUnpaidBalance": {"type": "number"}, "RemittanceAddress": {"type": "string"}, "RemittanceAddressRecipient": {"type": "string"}, "ServiceAddress": {"type": "string"}, "ServiceAddressRecipient": {"type": "string"}, "ServiceStartDate": {"type": "date"}, "ServiceEndDate": {"type": "date"}, "Items": { "type": "array", "items": { "type": "object", "properties": { "Amount": {"type": "number"}, "Date": {"type": "date"}, "Description": {"type": "string"}, "Quantity": {"type": "number"}, "ProductCode": {"type": "string"}, "Tax": {"type": "number"}, "Unit": {"type": "string"}, "UnitPrice": {"type": "number"}, }, }, }, } }, }, }, } assert d == final def test_document_model_info_to_dict(self): model = _models.DocumentModelInfo( description="my description", created_on="1994-11-05T13:15:30Z", model_id="prebuilt-invoice", api_version="2022-06-30-preview", tags={"test": "value"}, ) d = model.to_dict() final = { "description": "my description", "created_on": "1994-11-05T13:15:30Z", "model_id": "prebuilt-invoice", "api_version": "2022-06-30-preview", "tags": {"test": "value"}, } assert d == final def test_account_info_to_dict(self): model = _models.AccountInfo(document_model_limit=5000, document_model_count=10) d = model.to_dict() final = {"document_model_limit": 5000, "document_model_count": 10} assert d == final def test_document_analysis_inner_error_to_dict(self): model = _models.DocumentAnalysisInnerError( code="ResourceNotFound", message="Resource was not found", innererror=_models.DocumentAnalysisInnerError( code="ResourceNotFound", message="Resource was not found", ), ) d = model.to_dict() final = { "code": "ResourceNotFound", "message": "Resource was not found", "innererror": { "code": "ResourceNotFound", "message": "Resource was not found", "innererror": None, }, } assert d == final def test_document_analysis_error_to_dict(self): model = _models.DocumentAnalysisError( code="ResourceNotFound", message="Resource was not found", target="resource", details=[ _models.DocumentAnalysisError( code="ResourceNotFound", message="Resource was not found" ) ], innererror=_models.DocumentAnalysisInnerError( code="ResourceNotFound", message="Resource was not found", innererror=_models.DocumentAnalysisInnerError( code="ResourceNotFound", message="Resource was not found", ), ), ) d = model.to_dict() final = { "code": "ResourceNotFound", "message": "Resource was not found", "target": "resource", "details": [ { "code": "ResourceNotFound", "message": "Resource was not found", "target": None, "details": [], "innererror": None, } ], "innererror": { "code": "ResourceNotFound", "message": "Resource was not found", "innererror": { "code": "ResourceNotFound", "message": "Resource was not found", "innererror": None, }, }, } assert d == final
36.261705
117
0.291227
4,145
73,575
5.026297
0.069481
0.057598
0.04867
0.052414
0.957281
0.940146
0.922146
0.909427
0.900931
0.892675
0
0.058804
0.591125
73,575
2,028
118
36.279586
0.633747
0.00685
0
0.780943
0
0
0.153242
0.013386
0
0
0
0.000493
0.013465
1
0.013465
false
0
0.001036
0
0.015018
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
2230c6a21b9b07be2fdf4f681b8005423bbb5b68
136
py
Python
src/aws_connections/__main__.py
jameskabbes/aws_connections
f5731ba95d41379883b63aab8ae907cf616a244a
[ "MIT" ]
null
null
null
src/aws_connections/__main__.py
jameskabbes/aws_connections
f5731ba95d41379883b63aab8ae907cf616a244a
[ "MIT" ]
null
null
null
src/aws_connections/__main__.py
jameskabbes/aws_connections
f5731ba95d41379883b63aab8ae907cf616a244a
[ "MIT" ]
null
null
null
import aws_connections aws_connections._Dir.print_atts() import aws_connections.s3 as s3f print ( s3f.add_s3n_to_key( 'TEST_S3_KEY' ) )
27.2
45
0.816176
23
136
4.391304
0.608696
0.415842
0.39604
0
0
0
0
0
0
0
0
0.04065
0.095588
136
5
45
27.2
0.780488
0
0
0
0
0
0.080292
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
7
3f0e310ee3a251e39ad1313d595dca71fdbee6e4
3,285
py
Python
src/test/test_Plant_FinanceSE.py
nickjohnson13/Plant_FinanceSE
36820ea8cbf38c19ac4a907c9b6b143a175fb0a3
[ "Apache-2.0" ]
1
2020-03-06T13:45:31.000Z
2020-03-06T13:45:31.000Z
test/plant_financese/test_Plant_FinanceSE.py
RFeil/WISDEM
f58ec725a4a7f959b6a97222d5e709e67d68379a
[ "Apache-2.0" ]
17
2019-09-13T22:21:15.000Z
2019-10-25T20:04:26.000Z
test/plant_financese/test_Plant_FinanceSE.py
akey7/WISDEM
29c5abbdfdc8800cfd18237e8e0edf0d10c7e02c
[ "Apache-2.0" ]
2
2015-10-30T06:02:21.000Z
2019-07-30T21:25:23.000Z
""" test_Plant_FinanceSE_gradients.py Created by Katherine Dykes on 2014-01-07. Copyright (c) NREL. All rights reserved. """ import unittest import numpy as np from commonse.utilities import check_gradient_unit_test from plant_financese.basic_finance.basic_finance import fin_cst_component, fin_cst_assembly from plant_financese.nrel_csm_fin.nrel_csm_fin import fin_csm_component, fin_csm_assembly # Basic Finance Tests class Test_fin_cst_assembly(unittest.TestCase): def setUp(self): self.fin = fin_cst_assembly() self.fin.turbine_cost = 6087803.555 / 50 self.fin.turbine_number = 50 preventative_maintenance_cost = 401819.023 land_lease_cost = 22225.395 corrective_maintenance_cost = 91048.387 self.fin.avg_annual_opex = preventative_maintenance_cost + corrective_maintenance_cost + land_lease_cost self.fin.bos_costs = 7668775.3 self.fin.net_aep = 15756299.843 def test_functionality(self): self.fin.run() self.assertEqual(round(self.fin.coe,4), 0.1307) class Test_fin_cst_component(unittest.TestCase): def setUp(self): self.fin = fin_cst_component() self.fin.turbine_cost = 6087803.555 / 50 self.fin.turbine_number = 50 preventative_maintenance_cost = 401819.023 land_lease_cost = 22225.395 corrective_maintenance_cost = 91048.387 self.fin.avg_annual_opex = preventative_maintenance_cost + corrective_maintenance_cost + land_lease_cost self.fin.bos_costs = 7668775.3 self.fin.net_aep = 15756299.843 def test_functionality(self): self.fin.run() self.assertEqual(round(self.fin.coe,4), 0.1307) def test_gradient(self): check_gradient_unit_test(self, self.fin) # NREL CSM Finance Tests class Test_fin_csm_assembly(unittest.TestCase): def setUp(self): self.fin = fin_csm_assembly() self.fin.turbine_cost = 6087803.555 / 50 self.fin.turbine_number = 50 preventative_opex = 401819.023 lease_opex = 22225.395 corrective_opex = 91048.387 self.fin.avg_annual_opex = preventative_opex + corrective_opex + lease_opex self.fin.bos_costs = 7668775.3 self.fin.net_aep = 15756299.843 def test_functionality(self): self.fin.run() self.assertEqual(round(self.fin.coe,4), 0.1307) self.assertEqual(round(self.fin.lcoe,4), 0.1231) class Test_fin_csm_component(unittest.TestCase): def setUp(self): self.fin = fin_csm_component() self.fin.turbine_cost = 6087803.555 / 50 self.fin.turbine_number = 50 preventative_opex = 401819.023 lease_opex = 22225.395 corrective_opex = 91048.387 self.fin.avg_annual_opex = preventative_opex + corrective_opex + lease_opex self.fin.bos_costs = 7668775.3 self.fin.net_aep = 15756299.843 def test_functionality(self): self.fin.run() self.assertEqual(round(self.fin.coe,4), 0.1307) self.assertEqual(round(self.fin.lcoe,4), 0.1231) def test_gradient(self): check_gradient_unit_test(self, self.fin) if __name__ == "__main__": unittest.main()
28.318966
112
0.681887
439
3,285
4.824601
0.191344
0.11898
0.051936
0.067989
0.815864
0.793201
0.793201
0.793201
0.793201
0.699717
0
0.109307
0.231355
3,285
115
113
28.565217
0.729505
0.049011
0
0.782609
0
0
0.002568
0
0
0
0
0
0.086957
1
0.144928
false
0
0.072464
0
0.275362
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3f297772786da41daa7a34cfde1e3c639907f565
19,470
py
Python
build/PureCloudPlatformClientV2/apis/audit_api.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
1
2021-10-08T20:46:45.000Z
2021-10-08T20:46:45.000Z
libs/PureCloudPlatformClientV2/apis/audit_api.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
null
null
null
libs/PureCloudPlatformClientV2/apis/audit_api.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
null
null
null
# coding: utf-8 """ AuditApi.py Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from six import iteritems from ..configuration import Configuration from ..api_client import ApiClient class AuditApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): config = Configuration() if api_client: self.api_client = api_client else: if not config.api_client: config.api_client = ApiClient() self.api_client = config.api_client def get_audits_query_realtime_servicemapping(self, **kwargs): """ Get service mapping information used in realtime audits. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.get_audits_query_realtime_servicemapping(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: AuditQueryServiceMapping If the method is called asynchronously, returns the request thread. """ all_params = [] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_audits_query_realtime_servicemapping" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v2/audits/query/realtime/servicemapping'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json']) # Authentication setting auth_settings = ['PureCloud OAuth'] response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='AuditQueryServiceMapping', auth_settings=auth_settings, callback=params.get('callback')) return response def get_audits_query_servicemapping(self, **kwargs): """ Get service mapping information used in audits. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.get_audits_query_servicemapping(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :return: AuditQueryServiceMapping If the method is called asynchronously, returns the request thread. """ all_params = [] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_audits_query_servicemapping" % key ) params[key] = val del params['kwargs'] resource_path = '/api/v2/audits/query/servicemapping'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json']) # Authentication setting auth_settings = ['PureCloud OAuth'] response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='AuditQueryServiceMapping', auth_settings=auth_settings, callback=params.get('callback')) return response def get_audits_query_transaction_id(self, transaction_id, **kwargs): """ Get status of audit query execution This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.get_audits_query_transaction_id(transaction_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str transaction_id: Transaction ID (required) :return: AuditQueryExecutionStatusResponse If the method is called asynchronously, returns the request thread. """ all_params = ['transaction_id'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_audits_query_transaction_id" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'transaction_id' is set if ('transaction_id' not in params) or (params['transaction_id'] is None): raise ValueError("Missing the required parameter `transaction_id` when calling `get_audits_query_transaction_id`") resource_path = '/api/v2/audits/query/{transactionId}'.replace('{format}', 'json') path_params = {} if 'transaction_id' in params: path_params['transactionId'] = params['transaction_id'] query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json']) # Authentication setting auth_settings = ['PureCloud OAuth'] response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='AuditQueryExecutionStatusResponse', auth_settings=auth_settings, callback=params.get('callback')) return response def get_audits_query_transaction_id_results(self, transaction_id, **kwargs): """ Get results of audit query This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.get_audits_query_transaction_id_results(transaction_id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str transaction_id: Transaction ID (required) :param str cursor: Indicates where to resume query results (not required for first page) :param int page_size: Page size :param list[str] expand: Which fields, if any, to expand :return: AuditQueryExecutionResultsResponse If the method is called asynchronously, returns the request thread. """ all_params = ['transaction_id', 'cursor', 'page_size', 'expand'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_audits_query_transaction_id_results" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'transaction_id' is set if ('transaction_id' not in params) or (params['transaction_id'] is None): raise ValueError("Missing the required parameter `transaction_id` when calling `get_audits_query_transaction_id_results`") resource_path = '/api/v2/audits/query/{transactionId}/results'.replace('{format}', 'json') path_params = {} if 'transaction_id' in params: path_params['transactionId'] = params['transaction_id'] query_params = {} if 'cursor' in params: query_params['cursor'] = params['cursor'] if 'page_size' in params: query_params['pageSize'] = params['page_size'] if 'expand' in params: query_params['expand'] = params['expand'] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json']) # Authentication setting auth_settings = ['PureCloud OAuth'] response = self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='AuditQueryExecutionResultsResponse', auth_settings=auth_settings, callback=params.get('callback')) return response def post_audits_query(self, body, **kwargs): """ Create audit query execution This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.post_audits_query(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param AuditQueryRequest body: query (required) :return: AuditQueryExecutionStatusResponse If the method is called asynchronously, returns the request thread. """ all_params = ['body'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method post_audits_query" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `post_audits_query`") resource_path = '/api/v2/audits/query'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json']) # Authentication setting auth_settings = ['PureCloud OAuth'] response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='AuditQueryExecutionStatusResponse', auth_settings=auth_settings, callback=params.get('callback')) return response def post_audits_query_realtime(self, body, **kwargs): """ This endpoint will only retrieve 7 days worth of audits for certain services. Please use /query to get a full list and older audits. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.post_audits_query_realtime(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param AuditRealtimeQueryRequest body: query (required) :param list[str] expand: Which fields, if any, to expand :return: AuditRealtimeQueryResultsResponse If the method is called asynchronously, returns the request thread. """ all_params = ['body', 'expand'] all_params.append('callback') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method post_audits_query_realtime" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `post_audits_query_realtime`") resource_path = '/api/v2/audits/query/realtime'.replace('{format}', 'json') path_params = {} query_params = {} if 'expand' in params: query_params['expand'] = params['expand'] header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in params: body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json']) # Authentication setting auth_settings = ['PureCloud OAuth'] response = self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='AuditRealtimeQueryResultsResponse', auth_settings=auth_settings, callback=params.get('callback')) return response
37.732558
140
0.553724
1,876
19,470
5.554371
0.120469
0.041459
0.0262
0.021881
0.85499
0.841747
0.836372
0.820633
0.820633
0.809501
0
0.001461
0.367129
19,470
515
141
37.805825
0.844181
0.280637
0
0.793893
0
0
0.171644
0.048606
0
0
0
0
0
1
0.026718
false
0
0.026718
0
0.080153
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3f3a7fc9265d182008d4ecd0f9d37974496ca6d6
25,223
py
Python
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_user.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_user.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_user.py
Stienvdh/statrick
7b092fc42171e226718a70a285a4b323f2f395ad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Dell EMC OpenManage Ansible Modules # Version 2.1.2 # Copyright (C) 2020 Dell Inc. or its subsidiaries. All Rights Reserved. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest import json from ansible_collections.dellemc.openmanage.plugins.modules import idrac_user from ansible.module_utils.six.moves.urllib.error import HTTPError, URLError from ansible.module_utils.urls import ConnectionError, SSLValidationError from ansible_collections.dellemc.openmanage.tests.unit.plugins.modules.common import FakeAnsibleModule, Constants from ansible_collections.dellemc.openmanage.tests.unit.compat.mock import MagicMock, patch, Mock from ansible.module_utils._text import to_text from io import StringIO MODULE_PATH = 'ansible_collections.dellemc.openmanage.plugins.modules.' class TestIDRACUser(FakeAnsibleModule): module = idrac_user @pytest.fixture def idrac_user_mock(self): idrac_obj = MagicMock() return idrac_obj @pytest.fixture def idrac_connection_user_mock(self, mocker, idrac_user_mock): idrac_conn_mock = mocker.patch(MODULE_PATH + 'idrac_user.iDRACRedfishAPI', return_value=idrac_user_mock) idrac_conn_mock.return_value.__enter__.return_value = idrac_user_mock return idrac_conn_mock def test_get_payload(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args) resp = self.module.get_payload(f_module, 1, action="update") assert resp["Users.1.UserName"] == idrac_default_args["new_user_name"] def test_convert_payload_xml(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) payload = {"Users.1.UserName": idrac_default_args["user_name"], "Users.1.Password": idrac_default_args["user_password"], "Users.1.Enable": idrac_default_args["enable"], "Users.1.Privilege": idrac_default_args["privilege"], "Users.1.IpmiLanPrivilege": idrac_default_args["ipmi_lan_privilege"], "Users.1.IpmiSerialPrivilege": idrac_default_args["ipmi_serial_privilege"], "Users.1.SolEnable": idrac_default_args["sol_enable"], "Users.1.ProtocolEnable": idrac_default_args["protocol_enable"], "Users.1.AuthenticationProtocol": idrac_default_args["authentication_protocol"], "Users.1.PrivacyProtocol": idrac_default_args["privacy_protocol"]} xml_payload, json_payload = self.module.convert_payload_xml(payload) assert json_payload["Users.1#SolEnable"] is True def test_remove_user_account_check_mode_1(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "absent", "user_name": "user_name", "new_user_name": None, "user_password": None, "privilege": None, "ipmi_lan_privilege": None, "ipmi_serial_privilege": None, "enable": False, "sol_enable": False, "protocol_enable": False, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=True) slot_id = 1 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) with pytest.raises(Exception) as exc: self.module.remove_user_account(f_module, idrac_connection_user_mock, slot_uri, slot_id) assert exc.value.args[0] == "Changes found to commit!" def test_remove_user_account_check_mode_2(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "absent", "user_name": "user_name", "new_user_name": None, "user_password": None, "privilege": None, "ipmi_lan_privilege": None, "ipmi_serial_privilege": None, "enable": False, "sol_enable": False, "protocol_enable": False, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=True) with pytest.raises(Exception) as exc: self.module.remove_user_account(f_module, idrac_connection_user_mock, None, None) assert exc.value.args[0] == "No changes found to commit!" def test_remove_user_account_check_mode_3(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "absent", "user_name": "user_name", "new_user_name": None, "user_password": None, "privilege": None, "ipmi_lan_privilege": None, "ipmi_serial_privilege": None, "enable": False, "sol_enable": False, "protocol_enable": False, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) idrac_connection_user_mock.remove_user_account.return_value = {"success": True} f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) slot_id = 1 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) self.module.remove_user_account(f_module, idrac_connection_user_mock, slot_uri, slot_id) def test_remove_user_account_check_mode_4(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "absent", "user_name": "user_name", "new_user_name": None, "user_password": None, "privilege": None, "ipmi_lan_privilege": None, "ipmi_serial_privilege": None, "enable": False, "sol_enable": False, "protocol_enable": False, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) idrac_connection_user_mock.remove_user_account.return_value = {"success": True} f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) with pytest.raises(Exception) as exc: self.module.remove_user_account(f_module, idrac_connection_user_mock, None, None) assert exc.value.args[0] == 'The user account is absent.' def test_get_user_account_1(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.export_scp", return_value=MagicMock()) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.get_idrac_local_account_attr", return_value={"Users.2#UserName": "test_user", "Users.3#UserName": ""}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) response = self.module.get_user_account(f_module, idrac_connection_user_mock) assert response[0]["Users.2#UserName"] == "test_user" assert response[3] == 3 def test_get_user_account_2(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.export_scp", return_value=MagicMock()) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.get_idrac_local_account_attr", return_value={"Users.2#UserName": "test_user", "Users.3#UserName": ""}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) response = self.module.get_user_account(f_module, idrac_connection_user_mock) assert response[3] == 3 assert response[4] == "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/3" def test_create_or_modify_account_1(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) idrac_connection_user_mock.get_server_generation = (13, "2.70.70.70") mocker.patch(MODULE_PATH + "idrac_user.get_payload", return_value={"Users.2#UserName": "test_user"}) mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", return_value=("<xml-data>", {"Users.1#UserName": "test_user"})) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.import_scp", return_value={"Message": "Successfully created a request."}) empty_slot_id = 2 empty_slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(empty_slot_id) user_attr = {"User.2#UserName": "test_user"} response = self.module.create_or_modify_account(f_module, idrac_connection_user_mock, None, None, empty_slot_id, empty_slot_uri, user_attr) assert response[1] == "Successfully created user account." def test_create_or_modify_account_2(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) idrac_connection_user_mock.get_server_generation = (13, "2.70.70.70") mocker.patch(MODULE_PATH + "idrac_user.get_payload", return_value={"Users.2#UserName": "test_user"}) mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", return_value=("<xml-data>", {"Users.1#UserName": "test_user"})) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.import_scp", return_value={"Message": "Successfully created a request."}) slot_id = 2 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) user_attr = {"User.2#UserName": "test_user"} response = self.module.create_or_modify_account(f_module, idrac_connection_user_mock, slot_uri, slot_id, None, None, user_attr) assert response[1] == "Successfully updated user account." def test_create_or_modify_account_3(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) idrac_connection_user_mock.get_server_generation = (13, "2.70.70.70") mocker.patch(MODULE_PATH + "idrac_user.get_payload", return_value={"Users.2#UserName": "test_user"}) mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", return_value=("<xml-data>", {"Users.1#UserName": "test_user"})) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.import_scp", return_value={"Message": "Successfully created a request."}) slot_id = 2 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) user_attr = {"Users.1#UserName": "test_user"} with pytest.raises(Exception) as exc: self.module.create_or_modify_account(f_module, idrac_connection_user_mock, slot_uri, slot_id, None, None, user_attr) assert exc.value.args[0] == "Requested changes are already present in the user slot." def test_create_or_modify_account_4(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=True) idrac_connection_user_mock.get_server_generation = (13, "2.70.70.70") mocker.patch(MODULE_PATH + "idrac_user.get_payload", return_value={"Users.2#UserName": "test_user"}) mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", return_value=("<xml-data>", {"Users.1#UserName": "test_user"})) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.import_scp", return_value={"Message": "Successfully created a request."}) slot_id = 2 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) user_attr = {"Users.1#UserName": "test_user"} with pytest.raises(Exception) as exc: self.module.create_or_modify_account(f_module, idrac_connection_user_mock, slot_uri, slot_id, None, None, user_attr) assert exc.value.args[0] == "No changes found to commit!" def test_create_or_modify_account_5(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=True) idrac_connection_user_mock.get_server_generation = (13, "2.70.70.70") mocker.patch(MODULE_PATH + "idrac_user.get_payload", return_value={"Users.2#UserName": "test_user"}) mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", return_value=("<xml-data>", {"Users.2#UserName": "test_user"})) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.import_scp", return_value={"Message": "Successfully created a request."}) slot_id = 2 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) user_attr = {"Users.1#UserName": "test_user"} with pytest.raises(Exception) as exc: self.module.create_or_modify_account(f_module, idrac_connection_user_mock, slot_uri, slot_id, None, None, user_attr) assert exc.value.args[0] == "Changes found to commit!" def test_create_or_modify_account_6(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) idrac_connection_user_mock.get_server_generation = (14, "3.60.60.60") mocker.patch(MODULE_PATH + "idrac_user.get_payload", return_value={"Users.2#UserName": "test_user"}) mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", return_value=("<xml-data>", {"Users.1#UserName": "test_user"})) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.invoke_request", return_value={"Message": "Successfully created a request."}) slot_id = 2 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) user_attr = {"User.2#UserName": "test_user"} response = self.module.create_or_modify_account(f_module, idrac_connection_user_mock, None, None, slot_id, slot_uri, user_attr) assert response[1] == "Successfully created user account." def test_create_or_modify_account_7(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=True) idrac_connection_user_mock.get_server_generation = (14, "3.60.60.60") mocker.patch(MODULE_PATH + "idrac_user.get_payload", return_value={"Users.2#UserName": "test_user"}) mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", return_value=("<xml-data>", {"Users.1#UserName": "test_user"})) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.invoke_request", return_value={"Message": "Successfully created a request."}) slot_id = 2 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) user_attr = {"User.2#UserName": "test_user"} with pytest.raises(Exception) as exc: self.module.create_or_modify_account(f_module, idrac_connection_user_mock, None, None, slot_id, slot_uri, user_attr) assert exc.value.args[0] == "Changes found to commit!" def test_create_or_modify_account_8(self, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) f_module = self.get_module_mock(params=idrac_default_args, check_mode=False) idrac_connection_user_mock.get_server_generation = (14, "3.60.60.60") mocker.patch(MODULE_PATH + "idrac_user.get_payload", return_value={"Users.2#UserName": "test_user"}) mocker.patch(MODULE_PATH + "idrac_user.convert_payload_xml", return_value=("<xml-data>", {"Users.1#UserName": "test_user"})) mocker.patch(MODULE_PATH + "idrac_user.iDRACRedfishAPI.invoke_request", return_value={"Message": "Successfully created a request."}) slot_id = 2 slot_uri = "/redfish/v1/Managers/iDRAC.Embedded.1/Accounts/{0}/".format(slot_id) user_attr = {"User.2#UserName": "test_user"} response = self.module.create_or_modify_account(f_module, idrac_connection_user_mock, slot_uri, slot_id, None, None, user_attr) assert response[1] == "Successfully updated user account." @pytest.mark.parametrize("exc_type", [SSLValidationError, URLError, ValueError, TypeError, ConnectionError, HTTPError, ImportError, RuntimeError]) def test_main(self, exc_type, idrac_connection_user_mock, idrac_default_args, mocker): idrac_default_args.update({"state": "present", "new_user_name": "new_user_name", "user_name": "test", "user_password": "password", "privilege": "Administrator", "ipmi_lan_privilege": "Administrator", "ipmi_serial_privilege": "Administrator", "enable": True, "sol_enable": True, "protocol_enable": True, "authentication_protocol": "SHA", "privacy_protocol": "AES"}) json_str = to_text(json.dumps({"data": "out"})) if exc_type not in [HTTPError, SSLValidationError]: mocker.patch(MODULE_PATH + "idrac_user.create_or_modify_account", side_effect=exc_type('test')) else: mocker.patch(MODULE_PATH + "idrac_user.create_or_modify_account", side_effect=exc_type('http://testhost.com', 400, 'http error message', {"accept-type": "application/json"}, StringIO(json_str))) if not exc_type == URLError: result = self._run_module_with_fail_json(idrac_default_args) assert result['failed'] is True else: result = self._run_module(idrac_default_args) assert 'msg' in result
72.479885
113
0.618325
2,795
25,223
5.218247
0.076208
0.051011
0.068015
0.066232
0.863284
0.857182
0.839424
0.822557
0.820638
0.820638
0
0.010968
0.266225
25,223
347
114
72.688761
0.777069
0.009238
0
0.761147
0
0
0.296293
0.101473
0
0
0
0
0.06051
1
0.06051
false
0.057325
0.050955
0
0.124204
0.003185
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
18bc62344ecd9fb9ab81f142546dec33aa688360
33
py
Python
sl_cutscenes/__init__.py
AIS-Bonn/sl-cutscenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
2
2022-03-25T08:24:10.000Z
2022-03-29T09:06:47.000Z
sl_cutscenes/__init__.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
sl_cutscenes/__init__.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
from .generation import generate
16.5
32
0.848485
4
33
7
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.965517
0
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
e1748f4515bd7ee5156393884a142c16d93b20ce
42
py
Python
code/Python/HelloWorld_AK.py
souvickroy02/Hello-World
a25bea68b2a22e68c3dffb5824e36f3fce33a8d3
[ "MIT" ]
63
2019-09-30T16:16:19.000Z
2021-06-17T17:23:06.000Z
code/Python/HelloWorld_AK.py
souvickroy02/Hello-World
a25bea68b2a22e68c3dffb5824e36f3fce33a8d3
[ "MIT" ]
242
2019-09-30T14:07:06.000Z
2020-10-01T13:52:13.000Z
code/Python/HelloWorld_AK.py
souvickroy02/Hello-World
a25bea68b2a22e68c3dffb5824e36f3fce33a8d3
[ "MIT" ]
743
2019-09-30T13:58:42.000Z
2021-12-29T21:58:28.000Z
# print Hello World print ("Hello World!")
21
22
0.714286
6
42
5
0.5
0.666667
1
0
0
0
0
0
0
0
0
0
0.142857
42
2
22
21
0.833333
0.404762
0
0
0
0
0.5
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
7
e18ca80195555e5474118723430b71a00eed02a8
6,137
py
Python
tests/test_storage_account.py
tinvaan/mazure
c6798912ef1298514d0220f2d3809338683efec8
[ "Apache-2.0" ]
2
2021-06-23T08:59:37.000Z
2022-02-02T05:15:12.000Z
tests/test_storage_account.py
tinvaan/mazure
c6798912ef1298514d0220f2d3809338683efec8
[ "Apache-2.0" ]
2
2021-06-22T13:12:34.000Z
2021-07-03T12:07:15.000Z
tests/test_storage_account.py
tinvaan/mazure
c6798912ef1298514d0220f2d3809338683efec8
[ "Apache-2.0" ]
1
2022-02-28T12:36:20.000Z
2022-02-28T12:36:20.000Z
import uuid import secrets import unittest from azure.identity import ClientSecretCredential from azure.mgmt.storage import StorageManagementClient from azure.mgmt.storage.models import ( StorageAccountCreateParameters, StorageAccountCheckNameAvailabilityParameters ) from mazure import mazure, Mazure from mazure.services.storageaccounts.models import StorageAccount group = 'testrg' subscription = str(uuid.uuid4()) accounts = [ { 'name': 'first', 'location': 'eastus', 'subscription': subscription, 'resourceGroup': group }, { 'name': 'second', 'location': 'westus', 'subscription': subscription, 'resourceGroup': group }, { 'name': 'third', 'location': 'centralindia', 'subscription': subscription, 'resourceGroup': group } ] class TestStorageAccountProxy(unittest.TestCase): @classmethod def setUpClass(cls): cls.subscription = subscription cls.creds = ClientSecretCredential( tenant_id=str(uuid.uuid4()), client_id=str(uuid.uuid4()), client_secret=secrets.token_urlsafe()) cls.client = StorageManagementClient(cls.creds, cls.subscription) def setUp(self): for account in accounts: StorageAccount(**account).save() def test_list_storage_accounts(self): with Mazure(): sas = self.client.storage_accounts.list() self.assertEqual(len([sa for sa in sas]), 3) for sa in sas: self.assertIsNotNone(sa) def test_check_storage_account_name(self): valid = StorageAccountCheckNameAvailabilityParameters(name='foobarsa') invalid = StorageAccountCheckNameAvailabilityParameters(name='testkit') with Mazure(): self.assertTrue(self.client.storage_accounts .check_name_availability(valid).name_available) self.assertTrue(self.client.storage_accounts .check_name_availability(invalid).name_available) def test_create_storage_account(self): with Mazure(): kws = { "sku": {"name": "Premium_LRS"}, "kind": "BlockBlobStorage", "location": "eastus", } self.client.storage_accounts.begin_create( 'testrg', 'testaccount', StorageAccountCreateParameters(**kws)) self.assertIsNotNone( StorageAccount.objects.get(name='testaccount')) with self.assertRaises(Exception): self.client.storage_accounts.begin_create( 'testrg', 'testaccount', StorageAccountCreateParameters(**kws)) self.assertEqual(StorageAccount.objects( resourceGroup='testrg', name='testaccount').count(), 1) def test_delete_storage_account(self): with Mazure(): self.client.storage_accounts.delete( account_name='testaccount', resource_group_name='testrg') self.assertEqual(StorageAccount.objects( resourceGroup='testrg', name='testaccount').count(), 0) # TODO: Should this fail silently? self.client.storage_accounts.delete( account_name='nonexistent', resource_group_name='testrg') self.assertEqual(StorageAccount.objects( resourceGroup='testrg', name='nonexistent').count(), 0) def tearDown(self): StorageAccount.objects.delete() class TestStorageAccountProxyDecorator(unittest.TestCase): @classmethod def setUpClass(cls): cls.subscription = subscription cls.creds = ClientSecretCredential( tenant_id=str(uuid.uuid4()), client_id=str(uuid.uuid4()), client_secret=secrets.token_urlsafe()) cls.client = StorageManagementClient(cls.creds, cls.subscription) def setUp(self): for account in accounts: StorageAccount(**account).save() @mazure def test_list_storage_accounts(self): sas = self.client.storage_accounts.list() self.assertEqual(len([sa for sa in sas]), 3) for sa in sas: self.assertIsNotNone(sa) @mazure def test_check_storage_account_name(self): valid = StorageAccountCheckNameAvailabilityParameters(name='foobarsa') invalid = StorageAccountCheckNameAvailabilityParameters(name='testkit') self.assertTrue(self.client.storage_accounts .check_name_availability(valid).name_available) self.assertTrue(self.client.storage_accounts .check_name_availability(invalid).name_available) @mazure def test_create_storage_account(self): kws = { "sku": {"name": "Premium_LRS"}, "kind": "BlockBlobStorage", "location": "eastus", } self.client.storage_accounts.begin_create( 'testrg', 'testaccount', StorageAccountCreateParameters(**kws)) self.assertIsNotNone( StorageAccount.objects.get(name='testaccount')) with self.assertRaises(Exception): self.client.storage_accounts.begin_create( 'testrg', 'testaccount', StorageAccountCreateParameters(**kws)) self.assertEqual(StorageAccount.objects( resourceGroup='testrg', name='testaccount').count(), 1) @mazure def test_delete_storage_account(self): self.client.storage_accounts.delete( account_name='testaccount', resource_group_name='testrg') self.assertEqual(StorageAccount.objects( resourceGroup='testrg', name='testaccount').count(), 0) # TODO: Should this fail silently? self.client.storage_accounts.delete( account_name='nonexistent', resource_group_name='testrg') self.assertEqual(StorageAccount.objects( resourceGroup='testrg', name='nonexistent').count(), 0) def tearDown(self): StorageAccount.objects.delete() if __name__ == '__main__': unittest.main()
35.473988
83
0.635653
545
6,137
7
0.179817
0.06291
0.062385
0.091743
0.840367
0.811009
0.762779
0.762779
0.762779
0.762779
0
0.00286
0.25941
6,137
172
84
35.680233
0.836524
0.010591
0
0.769231
0
0
0.092123
0
0
0
0
0.005814
0.125874
1
0.097902
false
0
0.055944
0
0.167832
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e1af964ea1a052eea7a1b106b9511087285be9cf
2,915
py
Python
086 Radix Sort/Radix_Sort_test.py
Iftakharpy/AlgoExpert-Questions
f4aef449bfe0ee651d84a92487c3b3bedb3aa739
[ "Apache-2.0" ]
3
2021-11-19T07:32:27.000Z
2022-03-22T13:46:27.000Z
086 Radix Sort/Radix_Sort_test.py
Iftakharpy/AlgoExpert-Questions
f4aef449bfe0ee651d84a92487c3b3bedb3aa739
[ "Apache-2.0" ]
null
null
null
086 Radix Sort/Radix_Sort_test.py
Iftakharpy/AlgoExpert-Questions
f4aef449bfe0ee651d84a92487c3b3bedb3aa739
[ "Apache-2.0" ]
5
2022-01-02T11:51:12.000Z
2022-03-22T13:53:32.000Z
from Radix_Sort import radixSort def test_radixSort_case_1(): assert radixSort(array=[8762, 654, 3008, 345, 87, 65, 234, 12, 2]) == [2, 12, 65, 87, 234, 345, 654, 3008, 8762] def test_radixSort_case_2(): assert radixSort(array=[2, 12, 65, 87, 234, 345, 654, 3008, 8762]) == [2, 12, 65, 87, 234, 345, 654, 3008, 8762] def test_radixSort_case_3(): assert radixSort(array=[111, 11, 11, 1, 0]) == [0, 1, 11, 11, 111] def test_radixSort_case_4(): assert radixSort(array=[12, 123, 456, 986, 2, 3, 34, 543, 97654, 34200]) == [2, 3, 12, 34, 123, 456, 543, 986, 34200, 97654] def test_radixSort_case_5(): assert radixSort(array=[4, 44, 444, 888, 88, 33, 3, 22, 2222, 1111, 1234]) == [3, 4, 22, 33, 44, 88, 444, 888, 1111, 1234, 2222] def test_radixSort_case_6(): assert radixSort(array=[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]) == [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] def test_radixSort_case_7(): assert radixSort(array=[]) == [] def test_radixSort_case_8(): assert radixSort(array=[100]) == [100] def test_radixSort_case_9(): assert radixSort(array=[10000, 100001, 10001, 10101, 101, 11, 100, 10, 1, 0]) == [0, 1, 10, 11, 100, 101, 10000, 10001, 10101, 100001] def test_radixSort_case_10(): assert radixSort(array=[34, 56, 7373, 2321, 3421, 8272, 232, 23892831, 230983, 2312, 7878, 87, 234, 23, 332, 4556]) == [23, 34, 56, 87, 232, 234, 332, 2312, 2321, 3421, 4556, 7373, 7878, 8272, 230983, 23892831] def test_radixSort_case_11(): assert radixSort(array=[10, 87, 2321, 3221, 2312, 7632, 6542, 3223, 231, 2342, 321, 9, 1, 323, 421, 325, 65, 789, 4002]) == [1, 9, 10, 65, 87, 231, 321, 323, 325, 421, 789, 2312, 2321, 2342, 3221, 3223, 4002, 6542, 7632] def test_radixSort_case_12(): assert radixSort(array=[0, 1, 2, 22, 11, 3, 33, 0, 0, 0, 21, 21, 21, 1, 11, 111]) == [0, 0, 0, 0, 1, 1, 2, 3, 11, 11, 21, 21, 21, 22, 33, 111] def test_radixSort_case_13(): assert radixSort(array=[8, 4, 5, 34, 234, 987, 444, 23, 21, 8, 1, 0]) == [0, 1, 4, 5, 8, 8, 21, 23, 34, 234, 444, 987] def test_radixSort_case_14(): assert radixSort(array=[1, 11]) == [1, 11] def test_radixSort_case_15(): assert radixSort(array=[1, 11, 1, 11, 101, 9, 99, 432, 441]) == [1, 1, 9, 11, 11, 99, 101, 432, 441] def test_radixSort_case_16(): assert radixSort(array=[1000, 100, 10, 1, 10, 100, 1000, 10001, 10201, 1001, 0, 1, 1]) == [0, 1, 1, 1, 10, 10, 100, 100, 1000, 1000, 1001, 10001, 10201] def test_radixSort_case_17(): assert radixSort(array=[9, 109, 908, 876, 1099, 190, 290, 999, 9999]) == [9, 109, 190, 290, 876, 908, 999, 1099, 9999] def test_radixSort_case_18(): assert radixSort(array=[0, 999999, 234892, 10000009, 89892, 782731, 891932, 92012, 1892193, 181730, 785239, 2314451, 1231421, 812723]) == [0, 89892, 92012, 181730, 234892, 782731, 785239, 812723, 891932, 999999, 1231421, 1892193, 2314451, 10000009]
51.140351
253
0.62024
499
2,915
3.513026
0.226453
0.071877
0.16429
0.205362
0.119795
0.093554
0.093554
0.06389
0.06389
0.0502
0
0.429487
0.197256
2,915
56
254
52.053571
0.319658
0
0
0
0
0
0
0
0
0
0
0
0.486486
1
0.486486
true
0
0.027027
0
0.513514
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
1
0
0
7
e1b50b7cdc6efeeb2710fa617fcd4e968111e9ea
975,577
py
Python
experiment_results/exp_sim_regular_20190607T082407Z.py
carstenblank/Quantum-classifier-with-tailored-quantum-kernels---Supplemental
7c3188f0b71e825bc8ce2b1577a93d10b34abdbc
[ "Apache-2.0" ]
11
2020-02-18T14:14:40.000Z
2021-10-10T12:19:23.000Z
experiment_results/exp_sim_regular_20190607T082407Z.py
carstenblank/Quantum-classifier-with-tailored-quantum-kernels---Supplemental
7c3188f0b71e825bc8ce2b1577a93d10b34abdbc
[ "Apache-2.0" ]
null
null
null
experiment_results/exp_sim_regular_20190607T082407Z.py
carstenblank/Quantum-classifier-with-tailored-quantum-kernels---Supplemental
7c3188f0b71e825bc8ce2b1577a93d10b34abdbc
[ "Apache-2.0" ]
2
2020-07-08T23:17:01.000Z
2021-09-27T03:13:32.000Z
# -*- coding: utf-8 -*- # Copyright 2019 Carsten Blank # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. result = {'experiment': {'qobj': {'qobj_id': '2019-06-07T08:24:07.836571-exp-sim-regular', 'config': {'shots': 8192, 'memory_slots': 2, 'max_credits': 315, 'memory': False, 'n_qubits': 5}, 'experiments': [{'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit641', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.0,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.1, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit636', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.100000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit639', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.200000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.30000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit637', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.300000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.4, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit638', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.400000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit650', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.500000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.6000000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit640', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.600000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.7000000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit755', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.700000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.8, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit752', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.800000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.9, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit754', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.900000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit753', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.1, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit745', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.2000000000000002, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit749', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.3, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit751', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.4000000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit747', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit743', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.6, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit742', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.7000000000000002, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit732', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.8, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit733', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.9000000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit738', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit731', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.1, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit734', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit722', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.3000000000000003, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit729', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.4000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit721', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit723', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.6, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit719', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.7, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit724', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.8000000000000003, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit713', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.9000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit712', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit704', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.1, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit707', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit709', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.3000000000000003, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit710', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.4000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit697', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit699', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.6, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit702', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.7, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit711', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.8000000000000003, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit705', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.9000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit696', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit685', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.1000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit689', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit687', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.3, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit684', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.4, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit686', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit680', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.6000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit688', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.7, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit677', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.800000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit673', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.9, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit669', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit667', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.1000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit671', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit665', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.300000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit676', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.4, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit668', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit657', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.6000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit659', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.7, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit656', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.800000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit661', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.9, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit648', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [6.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['6.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit655', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [6.1000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['6.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit649', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [6.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['6.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit654', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}], 'header': {'backend_name': 'qasm_simulator'}, 'type': 'QASM', 'schema_version': '1.0.0'}, 'date': '2019-06-07T08:24:32.229261', 'job_id': '5cfa031b42519f006f7a6b75', 'backend_name': 'ibmqx4', 'backend_version': '1.1.2', 'job_status': 'DONE', 'results': [{'shots': 8192, 'data': {'counts': {'0x1': 2423, '0x2': 1559, '0x3': 1241, '0x0': 2969}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.0,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit641'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2386, '0x2': 1581, '0x3': 1226, '0x0': 2999}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.100000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit636'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2431, '0x2': 1557, '0x3': 1206, '0x0': 2998}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.200000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit639'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2452, '0x2': 1533, '0x3': 1209, '0x0': 2998}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.300000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit637'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2399, '0x2': 1532, '0x3': 1242, '0x0': 3019}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.400000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit638'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2371, '0x2': 1548, '0x3': 1261, '0x0': 3012}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.500000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit650'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2445, '0x2': 1523, '0x3': 1265, '0x0': 2959}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.600000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit640'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2424, '0x2': 1522, '0x3': 1292, '0x0': 2954}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.700000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit755'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2418, '0x2': 1576, '0x3': 1288, '0x0': 2910}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.800000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit752'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2438, '0x2': 1441, '0x3': 1348, '0x0': 2965}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.900000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit754'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2431, '0x2': 1456, '0x3': 1285, '0x0': 3020}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit753'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2455, '0x2': 1497, '0x3': 1357, '0x0': 2883}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit745'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2378, '0x2': 1547, '0x3': 1333, '0x0': 2934}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit749'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2435, '0x2': 1531, '0x3': 1317, '0x0': 2909}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit751'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2461, '0x2': 1504, '0x3': 1301, '0x0': 2926}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit747'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2469, '0x2': 1507, '0x3': 1236, '0x0': 2980}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit743'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2402, '0x2': 1511, '0x3': 1320, '0x0': 2959}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit742'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2445, '0x2': 1495, '0x3': 1315, '0x0': 2937}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit732'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2481, '0x2': 1500, '0x3': 1364, '0x0': 2847}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit733'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2515, '0x2': 1526, '0x3': 1341, '0x0': 2810}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit738'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2476, '0x2': 1531, '0x3': 1296, '0x0': 2889}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit731'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2496, '0x2': 1487, '0x3': 1377, '0x0': 2832}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit734'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2447, '0x2': 1525, '0x3': 1341, '0x0': 2879}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit722'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2429, '0x2': 1558, '0x3': 1343, '0x0': 2862}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit729'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2462, '0x2': 1525, '0x3': 1425, '0x0': 2780}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit721'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2421, '0x2': 1564, '0x3': 1345, '0x0': 2862}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit723'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2433, '0x2': 1523, '0x3': 1364, '0x0': 2872}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit719'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2463, '0x2': 1570, '0x3': 1372, '0x0': 2787}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit724'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2494, '0x2': 1557, '0x3': 1319, '0x0': 2822}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit713'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2435, '0x2': 1531, '0x3': 1365, '0x0': 2861}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit712'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2454, '0x2': 1599, '0x3': 1316, '0x0': 2823}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit704'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2461, '0x2': 1517, '0x3': 1298, '0x0': 2916}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit707'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2481, '0x2': 1501, '0x3': 1286, '0x0': 2924}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit709'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2442, '0x2': 1535, '0x3': 1304, '0x0': 2911}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit710'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2430, '0x2': 1590, '0x3': 1321, '0x0': 2851}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit697'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2572, '0x2': 1521, '0x3': 1229, '0x0': 2870}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit699'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2403, '0x2': 1616, '0x3': 1330, '0x0': 2843}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit702'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2378, '0x2': 1558, '0x3': 1292, '0x0': 2964}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit711'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2428, '0x2': 1553, '0x3': 1291, '0x0': 2920}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit705'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2456, '0x2': 1488, '0x3': 1299, '0x0': 2949}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit696'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2462, '0x2': 1569, '0x3': 1307, '0x0': 2854}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit685'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2451, '0x2': 1537, '0x3': 1307, '0x0': 2897}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit689'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2432, '0x2': 1545, '0x3': 1309, '0x0': 2906}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit687'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2513, '0x2': 1568, '0x3': 1234, '0x0': 2877}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit684'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2409, '0x2': 1576, '0x3': 1282, '0x0': 2925}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit686'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2329, '0x2': 1641, '0x3': 1244, '0x0': 2978}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit680'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2457, '0x2': 1556, '0x3': 1242, '0x0': 2937}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit688'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2404, '0x2': 1597, '0x3': 1240, '0x0': 2951}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit677'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2404, '0x2': 1578, '0x3': 1230, '0x0': 2980}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit673'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2455, '0x2': 1544, '0x3': 1187, '0x0': 3006}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit669'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2434, '0x2': 1530, '0x3': 1223, '0x0': 3005}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit667'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2341, '0x2': 1511, '0x3': 1264, '0x0': 3076}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit671'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2439, '0x2': 1562, '0x3': 1157, '0x0': 3034}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit665'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2469, '0x2': 1567, '0x3': 1147, '0x0': 3009}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit676'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2455, '0x2': 1595, '0x3': 1245, '0x0': 2897}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit668'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2473, '0x2': 1545, '0x3': 1192, '0x0': 2982}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit657'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2427, '0x2': 1582, '0x3': 1162, '0x0': 3021}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit659'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2370, '0x2': 1552, '0x3': 1273, '0x0': 2997}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit656'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2412, '0x2': 1527, '0x3': 1168, '0x0': 3085}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit661'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2370, '0x2': 1530, '0x3': 1265, '0x0': 3027}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit648'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2435, '0x2': 1486, '0x3': 1238, '0x0': 3033}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit655'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2320, '0x2': 1600, '0x3': 1263, '0x0': 3009}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit649'}}, {'shots': 8192, 'data': {'counts': {'0x1': 2496, '0x2': 1493, '0x3': 1146, '0x0': 3057}}, 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit654'}}], 'classification': [0.02783203125, 0.031494140625, 0.0263671875, 0.027099609375, 0.040283203125, 0.043212890625, 0.03125, 0.03662109375, 0.02490234375, 0.052978515625, 0.051025390625, 0.03515625, 0.041748046875, 0.03173828125, 0.031982421875, 0.029296875, 0.044677734375, 0.0380859375, 0.028076171875, 0.013427734375, 0.021728515625, 0.027587890625, 0.0302734375, 0.026611328125, 0.026611328125, 0.027099609375, 0.0341796875, 0.015380859375, 0.010986328125, 0.03173828125, 0.010498046875, 0.02880859375, 0.02783203125, 0.029052734375, 0.0185546875, 0.000732421875, 0.018798828125, 0.0390625, 0.028076171875, 0.037109375, 0.015869140625, 0.0263671875, 0.029052734375, 0.003662109375, 0.027099609375, 0.03076171875, 0.020263671875, 0.023193359375, 0.02783203125, 0.023681640625, 0.0322265625, 0.0595703125, 0.023193359375, 0.0146484375, 0.01123046875, 0.01904296875, 0.021240234375, 0.04248046875, 0.038330078125, 0.0478515625, 0.042724609375, 0.04296875, 0.026123046875], 'noise_model': None, 'parameters': {'backend': 'ibmqx4', 'use_barriers': True, 'use_generic_weights_circuit': False}}, 'simulation': {'qobj': {'qobj_id': '2019-06-07T08:24:07.836571-exp-sim-regular', 'config': {'shots': 8192, 'memory_slots': 2, 'max_credits': 315, 'memory': False, 'n_qubits': 5}, 'experiments': [{'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit641', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.0,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.1, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit636', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.100000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit639', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.200000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.30000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit637', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.300000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.4, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit638', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.400000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit650', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.500000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.6000000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit640', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.600000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.7000000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit755', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.700000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.8, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit752', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.800000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [0.9, -1.5707963267948966, 1.5707963267948966], 'texparams': ['0.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit754', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.900000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit753', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.1, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit745', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.2000000000000002, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit749', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.3, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit751', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.4000000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit747', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit743', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.6, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit742', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.7000000000000002, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit732', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.8, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit733', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [1.9000000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['1.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit738', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit731', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.1, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit734', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit722', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.3000000000000003, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit729', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.4000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit721', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit723', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.6, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit719', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.7, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit724', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.8000000000000003, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit713', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [2.9000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['2.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit712', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit704', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.1, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit707', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit709', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.3000000000000003, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit710', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.4000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit697', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit699', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.6, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit702', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.7, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit711', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.8000000000000003, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit705', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [3.9000000000000004, -1.5707963267948966, 1.5707963267948966], 'texparams': ['3.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit696', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit685', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.1000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit689', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit687', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.3, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit684', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.4, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit686', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit680', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.6000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit688', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.7, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit677', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.800000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit673', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [4.9, -1.5707963267948966, 1.5707963267948966], 'texparams': ['4.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit669', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit667', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.1000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit671', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit665', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.300000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.3', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit676', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.4, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.4', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit668', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.5, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.5', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit657', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.6000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.6', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit659', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.7, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.7', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit656', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.800000000000001, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.8', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit661', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [5.9, -1.5707963267948966, 1.5707963267948966], 'texparams': ['5.9', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit648', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [6.0, -1.5707963267948966, 1.5707963267948966], 'texparams': ['6.0', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit655', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [6.1000000000000005, -1.5707963267948966, 1.5707963267948966], 'texparams': ['6.1', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit649', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}, {'instructions': [{'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [-3.141592653589793], 'texparams': ['-3.14159265358979'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u1', 'params': [1.5707963267948966], 'texparams': ['\\frac{\\pi}{2}'], 'qubits': [2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [2, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [1, 0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [0], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [1], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u3', 'params': [6.2, -1.5707963267948966, 1.5707963267948966], 'texparams': ['6.2', '- \\frac{\\pi}{2}', '\\frac{\\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'u2', 'params': [0.7853981633974483, 3.141592653589793], 'texparams': ['\\frac{\\pi}{4}', '\\pi'], 'qubits': [2], 'memory': []}, {'name': 'u3', 'params': [0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['\\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u1', 'params': [-0.7853981633974483], 'texparams': ['- \\frac{\\pi}{4}'], 'qubits': [2], 'memory': []}, {'name': 'u1', 'params': [0.7853981633974483], 'texparams': ['\\frac{\\pi}{4}'], 'qubits': [4], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [4, 2], 'memory': []}, {'name': 'u3', 'params': [-0.7853981633974483, 1.5707963267948966, 4.71238898038469], 'texparams': ['- \\frac{\\pi}{4}', '\\frac{\\pi}{2}', '\\frac{3 \\pi}{2}'], 'qubits': [3], 'memory': []}, {'name': 'cx', 'params': [], 'texparams': [], 'qubits': [3, 2], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'u2', 'params': [0.0, 3.141592653589793], 'texparams': ['0', '\\pi'], 'qubits': [4], 'memory': []}, {'name': 'barrier', 'params': [], 'texparams': [], 'qubits': [0, 1, 2, 3, 4], 'memory': []}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [1], 'memory': [1]}, {'name': 'measure', 'params': [], 'texparams': [], 'qubits': [4], 'memory': [0]}], 'header': {'n_qubits': 5, 'memory_slots': 2, 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'clbit_labels': [['c', 0], ['c', 1]], 'qreg_sizes': [['q', 5]], 'creg_sizes': [['c', 2]], 'name': 'circuit654', 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n'}, 'config': {'memory_slots': 2, 'n_qubits': 5}}], 'header': {'backend_name': 'qasm_simulator'}, 'type': 'QASM', 'schema_version': '1.0.0'}, 'date': '2019-06-08T09:42:15.090328', 'job_id': 'fb4f67e9-84d1-4a92-8807-0826aa3b3a1d', 'backend_name': 'qasm_simulator', 'backend_version': '2.0.0', 'job_status': 'DONE', 'results': [{'shots': 8192, 'data': {'counts': {'0x1': 1650, '0x2': 2426, '0x3': 1687, '0x0': 2429}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.0,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit641'}, 'seed': 4147039754, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.655489543}, {'shots': 8192, 'data': {'counts': {'0x1': 1738, '0x2': 2323, '0x3': 1739, '0x0': 2392}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.100000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit636'}, 'seed': 1158695458, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.564616792}, {'shots': 8192, 'data': {'counts': {'0x1': 1657, '0x2': 2349, '0x3': 1741, '0x0': 2445}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.200000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit639'}, 'seed': 632819035, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.5517234240000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1656, '0x2': 2327, '0x3': 1810, '0x0': 2399}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.300000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit637'}, 'seed': 61339824, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.470756642}, {'shots': 8192, 'data': {'counts': {'0x1': 1628, '0x2': 2329, '0x3': 1726, '0x0': 2509}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.400000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit638'}, 'seed': 1492035068, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.6488093380000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1613, '0x2': 2319, '0x3': 1794, '0x0': 2466}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.500000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit650'}, 'seed': 3645768151, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.628819397}, {'shots': 8192, 'data': {'counts': {'0x1': 1581, '0x2': 2261, '0x3': 1836, '0x0': 2514}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.600000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit640'}, 'seed': 2046641149, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.5055625590000001}, {'shots': 8192, 'data': {'counts': {'0x1': 1580, '0x2': 2253, '0x3': 1854, '0x0': 2505}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.700000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit755'}, 'seed': 791500556, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3888352510000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1518, '0x2': 2155, '0x3': 1943, '0x0': 2576}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.800000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit752'}, 'seed': 2610817867, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.348097351}, {'shots': 8192, 'data': {'counts': {'0x1': 1563, '0x2': 2217, '0x3': 1933, '0x0': 2479}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(0.900000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit754'}, 'seed': 333729897, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.452382509}, {'shots': 8192, 'data': {'counts': {'0x1': 1585, '0x2': 2227, '0x3': 1822, '0x0': 2558}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit753'}, 'seed': 1257121940, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.512300197}, {'shots': 8192, 'data': {'counts': {'0x1': 1544, '0x2': 2226, '0x3': 1879, '0x0': 2543}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit745'}, 'seed': 70880061, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.46708331}, {'shots': 8192, 'data': {'counts': {'0x1': 1538, '0x2': 2232, '0x3': 1852, '0x0': 2570}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit749'}, 'seed': 1179830871, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.545442553}, {'shots': 8192, 'data': {'counts': {'0x1': 1503, '0x2': 2164, '0x3': 1917, '0x0': 2608}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit751'}, 'seed': 2746378414, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.62078093}, {'shots': 8192, 'data': {'counts': {'0x1': 1557, '0x2': 2168, '0x3': 1945, '0x0': 2522}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit747'}, 'seed': 303498833, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.601275444}, {'shots': 8192, 'data': {'counts': {'0x1': 1490, '0x2': 2206, '0x3': 1926, '0x0': 2570}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit743'}, 'seed': 1455966675, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.358250125}, {'shots': 8192, 'data': {'counts': {'0x1': 1548, '0x2': 2081, '0x3': 1934, '0x0': 2629}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit742'}, 'seed': 1361928161, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.409650211}, {'shots': 8192, 'data': {'counts': {'0x1': 1485, '0x2': 2202, '0x3': 1938, '0x0': 2567}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit732'}, 'seed': 1951841005, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.392631642}, {'shots': 8192, 'data': {'counts': {'0x1': 1538, '0x2': 2151, '0x3': 1887, '0x0': 2616}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit733'}, 'seed': 1323679889, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.472122579}, {'shots': 8192, 'data': {'counts': {'0x1': 1529, '0x2': 2200, '0x3': 1957, '0x0': 2506}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(1.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit738'}, 'seed': 499036929, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.634924191}, {'shots': 8192, 'data': {'counts': {'0x1': 1575, '0x2': 2185, '0x3': 1897, '0x0': 2535}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit731'}, 'seed': 4151226062, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.435326308}, {'shots': 8192, 'data': {'counts': {'0x1': 1531, '0x2': 2136, '0x3': 1932, '0x0': 2593}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit734'}, 'seed': 892892889, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.358093827}, {'shots': 8192, 'data': {'counts': {'0x1': 1513, '0x2': 2251, '0x3': 1840, '0x0': 2588}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit722'}, 'seed': 2392453123, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3773068670000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1585, '0x2': 2224, '0x3': 1826, '0x0': 2557}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit729'}, 'seed': 2762547705, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3800682590000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1660, '0x2': 2188, '0x3': 1875, '0x0': 2469}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit721'}, 'seed': 2809111413, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.4056985750000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1674, '0x2': 2213, '0x3': 1829, '0x0': 2476}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit723'}, 'seed': 2044641751, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3610710590000001}, {'shots': 8192, 'data': {'counts': {'0x1': 1682, '0x2': 2147, '0x3': 1881, '0x0': 2482}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit719'}, 'seed': 2988827237, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3609301180000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1612, '0x2': 2198, '0x3': 1856, '0x0': 2526}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit724'}, 'seed': 974607098, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.4177007320000001}, {'shots': 8192, 'data': {'counts': {'0x1': 1695, '0x2': 2322, '0x3': 1774, '0x0': 2401}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit713'}, 'seed': 3758747350, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3754004510000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1665, '0x2': 2208, '0x3': 1839, '0x0': 2480}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(2.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit712'}, 'seed': 2354712320, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3612688940000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1734, '0x2': 2279, '0x3': 1742, '0x0': 2437}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit704'}, 'seed': 1704772878, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.337759613}, {'shots': 8192, 'data': {'counts': {'0x1': 1767, '0x2': 2367, '0x3': 1651, '0x0': 2407}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit707'}, 'seed': 1485551314, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.386212416}, {'shots': 8192, 'data': {'counts': {'0x1': 1825, '0x2': 2295, '0x3': 1691, '0x0': 2381}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit709'}, 'seed': 1566321111, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.407048966}, {'shots': 8192, 'data': {'counts': {'0x1': 1802, '0x2': 2391, '0x3': 1661, '0x0': 2338}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit710'}, 'seed': 4265699377, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.378266001}, {'shots': 8192, 'data': {'counts': {'0x1': 1827, '0x2': 2390, '0x3': 1669, '0x0': 2306}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit697'}, 'seed': 1368891216, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3933261760000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1877, '0x2': 2365, '0x3': 1627, '0x0': 2323}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit699'}, 'seed': 3627411288, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3621925860000001}, {'shots': 8192, 'data': {'counts': {'0x1': 1788, '0x2': 2463, '0x3': 1636, '0x0': 2305}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit702'}, 'seed': 980639624, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3582759020000001}, {'shots': 8192, 'data': {'counts': {'0x1': 1764, '0x2': 2475, '0x3': 1611, '0x0': 2342}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit711'}, 'seed': 1964510885, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.395424401}, {'shots': 8192, 'data': {'counts': {'0x1': 1915, '0x2': 2418, '0x3': 1579, '0x0': 2280}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit705'}, 'seed': 3951225331, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.395582947}, {'shots': 8192, 'data': {'counts': {'0x1': 1839, '0x2': 2528, '0x3': 1561, '0x0': 2264}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(3.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit696'}, 'seed': 120503370, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3660771820000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1862, '0x2': 2592, '0x3': 1525, '0x0': 2213}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit685'}, 'seed': 1666753007, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.359008575}, {'shots': 8192, 'data': {'counts': {'0x1': 1876, '0x2': 2509, '0x3': 1541, '0x0': 2266}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit689'}, 'seed': 2836825091, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.3782593900000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1916, '0x2': 2493, '0x3': 1536, '0x0': 2247}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit687'}, 'seed': 2630557321, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.374792664}, {'shots': 8192, 'data': {'counts': {'0x1': 1848, '0x2': 2572, '0x3': 1565, '0x0': 2207}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit684'}, 'seed': 3606300453, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.355576372}, {'shots': 8192, 'data': {'counts': {'0x1': 1932, '0x2': 2540, '0x3': 1536, '0x0': 2184}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit686'}, 'seed': 1997463101, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.389206379}, {'shots': 8192, 'data': {'counts': {'0x1': 1929, '0x2': 2621, '0x3': 1474, '0x0': 2168}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit680'}, 'seed': 1069013720, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.429639096}, {'shots': 8192, 'data': {'counts': {'0x1': 1835, '0x2': 2668, '0x3': 1468, '0x0': 2221}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit688'}, 'seed': 3085224524, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.324968562}, {'shots': 8192, 'data': {'counts': {'0x1': 1893, '0x2': 2664, '0x3': 1508, '0x0': 2127}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit677'}, 'seed': 17270314, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.337863695}, {'shots': 8192, 'data': {'counts': {'0x1': 1963, '0x2': 2586, '0x3': 1490, '0x0': 2153}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit673'}, 'seed': 1086589983, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.459208933}, {'shots': 8192, 'data': {'counts': {'0x1': 1861, '0x2': 2564, '0x3': 1608, '0x0': 2159}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(4.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit669'}, 'seed': 219948600, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.623093941}, {'shots': 8192, 'data': {'counts': {'0x1': 1919, '0x2': 2541, '0x3': 1500, '0x0': 2232}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit667'}, 'seed': 3149884674, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.415628028}, {'shots': 8192, 'data': {'counts': {'0x1': 1890, '0x2': 2570, '0x3': 1437, '0x0': 2295}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit671'}, 'seed': 1107987449, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.433994427}, {'shots': 8192, 'data': {'counts': {'0x1': 1932, '0x2': 2487, '0x3': 1525, '0x0': 2248}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit665'}, 'seed': 2080513190, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.382576645}, {'shots': 8192, 'data': {'counts': {'0x1': 1908, '0x2': 2608, '0x3': 1511, '0x0': 2165}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.30000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit676'}, 'seed': 1246005201, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.4606654810000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1856, '0x2': 2522, '0x3': 1594, '0x0': 2220}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.40000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit668'}, 'seed': 720338331, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.458013232}, {'shots': 8192, 'data': {'counts': {'0x1': 1891, '0x2': 2488, '0x3': 1572, '0x0': 2241}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.50000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit657'}, 'seed': 3446967233, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.568599544}, {'shots': 8192, 'data': {'counts': {'0x1': 1829, '0x2': 2545, '0x3': 1531, '0x0': 2287}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.60000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit659'}, 'seed': 2608689959, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.5380174910000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1807, '0x2': 2525, '0x3': 1591, '0x0': 2269}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.70000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit656'}, 'seed': 110198120, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.5298761870000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1913, '0x2': 2462, '0x3': 1635, '0x0': 2182}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.80000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit661'}, 'seed': 2642936953, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.580686357}, {'shots': 8192, 'data': {'counts': {'0x1': 1817, '0x2': 2448, '0x3': 1580, '0x0': 2347}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(5.90000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit648'}, 'seed': 2276677709, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.43879365}, {'shots': 8192, 'data': {'counts': {'0x1': 1733, '0x2': 2465, '0x3': 1632, '0x0': 2362}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.00000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit655'}, 'seed': 2971550177, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.563898091}, {'shots': 8192, 'data': {'counts': {'0x1': 1741, '0x2': 2401, '0x3': 1657, '0x0': 2393}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.10000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit649'}, 'seed': 2662184344, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.4815134950000002}, {'shots': 8192, 'data': {'counts': {'0x1': 1732, '0x2': 2363, '0x3': 1703, '0x0': 2394}}, 'status': 'DONE', 'success': True, 'header': {'clbit_labels': [['c', 0], ['c', 1]], 'qubit_labels': [['q', 0], ['q', 1], ['q', 2], ['q', 3], ['q', 4]], 'memory_slots': 2, 'compiled_circuit_qasm': 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[5];\ncreg c[2];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(-3.14159265358979) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu1(pi/2) q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\ncx q[2],q[0];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[0];\nu2(0,pi) q[1];\ncx q[1],q[0];\nu2(0,pi) q[1];\nu2(0,pi) q[0];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu3(6.20000000000000,-pi/2,pi/2) q[3];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\ncx q[3],q[2];\nu2(0,pi) q[2];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[2];\nu3(pi/4,pi/2,3*pi/2) q[3];\ncx q[3],q[4];\nu3(-pi/4,pi/2,3*pi/2) q[3];\nu2(0,pi) q[4];\nu2(pi/4,pi) q[2];\ncx q[4],q[2];\nu1(pi/4) q[4];\nu1(-pi/4) q[2];\ncx q[4],q[2];\ncx q[3],q[2];\nbarrier q[0],q[1],q[2],q[3],q[4];\nu2(0,pi) q[4];\nbarrier q[0],q[1],q[2],q[3],q[4];\nmeasure q[4] -> c[0];\nmeasure q[1] -> c[1];\n', 'creg_sizes': [['c', 2]], 'qreg_sizes': [['q', 5]], 'n_qubits': 5, 'name': 'circuit654'}, 'seed': 536747345, 'metadata': {'method': 'statevector', 'omp_shot_threads': 1, 'omp_state_threads': 8}, 'time_taken': 1.481845604}], 'classification': [0.0048828125, 0.008544921875, 0.02197265625, 0.027587890625, 0.033935546875, 0.0400390625, 0.06201171875, 0.064208984375, 0.103271484375, 0.0771484375, 0.0693359375, 0.07958984375, 0.07958984375, 0.104736328125, 0.090576171875, 0.09765625, 0.114013671875, 0.099853515625, 0.099365234375, 0.089599609375, 0.08203125, 0.104736328125, 0.0810546875, 0.070068359375, 0.060546875, 0.051025390625, 0.065185546875, 0.06982421875, 0.019287109375, 0.054443359375, 0.020263671875, -0.00927734375, -0.005859375, -0.023681640625, -0.029541015625, -0.03564453125, -0.037841796875, -0.034912109375, -0.057861328125, -0.066162109375, -0.08740234375, -0.070556640625, -0.076416015625, -0.0791015625, -0.091796875, -0.11083984375, -0.099365234375, -0.112548828125, -0.110595703125, -0.080322265625, -0.0888671875, -0.0888671875, -0.078857421875, -0.1025390625, -0.06884765625, -0.069091796875, -0.06787109375, -0.0576171875, -0.068115234375, -0.041259765625, -0.02490234375, -0.01123046875, 0.000244140625], 'noise_model': None, 'parameters': {'backend': 'ibmqx4', 'use_barriers': True, 'circuit_factory': 'create_swap_test_old_circuit'}}}
60,973.5625
974,975
0.509462
164,748
975,577
3.000953
0.005736
0.024466
0.025995
0.026505
0.986555
0.982462
0.982462
0.980702
0.980702
0.980176
0
0.172643
0.097258
975,577
16
974,975
60,973.5625
0.388733
0.000586
0
0
0
252
0.56853
0.138778
0
0
0.001551
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
1
1
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
e1bd6031950fc8e492e0cd8c2784ef349d3cd00b
1,179
py
Python
src/test_proper_parenthetics.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
src/test_proper_parenthetics.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
src/test_proper_parenthetics.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
"""Test proper parenthetics.""" import pytest from proper_parenthetics import lisp_parens_with_count, lisp_parens_with_stack def test_lisp_parens_with_count_closed(): """Output with count to see whether parens closed(-1).""" input = lisp_parens_with_stack(')))(((') assert input == -1 def test_lisp_parens_with_count_open(): """Output with count to see whether parens open(1).""" input = lisp_parens_with_stack('((())') assert input == 1 def test_lisp_parens_with_count_balanced(): """Output with count to see whether parens balanced(0).""" input = lisp_parens_with_stack('((()))') assert input == 0 def test_lisp_parens_with_stack_start_closed(): """Output with stack to see whether parens closed(-1).""" input = lisp_parens_with_stack(')))(((') assert input == -1 def test_list_parens_with_stack_start_open(): """Output with stack to see whether parens open(1).""" input = lisp_parens_with_stack('((())') assert input == 1 def test_list_parens_with_stack_start_balanced(): """Output with stack to see whether parens balanced(0).""" input = lisp_parens_with_stack('((()))') assert input == 0
28.071429
78
0.696353
164
1,179
4.652439
0.152439
0.183486
0.220183
0.199214
0.80865
0.781127
0.747051
0.629096
0.629096
0.629096
0
0.012232
0.167939
1,179
41
79
28.756098
0.765545
0.282443
0
0.6
0
0
0.041975
0
0
0
0
0
0.3
1
0.3
false
0
0.1
0
0.4
0
0
0
0
null
0
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
e1d04143a2a9c05378d1afe450a2293df75310e8
115
py
Python
qualifiedname/__init__.py
maxfischer2781/qualifiedname
8aea438f231130f167c3827890c2ce26a8236754
[ "MIT" ]
null
null
null
qualifiedname/__init__.py
maxfischer2781/qualifiedname
8aea438f231130f167c3827890c2ce26a8236754
[ "MIT" ]
null
null
null
qualifiedname/__init__.py
maxfischer2781/qualifiedname
8aea438f231130f167c3827890c2ce26a8236754
[ "MIT" ]
null
null
null
from qualifiedname.qname_meta import QualNameMeta from qualifiedname.qname_recursive import set_qualname_recursive
38.333333
64
0.913043
14
115
7.214286
0.642857
0.336634
0.435644
0
0
0
0
0
0
0
0
0
0.069565
115
2
65
57.5
0.943925
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
bedc2be305334dab95d31f346074ddeb68bd9d43
85
py
Python
ips/ip/spi_master/__init__.py
zld012739/zldrepository
5635b78a168956091676ef4dd99fa564be0e5ba0
[ "MIT" ]
null
null
null
ips/ip/spi_master/__init__.py
zld012739/zldrepository
5635b78a168956091676ef4dd99fa564be0e5ba0
[ "MIT" ]
null
null
null
ips/ip/spi_master/__init__.py
zld012739/zldrepository
5635b78a168956091676ef4dd99fa564be0e5ba0
[ "MIT" ]
null
null
null
from spi_master_partial import get_ip_name from spi_master_partial import SPI_MASTER
28.333333
42
0.905882
15
85
4.666667
0.533333
0.385714
0.371429
0.571429
0.742857
0
0
0
0
0
0
0
0.094118
85
2
43
42.5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
bedf014a2af79c841b2ce232aee1741a863642a7
43,552
py
Python
pycity_resilience/test/test_lhn_changes.py
RWTH-EBC/pyCity_resilience
e0ff1e137adb0edec0509b8b50ca0931e761a9b4
[ "MIT" ]
3
2020-06-18T02:01:09.000Z
2020-10-20T13:57:10.000Z
pycity_resilience/test/test_lhn_changes.py
RWTH-EBC/pyCity_resilience
e0ff1e137adb0edec0509b8b50ca0931e761a9b4
[ "MIT" ]
null
null
null
pycity_resilience/test/test_lhn_changes.py
RWTH-EBC/pyCity_resilience
e0ff1e137adb0edec0509b8b50ca0931e761a9b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import division import copy import shapely.geometry.point as point import pycity_resilience.ga.evolution.lhn_changes as lhnchanges class TestLHNChanges(): def test_add_lhn_all_build(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 20, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1008: copy.copy(b_dict), 'lhn': []} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1008: 40} lhnchanges.add_lhn_all_build(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, prob_feed=[1, 0]) # Check if all buildings have been connected to LHN assert sorted(ind['lhn'][0]) == [1001, 1002, 1003, 1008] # Check if, at least, on CHP has been build assert (ind[1001]['chp'] > 0 or ind[1002]['chp'] > 0 or ind[1003]['chp'] > 0 or ind[1008]['chp'] > 0) # Check if number of CHPs is one, number of tes is one # and HPs have been removed count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1008]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp == 1 assert count_hp_aw == 0 assert count_tes == 1 def test_add_lhn_all_build2(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 20, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1008: copy.copy(b_dict), 'lhn': []} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1008: 40} lhnchanges.add_lhn_all_build(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, prob_feed=[0, 1]) # Check if all buildings have been connected to LHN assert sorted(ind['lhn'][0]) == [1001, 1002, 1003, 1008] count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1008]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp > 1 assert count_hp_aw == 0 assert count_tes > 1 def test_del_lhn(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1004: copy.copy(b_dict), 1005: copy.copy(b_dict), 1006: copy.copy(b_dict), 1007: copy.copy(b_dict), 1008: copy.copy(b_dict), 'lhn': [[1001, 1002, 1003, 1004], [1005, 1006, 1007, 1008]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 10, 1005: 20, 1006: 30, 1007: 50, 1008: 40} lhnchanges.del_lhn(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, prob_del=[1, 0]) # Check if only one LHN is left assert len(ind['lhn']) == 1 assert (sorted(ind['lhn'][0]) == [1001, 1002, 1003, 1004] or sorted(ind['lhn'][0]) == [1005, 1006, 1007, 1008]) def test_del_lhn2(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1004: copy.copy(b_dict), 'lhn': [[1001, 1002, 1003, 1004]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 10} lhnchanges.del_lhn(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area) # Check if no LHN is left assert len(ind['lhn']) == 0 # Check if every building id has, at least, one thermal device for n in [1001, 1002, 1003, 1004]: has_th_sup = False # Initial dummy value if ind[n]['boi'] > 0: has_th_sup = True elif ind[n]['chp'] > 0: has_th_sup = True elif ind[n]['hp_aw'] > 0: has_th_sup = True elif ind[n]['hp_ww'] > 0: has_th_sup = True assert has_th_sup is True def test_del_lhn3(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1004: copy.copy(b_dict), 1005: copy.copy(b_dict), 1006: copy.copy(b_dict), 1007: copy.copy(b_dict), 1008: copy.copy(b_dict), 'lhn': [[1001, 1002, 1003, 1004], [1005, 1006, 1007, 1008]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 10, 1005: 20, 1006: 30, 1007: 50, 1008: 40} lhnchanges.del_lhn(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, prob_del=[0, 1]) # Check if no LHN is left assert len(ind['lhn']) == 0 def test_add_lhn(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 20, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1008: copy.copy(b_dict), 'lhn': []} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1008: p8} lhnchanges.add_lhn(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, dict_pos=dict_pos, list_prob_lhn=[1, 0], prob_gen_method=[1, 0, 0]) assert len(ind['lhn'][0]) > 0 count_chp = 0 count_tes = 0 for i in [1001, 1002, 1003, 1008]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp > 0 assert count_tes > 0 def test_add_lhn2(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 20, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1004: copy.copy(b_dict), 1005: copy.copy(b_dict), 1006: copy.copy(b_dict), 1007: copy.copy(b_dict), 1008: copy.copy(b_dict), 'lhn': []} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} lhnchanges.add_lhn(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, dict_pos=dict_pos, list_prob_lhn=[0, 1], prob_gen_method=[1, 0, 0]) assert len(ind['lhn'][0]) > 0 assert len(ind['lhn']) > 0 # Might only generate single LHN count_chp = 0 count_tes = 0 for i in [1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp > 0 assert count_tes > 0 def test_add_lhn_kmeans(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 20, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1004: copy.copy(b_dict), 1005: copy.copy(b_dict), 1006: copy.copy(b_dict), 1007: copy.copy(b_dict), 1008: copy.copy(b_dict), 'lhn': []} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} lhnchanges.add_lhn(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, dict_pos=dict_pos, list_prob_lhn=[0, 1], prob_feed=[0, 1], prob_gen_method=[0, 1, 0]) assert len(ind['lhn'][0]) > 0 assert len(ind['lhn']) > 0 # Might only generate single LHN count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp > 0 assert count_hp_aw == 0 assert count_tes > 0 def test_add_lhn_meanshift(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 0, 'chp': 0, 'hp_aw': 20, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1004: copy.copy(b_dict), 1005: copy.copy(b_dict), 1006: copy.copy(b_dict), 1007: copy.copy(b_dict), 1008: copy.copy(b_dict), 'lhn': []} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} lhnchanges.add_lhn(ind=ind, dict_restr=dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, dict_pos=dict_pos, list_prob_lhn=[0, 1], prob_feed=[0, 1], prob_gen_method=[0, 0, 1]) assert len(ind['lhn'][0]) > 0 assert len(ind['lhn']) > 0 # Might only generate single LHN count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp > 0 assert count_hp_aw == 0 assert count_tes > 0 def test_add_lhn_node(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.add_lhn_node(ind=ind, idx_lhn=idx_lhn, dict_restr=dict_restr, dict_pos=dict_pos, prob_nodes=[1, 0], prob_lhn_mut=1, prob_no_th_sup=1, prob_closest=1) assert len(ind['lhn'][0]) == 4 def test_add_lhn_node2(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.add_lhn_node(ind=ind, idx_lhn=idx_lhn, dict_restr=dict_restr, dict_pos=dict_pos, prob_nodes=[1, 0], prob_lhn_mut=1, prob_no_th_sup=0, prob_closest=1) assert len(ind['lhn'][0]) == 4 def test_add_lhn_node3(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.add_lhn_node(ind=ind, idx_lhn=idx_lhn, dict_restr=dict_restr, dict_pos=dict_pos, prob_nodes=[1, 0], prob_lhn_mut=1, prob_no_th_sup=0, prob_closest=0) assert len(ind['lhn'][0]) == 4 def test_add_lhn_node4(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.add_lhn_node(ind=ind, idx_lhn=idx_lhn, dict_restr=dict_restr, dict_pos=dict_pos, prob_nodes=[0, 1], prob_lhn_mut=1, prob_no_th_sup=1, prob_closest=1) assert len(ind['lhn'][0]) > 4 def test_add_single_lhn(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': []} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} lhnchanges.add_single_lhn(ind, dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, dict_pos=dict_pos, max_dist=None, prob_feed=[0, 1]) assert len(ind['lhn'][0]) >= 2 # Min. two nodes assert len(ind['lhn']) == 1 # Min. one network # Check if number of CHPs is one, number of tes is one # and HPs have been removed count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp >= 2 assert count_hp_aw == 0 assert count_tes >= 2 def test_del_lhn_node(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.del_lhn_node(ind, idx_lhn, dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, dict_pos=dict_pos, prob_nodes=[1, 0], prob_lhn_mut=1) assert len(ind['lhn'][0]) == 2 def test_del_lhn_node2(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003, 1004]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.del_lhn_node(ind, idx_lhn, dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, dict_pos=dict_pos, prob_nodes=[0, 1], prob_lhn_mut=1) assert len(ind['lhn'][0]) == 2 def test_add_lhn_feeder_node(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003, 1004]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.add_lhn_feeder_node(ind, idx_lhn, dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, prob_feed=[1, 0], prob_lhn_mut=1) assert len(ind['lhn'][0]) == 4 # Check if another CHP has been added count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1004]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp == 2 assert count_hp_aw == 0 assert count_tes == 2 def test_del_lhn_feeder(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003, 1004]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.del_lhn_feeder(ind, idx_lhn, prob_feed=[1, 0], prob_lhn_mut=1) assert len(ind['lhn'][0]) == 4 # Check if number of CHPs is one, number of tes is one # and HPs have been removed count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1004]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp == 1 assert count_hp_aw == 0 assert count_tes == 1 def test_del_lhn_feeder(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: copy.copy(b_dict), 1003: copy.copy(b_dict), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003, 1004]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.del_lhn_feeder(ind, idx_lhn, prob_feed=[0, 1], prob_lhn_mut=1) assert len(ind['lhn'][0]) == 4 # Check if number of CHPs is one, number of tes is one # and HPs have been removed count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1004]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp == 1 assert count_hp_aw == 0 assert count_tes == 1 def test_change_lhn_feeder_node(self): dict_restr = {'boi': [1], 'tes': [2], 'chp': [3], 'hp_aw': [4], 'hp_ww': [5], 'eh': [6], 'pv': [7], 'bat': [8]} b_dict = {'boi': 10, 'chp': 20, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 30, 'pv': 0, 'bat': 0} b_dict2 = {'boi': 0, 'chp': 0, 'hp_aw': 0, 'hp_ww': 0, 'eh': 0, 'tes': 0, 'pv': 0, 'bat': 0} ind = {1001: b_dict, 1002: b_dict2, 1003: copy.copy(b_dict2), 1004: copy.copy(b_dict2), 1005: copy.copy(b_dict2), 1006: copy.copy(b_dict2), 1007: copy.copy(b_dict2), 1008: copy.copy(b_dict2), 'lhn': [[1001, 1002, 1003, 1004]]} dict_max_pv_area = {1001: 10, 1002: 20, 1003: 30, 1004: 20, 1005: 60, 1006: 20, 1007: 30, 1008: 40} p1 = point.Point(0, 0) p2 = point.Point(10, 0) p3 = point.Point(20, 0) p4 = point.Point(0, 10) p5 = point.Point(10, 10) p6 = point.Point(20, 10) p7 = point.Point(30, 10) p8 = point.Point(30, 0) dict_pos = {1001: p1, 1002: p2, 1003: p3, 1004: p4, 1005: p5, 1006: p6, 1007: p7, 1008: p8} idx_lhn = 0 lhnchanges.change_lhn_feeder_node(ind, idx_lhn, dict_restr, pv_min=0, dict_max_pv_area=dict_max_pv_area, prob_feed=[1, 0], prob_lhn_mut=1) assert len(ind['lhn'][0]) == 4 # Check if number of CHPs is one, number of tes is one # and HPs have been removed count_chp = 0 count_hp_aw = 0 count_tes = 0 for i in [1001, 1002, 1003, 1004]: if ind[i]['chp'] > 0: count_chp += 1 if ind[i]['hp_aw'] > 0: count_hp_aw += 1 if ind[i]['tes'] > 0: count_tes += 1 assert count_chp == 1 assert count_hp_aw == 0 assert count_tes == 1 assert ind[1001]['chp'] == 0 # CHP moved to other node
31.242468
78
0.343038
4,762
43,552
2.956321
0.032549
0.082398
0.07288
0.063645
0.958162
0.949638
0.949567
0.94637
0.942677
0.939196
0
0.190914
0.532995
43,552
1,393
79
31.264896
0.501254
0.021606
0
0.946827
0
0
0.037721
0
0
0
0
0
0.0506
1
0.017153
false
0
0.003431
0
0.021441
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
bedfd910c6a821fcaffa87af09e3346a2f16cc81
21,949
py
Python
tests/kbcr/clutrr/test_adv.py
Vikicsizmadia/ctp
d88fdfecf4b90ee42e6137a9767226c0d35b19a3
[ "MIT" ]
41
2020-07-14T15:44:20.000Z
2022-03-25T10:33:07.000Z
tests/kbcr/clutrr/test_adv.py
Vikicsizmadia/ctp
d88fdfecf4b90ee42e6137a9767226c0d35b19a3
[ "MIT" ]
3
2020-12-28T05:57:12.000Z
2022-03-09T01:05:06.000Z
tests/kbcr/clutrr/test_adv.py
Vikicsizmadia/ctp
d88fdfecf4b90ee42e6137a9767226c0d35b19a3
[ "MIT" ]
12
2020-07-14T22:56:46.000Z
2022-01-17T02:40:10.000Z
# -*- coding: utf-8 -*- import numpy as np import multiprocessing import torch from torch import nn, Tensor from ctp.kernels import GaussianKernel from ctp.clutrr.models import BatchNeuralKB, BatchHoppy, BatchUnary, BatchMulti from ctp.reformulators import SymbolicReformulator from typing import List, Dict, Tuple, Optional import pytest torch.set_num_threads(multiprocessing.cpu_count()) def encode_relation(facts: List[Tuple[str, str, str]], relation_embeddings: nn.Embedding, relation_to_idx: Dict[str, int], device: Optional[torch.device] = None) -> Tensor: indices_np = np.array([relation_to_idx[r] for _, r, _ in facts], dtype=np.int64) indices = torch.from_numpy(indices_np) if device is not None: indices = indices.to(device) return relation_embeddings(indices) def encode_arguments(facts: List[Tuple[str, str, str]], entity_embeddings: nn.Embedding, entity_to_idx: Dict[str, int], device: Optional[torch.device] = None) -> Tuple[Tensor, Tensor]: indices_np = np.array([[entity_to_idx[s], entity_to_idx[o]] for s, _, o in facts], dtype=np.int64) indices = torch.from_numpy(indices_np) if device is not None: indices = indices.to(device) emb = entity_embeddings(indices) return emb[:, 0, :], emb[:, 1, :] @pytest.mark.light def test_adv_v1(): embedding_size = 20 torch.manual_seed(0) rs = np.random.RandomState(0) triples = [ ('a', 'p', 'b'), ('b', 'q', 'c'), ('c', 'p', 'd'), ('d', 'q', 'e'), ('e', 'p', 'f'), ('f', 'q', 'g'), ('g', 'p', 'h'), ('h', 'q', 'i'), ('i', 'p', 'l'), ('l', 'q', 'm'), ('m', 'p', 'n'), ('n', 'q', 'o'), ('o', 'p', 'p'), ('p', 'q', 'q'), ('q', 'p', 'r'), ('r', 'q', 's'), ('s', 'p', 't'), ('t', 'q', 'u'), ('u', 'p', 'v'), ('v', 'q', 'w'), ('x', 'r', 'y'), ('x', 's', 'y') ] entity_lst = sorted({e for (e, _, _) in triples} | {e for (_, _, e) in triples}) predicate_lst = sorted({p for (_, p, _) in triples}) nb_entities = len(entity_lst) nb_predicates = len(predicate_lst) entity_to_index = {e: i for i, e in enumerate(entity_lst)} predicate_to_index = {p: i for i, p in enumerate(predicate_lst)} with torch.no_grad(): kernel = GaussianKernel() entity_embeddings = nn.Embedding(nb_entities, embedding_size * 2, sparse=True) predicate_embeddings = nn.Embedding(nb_predicates, embedding_size * 2, sparse=True) rel_emb = encode_relation(facts=triples, relation_embeddings=predicate_embeddings, relation_to_idx=predicate_to_index) arg1_emb, arg2_emb = encode_arguments(facts=triples, entity_embeddings=entity_embeddings, entity_to_idx=entity_to_index) batch_size = 12 fact_size = rel_emb.shape[0] entity_size = entity_embeddings.weight.shape[0] rel_emb = rel_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg1_emb = arg1_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg2_emb = arg2_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) nb_facts = torch.tensor([fact_size for _ in range(batch_size)], dtype=torch.long) emb = entity_embeddings.weight.view(1, entity_size, -1).repeat(batch_size, 1, 1) _nb_entities = torch.tensor([entity_size for _ in range(batch_size)], dtype=torch.long) facts = [rel_emb, arg1_emb, arg2_emb] model = BatchNeuralKB(kernel=kernel) indices = torch.from_numpy(np.array([predicate_to_index['p'], predicate_to_index['q']])) reformulator = SymbolicReformulator(predicate_embeddings, indices) hoppy0 = BatchHoppy(model, hops_lst=[(reformulator, False)], depth=0) hoppy1 = BatchHoppy(model, hops_lst=[(reformulator, False)], depth=1) hoppy2 = BatchHoppy(model, hops_lst=[(reformulator, False)], depth=2) hoppy3 = BatchHoppy(model, hops_lst=[(reformulator, False)], depth=3) xs_np = rs.randint(nb_entities, size=batch_size) xp_np = rs.randint(nb_predicates, size=batch_size) xo_np = rs.randint(nb_entities, size=batch_size) xs_np[0] = entity_to_index['a'] xp_np[0] = predicate_to_index['r'] xo_np[0] = entity_to_index['c'] xs_np[1] = entity_to_index['a'] xp_np[1] = predicate_to_index['r'] xo_np[1] = entity_to_index['e'] xs_np[2] = entity_to_index['a'] xp_np[2] = predicate_to_index['r'] xo_np[2] = entity_to_index['g'] xs_np[3] = entity_to_index['a'] xp_np[3] = predicate_to_index['r'] xo_np[3] = entity_to_index['i'] xs_np[4] = entity_to_index['a'] xp_np[4] = predicate_to_index['r'] xo_np[4] = entity_to_index['m'] xs_np[5] = entity_to_index['a'] xp_np[5] = predicate_to_index['r'] xo_np[5] = entity_to_index['o'] xs_np[6] = entity_to_index['a'] xp_np[6] = predicate_to_index['r'] xo_np[6] = entity_to_index['q'] xs_np[7] = entity_to_index['a'] xp_np[7] = predicate_to_index['r'] xo_np[7] = entity_to_index['s'] xs_np[8] = entity_to_index['a'] xp_np[8] = predicate_to_index['r'] xo_np[8] = entity_to_index['u'] xs = torch.from_numpy(xs_np) xp = torch.from_numpy(xp_np) xo = torch.from_numpy(xo_np) xs_emb = entity_embeddings(xs) xp_emb = predicate_embeddings(xp) xo_emb = entity_embeddings(xo) inf0 = hoppy0.score(xp_emb, xs_emb, xo_emb, facts=facts, nb_facts=nb_facts, entity_embeddings=emb, nb_entities=_nb_entities) inf1 = hoppy1.score(xp_emb, xs_emb, xo_emb, facts=facts, nb_facts=nb_facts, entity_embeddings=emb, nb_entities=_nb_entities) inf2 = hoppy2.score(xp_emb, xs_emb, xo_emb, facts=facts, nb_facts=nb_facts, entity_embeddings=emb, nb_entities=_nb_entities) inf3 = hoppy3.score(xp_emb, xs_emb, xo_emb, facts=facts, nb_facts=nb_facts, entity_embeddings=emb, nb_entities=_nb_entities) inf0_np = inf0.cpu().numpy() inf1_np = inf1.cpu().numpy() inf2_np = inf2.cpu().numpy() inf3_np = inf3.cpu().numpy() np.testing.assert_allclose(inf0_np, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], rtol=1e-1, atol=1e-1) np.testing.assert_allclose(inf1_np, [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], rtol=1e-1, atol=1e-1) np.testing.assert_allclose(inf2_np, [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], rtol=1e-1, atol=1e-1) np.testing.assert_allclose(inf3_np, [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], rtol=1e-1, atol=1e-1) print(inf3_np) @pytest.mark.light def test_adv_v2(): embedding_size = 20 torch.manual_seed(0) rs = np.random.RandomState(0) triples = [ ('a', 'p', 'b'), ('a', 'p', 'd'), ('c', 'p', 'd'), ('e', 'q', 'f'), ('f', 'p', 'c'), ('x', 'r', 'y') ] entity_lst = sorted({e for (e, _, _) in triples} | {e for (_, _, e) in triples}) predicate_lst = sorted({p for (_, p, _) in triples}) nb_entities = len(entity_lst) nb_predicates = len(predicate_lst) entity_to_index = {e: i for i, e in enumerate(entity_lst)} predicate_to_index = {p: i for i, p in enumerate(predicate_lst)} with torch.no_grad(): kernel = GaussianKernel() entity_embeddings = nn.Embedding(nb_entities, embedding_size * 2, sparse=True) predicate_embeddings = nn.Embedding(nb_predicates, embedding_size * 2, sparse=True) rel_emb = encode_relation(facts=triples, relation_embeddings=predicate_embeddings, relation_to_idx=predicate_to_index) arg1_emb, arg2_emb = encode_arguments(facts=triples, entity_embeddings=entity_embeddings, entity_to_idx=entity_to_index) batch_size = 6 fact_size = rel_emb.shape[0] entity_size = entity_embeddings.weight.shape[0] rel_emb = rel_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg1_emb = arg1_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg2_emb = arg2_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) nb_facts = torch.tensor([fact_size for _ in range(batch_size)], dtype=torch.long) emb = entity_embeddings.weight.view(1, entity_size, -1).repeat(batch_size, 1, 1) _nb_entities = torch.tensor([entity_size for _ in range(batch_size)], dtype=torch.long) facts = [rel_emb, arg1_emb, arg2_emb] model = BatchNeuralKB(kernel=kernel) indices = torch.from_numpy(np.array([predicate_to_index['p']])) reformulator = SymbolicReformulator(predicate_embeddings, indices) unary = BatchUnary(model, hops_lst=[(reformulator, False)]) xs_np = rs.randint(nb_entities, size=batch_size) xp_np = rs.randint(nb_predicates, size=batch_size) xo_np = rs.randint(nb_entities, size=batch_size) xs_np[0] = entity_to_index['a'] xp_np[0] = predicate_to_index['r'] xo_np[0] = entity_to_index['a'] xs_np[1] = entity_to_index['a'] xp_np[1] = predicate_to_index['r'] xo_np[1] = entity_to_index['b'] xs_np[2] = entity_to_index['a'] xp_np[2] = predicate_to_index['r'] xo_np[2] = entity_to_index['c'] xs_np[3] = entity_to_index['a'] xp_np[3] = predicate_to_index['r'] xo_np[3] = entity_to_index['d'] xs_np[4] = entity_to_index['a'] xp_np[4] = predicate_to_index['r'] xo_np[4] = entity_to_index['e'] xs_np[5] = entity_to_index['a'] xp_np[5] = predicate_to_index['r'] xo_np[5] = entity_to_index['f'] xs = torch.from_numpy(xs_np) xp = torch.from_numpy(xp_np) xo = torch.from_numpy(xo_np) xs_emb = entity_embeddings(xs) xp_emb = predicate_embeddings(xp) xo_emb = entity_embeddings(xo) inf = unary.score(xp_emb, xs_emb, xo_emb, facts=facts, nb_facts=nb_facts, entity_embeddings=emb, nb_entities=_nb_entities) inf_np = inf.cpu().numpy() print(inf_np) np.testing.assert_allclose(inf_np, [1] * batch_size, rtol=1e-2, atol=1e-2) @pytest.mark.light def test_adv_v3(): embedding_size = 20 torch.manual_seed(0) rs = np.random.RandomState(0) triples = [ ('a', 'p', 'b'), ('a', 'p', 'd'), ('c', 'p', 'd'), ('e', 'q', 'f'), ('f', 'p', 'c'), ('x', 'r', 'y') ] entity_lst = sorted({e for (e, _, _) in triples} | {e for (_, _, e) in triples}) predicate_lst = sorted({p for (_, p, _) in triples}) nb_entities = len(entity_lst) nb_predicates = len(predicate_lst) entity_to_index = {e: i for i, e in enumerate(entity_lst)} predicate_to_index = {p: i for i, p in enumerate(predicate_lst)} with torch.no_grad(): kernel = GaussianKernel() entity_embeddings = nn.Embedding(nb_entities, embedding_size * 2, sparse=True) predicate_embeddings = nn.Embedding(nb_predicates, embedding_size * 2, sparse=True) rel_emb = encode_relation(facts=triples, relation_embeddings=predicate_embeddings, relation_to_idx=predicate_to_index) arg1_emb, arg2_emb = encode_arguments(facts=triples, entity_embeddings=entity_embeddings, entity_to_idx=entity_to_index) batch_size = 6 fact_size = rel_emb.shape[0] entity_size = entity_embeddings.weight.shape[0] rel_emb = rel_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg1_emb = arg1_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg2_emb = arg2_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) nb_facts = torch.tensor([fact_size for _ in range(batch_size)], dtype=torch.long) emb = entity_embeddings.weight.view(1, entity_size, -1).repeat(batch_size, 1, 1) _nb_entities = torch.tensor([entity_size for _ in range(batch_size)], dtype=torch.long) facts = [rel_emb, arg1_emb, arg2_emb] model = BatchNeuralKB(kernel=kernel) indices = torch.from_numpy(np.array([predicate_to_index['p']])) reformulator = SymbolicReformulator(predicate_embeddings, indices) unary = BatchUnary(model, hops_lst=[(reformulator, True)]) xs_np = rs.randint(nb_entities, size=batch_size) xp_np = rs.randint(nb_predicates, size=batch_size) xo_np = rs.randint(nb_entities, size=batch_size) xs_np[0] = entity_to_index['a'] xp_np[0] = predicate_to_index['r'] xo_np[0] = entity_to_index['a'] xs_np[1] = entity_to_index['a'] xp_np[1] = predicate_to_index['r'] xo_np[1] = entity_to_index['b'] xs_np[2] = entity_to_index['a'] xp_np[2] = predicate_to_index['r'] xo_np[2] = entity_to_index['c'] xs_np[3] = entity_to_index['a'] xp_np[3] = predicate_to_index['r'] xo_np[3] = entity_to_index['d'] xs_np[4] = entity_to_index['a'] xp_np[4] = predicate_to_index['r'] xo_np[4] = entity_to_index['e'] xs_np[5] = entity_to_index['a'] xp_np[5] = predicate_to_index['r'] xo_np[5] = entity_to_index['f'] xs = torch.from_numpy(xs_np) xp = torch.from_numpy(xp_np) xo = torch.from_numpy(xo_np) xs_emb = entity_embeddings(xs) xp_emb = predicate_embeddings(xp) xo_emb = entity_embeddings(xo) inf = unary.score(xp_emb, xs_emb, xo_emb, facts=facts, nb_facts=nb_facts, entity_embeddings=emb, nb_entities=_nb_entities) inf_np = inf.cpu().numpy() print(inf_np) np.testing.assert_allclose(inf_np, [0] * batch_size, rtol=1e-2, atol=1e-2) @pytest.mark.light def test_adv_v4(): embedding_size = 20 torch.manual_seed(0) rs = np.random.RandomState(0) triples = [ ('a', 'p', 'b'), ('a', 'p', 'd'), ('c', 'p', 'd'), ('e', 'q', 'f'), ('f', 'p', 'c'), ('x', 'r', 'y') ] entity_lst = sorted({e for (e, _, _) in triples} | {e for (_, _, e) in triples}) predicate_lst = sorted({p for (_, p, _) in triples}) nb_entities = len(entity_lst) nb_predicates = len(predicate_lst) entity_to_index = {e: i for i, e in enumerate(entity_lst)} predicate_to_index = {p: i for i, p in enumerate(predicate_lst)} with torch.no_grad(): kernel = GaussianKernel() entity_embeddings = nn.Embedding(nb_entities, embedding_size * 2, sparse=True) predicate_embeddings = nn.Embedding(nb_predicates, embedding_size * 2, sparse=True) rel_emb = encode_relation(facts=triples, relation_embeddings=predicate_embeddings, relation_to_idx=predicate_to_index) arg1_emb, arg2_emb = encode_arguments(facts=triples, entity_embeddings=entity_embeddings, entity_to_idx=entity_to_index) batch_size = 6 fact_size = rel_emb.shape[0] entity_size = entity_embeddings.weight.shape[0] rel_emb = rel_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg1_emb = arg1_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg2_emb = arg2_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) nb_facts = torch.tensor([fact_size for _ in range(batch_size)], dtype=torch.long) emb = entity_embeddings.weight.view(1, entity_size, -1).repeat(batch_size, 1, 1) _nb_entities = torch.tensor([entity_size for _ in range(batch_size)], dtype=torch.long) facts = [rel_emb, arg1_emb, arg2_emb] model = BatchNeuralKB(kernel=kernel) indices = torch.from_numpy(np.array([predicate_to_index['p']])) reformulator = SymbolicReformulator(predicate_embeddings, indices) unary = BatchUnary(model, hops_lst=[(reformulator, False)]) xs_np = rs.randint(nb_entities, size=batch_size) xp_np = rs.randint(nb_predicates, size=batch_size) xo_np = rs.randint(nb_entities, size=batch_size) xs_np[0] = entity_to_index['b'] xp_np[0] = predicate_to_index['r'] xo_np[0] = entity_to_index['a'] xs_np[1] = entity_to_index['b'] xp_np[1] = predicate_to_index['r'] xo_np[1] = entity_to_index['b'] xs_np[2] = entity_to_index['b'] xp_np[2] = predicate_to_index['r'] xo_np[2] = entity_to_index['c'] xs_np[3] = entity_to_index['b'] xp_np[3] = predicate_to_index['r'] xo_np[3] = entity_to_index['d'] xs_np[4] = entity_to_index['b'] xp_np[4] = predicate_to_index['r'] xo_np[4] = entity_to_index['e'] xs_np[5] = entity_to_index['b'] xp_np[5] = predicate_to_index['r'] xo_np[5] = entity_to_index['f'] xs = torch.from_numpy(xs_np) xp = torch.from_numpy(xp_np) xo = torch.from_numpy(xo_np) xs_emb = entity_embeddings(xs) xp_emb = predicate_embeddings(xp) xo_emb = entity_embeddings(xo) inf = unary.score(xp_emb, xs_emb, xo_emb, facts=facts, nb_facts=nb_facts, entity_embeddings=emb, nb_entities=_nb_entities) inf_np = inf.cpu().numpy() print(inf_np) np.testing.assert_allclose(inf_np, [0] * batch_size, rtol=1e-2, atol=1e-2) @pytest.mark.light def test_adv_v5(): embedding_size = 20 torch.manual_seed(0) rs = np.random.RandomState(0) triples = [ ('a', 'p', 'b'), ('a', 'p', 'd'), ('c', 'p', 'd'), ('e', 'q', 'f'), ('f', 'p', 'c'), ('x', 'r', 'y') ] entity_lst = sorted({e for (e, _, _) in triples} | {e for (_, _, e) in triples}) predicate_lst = sorted({p for (_, p, _) in triples}) nb_entities = len(entity_lst) nb_predicates = len(predicate_lst) entity_to_index = {e: i for i, e in enumerate(entity_lst)} predicate_to_index = {p: i for i, p in enumerate(predicate_lst)} with torch.no_grad(): kernel = GaussianKernel() entity_embeddings = nn.Embedding(nb_entities, embedding_size * 2, sparse=True) predicate_embeddings = nn.Embedding(nb_predicates, embedding_size * 2, sparse=True) rel_emb = encode_relation(facts=triples, relation_embeddings=predicate_embeddings, relation_to_idx=predicate_to_index) arg1_emb, arg2_emb = encode_arguments(facts=triples, entity_embeddings=entity_embeddings, entity_to_idx=entity_to_index) batch_size = 6 fact_size = rel_emb.shape[0] entity_size = entity_embeddings.weight.shape[0] rel_emb = rel_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg1_emb = arg1_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) arg2_emb = arg2_emb.view(1, fact_size, -1).repeat(batch_size, 1, 1) nb_facts = torch.tensor([fact_size for _ in range(batch_size)], dtype=torch.long) emb = entity_embeddings.weight.view(1, entity_size, -1).repeat(batch_size, 1, 1) _nb_entities = torch.tensor([entity_size for _ in range(batch_size)], dtype=torch.long) facts = [rel_emb, arg1_emb, arg2_emb] model = BatchNeuralKB(kernel=kernel) indices = torch.from_numpy(np.array([predicate_to_index['p']])) reformulator = SymbolicReformulator(predicate_embeddings, indices) unary = BatchUnary(model, hops_lst=[(reformulator, True)]) xs_np = rs.randint(nb_entities, size=batch_size) xp_np = rs.randint(nb_predicates, size=batch_size) xo_np = rs.randint(nb_entities, size=batch_size) xs_np[0] = entity_to_index['b'] xp_np[0] = predicate_to_index['r'] xo_np[0] = entity_to_index['a'] xs_np[1] = entity_to_index['b'] xp_np[1] = predicate_to_index['r'] xo_np[1] = entity_to_index['b'] xs_np[2] = entity_to_index['b'] xp_np[2] = predicate_to_index['r'] xo_np[2] = entity_to_index['c'] xs_np[3] = entity_to_index['b'] xp_np[3] = predicate_to_index['r'] xo_np[3] = entity_to_index['d'] xs_np[4] = entity_to_index['b'] xp_np[4] = predicate_to_index['r'] xo_np[4] = entity_to_index['e'] xs_np[5] = entity_to_index['b'] xp_np[5] = predicate_to_index['r'] xo_np[5] = entity_to_index['f'] xs = torch.from_numpy(xs_np) xp = torch.from_numpy(xp_np) xo = torch.from_numpy(xo_np) xs_emb = entity_embeddings(xs) xp_emb = predicate_embeddings(xp) xo_emb = entity_embeddings(xo) inf = unary.score(xp_emb, xs_emb, xo_emb, facts=facts, nb_facts=nb_facts, entity_embeddings=emb, nb_entities=_nb_entities) inf_np = inf.cpu().numpy() print(inf_np) np.testing.assert_allclose(inf_np, [1] * batch_size, rtol=1e-2, atol=1e-2) if __name__ == '__main__': pytest.main([__file__]) # test_adv_v2() # test_adv_v3() # test_adv_v4() # test_adv_v5()
35.00638
103
0.591644
3,100
21,949
3.874516
0.052903
0.07285
0.082258
0.046707
0.923487
0.910748
0.892848
0.878195
0.878195
0.878195
0
0.024597
0.270217
21,949
626
104
35.0623
0.725247
0.003508
0
0.800448
0
0
0.011479
0
0
0
0
0
0.017937
1
0.015695
false
0
0.020179
0
0.040359
0.011211
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
830c83090a7f19d6fb136c8e14250a6e4cb1cb49
122
py
Python
classification/serializers/__init__.py
JeffersonBC/eshop-index-back
66a11ad2ee86b9cd4dd49bcb34f676db3281153b
[ "MIT" ]
null
null
null
classification/serializers/__init__.py
JeffersonBC/eshop-index-back
66a11ad2ee86b9cd4dd49bcb34f676db3281153b
[ "MIT" ]
null
null
null
classification/serializers/__init__.py
JeffersonBC/eshop-index-back
66a11ad2ee86b9cd4dd49bcb34f676db3281153b
[ "MIT" ]
null
null
null
from .recomendation import * from .review import * from .tag import * from .tag_group import * from .vote_review import *
20.333333
28
0.754098
17
122
5.294118
0.411765
0.444444
0.288889
0
0
0
0
0
0
0
0
0
0.163934
122
5
29
24.4
0.882353
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
55cd4441c5c6f08bd441ae95507644bdbd8680fc
37,966
py
Python
src/genie/libs/parser/junos/tests/test_show_ted.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
2
2021-01-27T03:37:39.000Z
2021-01-27T03:40:50.000Z
src/genie/libs/parser/junos/tests/test_show_ted.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/junos/tests/test_show_ted.py
filippohronsky/genieparser
85e4b7a8f101e5cd44d4d7116e0e7a1af13fe9df
[ "Apache-2.0" ]
null
null
null
# Python import unittest from unittest.mock import Mock # ATS from pyats.topology import Device, loader # Metaparser from genie.metaparser.util.exceptions import SchemaEmptyParserError from genie.libs.parser.junos.show_ted import ShowTedDatabaseExtensive ''' Unit tests for: * 'show ted database extensive' * 'show ted database extensive {node_id}' ''' class test_show_ted_database(unittest.TestCase): device = Device(name='aDevice') empty_output = {'execute.return_value': ''} golden_output = {'execute.return_value': ''' show ted database extensive TED database: 0 ISIS nodes 6 INET nodes NodeID: 10.4.1.1 Type: Rtr, Age: 1024 secs, LinkIn: 0, LinkOut: 1 Protocol: OSPF(0.0.0.4) To: 172.16.1.1, Local: 10.4.0.2, Remote: 10.4.0.1 Local interface index: 0, Remote interface index: 0 Color: 0 <none> Metric: 1 Static BW: 2000Mbps Reservable BW: 0bps Available BW [priority] bps: [0] 10bps [1] 10bps [2] 0bps [3] 0bps [4] 10bps [5] 0bps [6] 0bps [7] 0bps Interface Switching Capability Descriptor(1): Switching type: Packet Encoding type: Packet Maximum LSP BW [priority] bps: [0] 0bps [1] 0bps [2] 0bps [3] 0bps [4] 0bps [5] 0bps [6] 0bps [7] 0bps P2P Adjacency-SID: IPV4, SID: 12345, Flags: 0x24, Weight: 0 Prefixes: 10.4.1.1/32 Flags: 0x60 Prefix-SID: SID: 1234, Flags: 0x00, Algo: 0 SPRING-Capabilities: SRGB block [Start: 12000, Range: 3000, Flags: 0x00] SPRING-Algorithms: Algo: 0 Algo: 1 NodeID: 10.16.2.2-1 Type: Net, Age: 1024 secs, LinkIn: 0, LinkOut: 2 Protocol: OSPF(0.0.0.4) To: 10.16.2.34, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 Metric: 0 Interface Switching Capability Descriptor(1): Switching type: Packet Encoding type: Packet Maximum LSP BW [priority] bps: [0] 0bps [1] 0bps [2] 0bps [3] 0bps [4] 0bps [5] 0bps [6] 1000bps [7] 0bps To: 10.16.2.42, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 Metric: 0 Interface Switching Capability Descriptor(1): Switching type: Packet Encoding type: Packet Maximum LSP BW [priority] bps: [0] 0bps [1] 0bps [2] 0bps [3] 0bps [4] 0bps [5] 0bps [6] 0bps [7] 0bps NodeID: 172.16.1.4-1 Type: Net, Age: 2048 secs, LinkIn: 0, LinkOut: 2 Protocol: OSPF(0.0.0.4) To: 172.16.85.48, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 Metric: 0 Interface Switching Capability Descriptor(1): Switching type: Packet Encoding type: Packet Maximum LSP BW [priority] bps: [0] 0bps [1] 0bps [2] 0bps [3] 0bps [4] 0bps [5] 0bps [6] 0bps [7] 0bps To: 172.16.85.52, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 Metric: 0 Interface Switching Capability Descriptor(1): Switching type: Packet Encoding type: Packet Maximum LSP BW [priority] bps: [0] 0bps [1] 0bps [2] 0bps [3] 0bps [4] 0bps [5] 0bps [6] 0bps [7] 0bps NodeID: 10.36.3.3 Type: ---, Age: 3440 secs, LinkIn: 1, LinkOut: 0 NodeID: 10.64.4.4 Type: ---, Age: 2560 secs, LinkIn: 1, LinkOut: 0 '''} golden_parsed_output = { 'isis_nodes': 0, 'inet_nodes': 6, 'node': { '10.4.1.1': { 'type': 'Rtr', 'age': 1024, 'link_in': 0, 'link_out': 1, 'protocol': { 'OSPF(0.0.0.4)': { 'to': { '172.16.1.1': { 'local': { '10.4.0.2': { 'remote': { '10.4.0.1': { 'local_interface_index': 0, 'remote_interface_index': 0, 'color': '0 <none>', 'metric': 1, 'static_bw': '2000Mbps', 'reservable_bw': '0bps', 'available_bw': { 0: { 'bw': '10bps' }, 1: { 'bw': '10bps' }, 2: { 'bw': '0bps' }, 3: { 'bw': '0bps' }, 4: { 'bw': '10bps' }, 5: { 'bw': '0bps' }, 6: { 'bw': '0bps' }, 7: { 'bw': '0bps' } }, 'interface_switching_capability_descriptor': { '1': { 'switching_type': 'Packet', 'encoding_type': 'Packet', 'maximum_lsp_bw': { 0: { 'bw': '0bps' }, 1: { 'bw': '0bps' }, 2: { 'bw': '0bps' }, 3: { 'bw': '0bps' }, 4: { 'bw': '0bps' }, 5: { 'bw': '0bps' }, 6: { 'bw': '0bps' }, 7: { 'bw': '0bps' } } } }, 'p2p_adj_sid': { 'sid': { '12345': { 'address_family': 'IPV4', 'flags': '0x24', 'weight': 0 } } } } } } } } }, 'prefixes': { '10.4.1.1/32': { 'flags': '0x60', 'prefix_sid': { 1234: { 'flags': '0x00', 'algo': 0 } } } }, 'spring_capabilities': { 'srgb_block': { 'start': 12000, 'range': 3000, 'flags': '0x00' } }, 'spring_algorithms': ['0', '1'] } } }, '10.16.2.2-1': { 'type': 'Net', 'age': 1024, 'link_in': 0, 'link_out': 2, 'protocol': { 'OSPF(0.0.0.4)': { 'to': { '10.16.2.34': { 'local': { '0.0.0.0': { 'remote': { '0.0.0.0': { 'local_interface_index': 0, 'remote_interface_index': 0, 'metric': 0, 'interface_switching_capability_descriptor': { '1': { 'switching_type': 'Packet', 'encoding_type': 'Packet', 'maximum_lsp_bw': { 0: { 'bw': '0bps' }, 1: { 'bw': '0bps' }, 2: { 'bw': '0bps' }, 3: { 'bw': '0bps' }, 4: { 'bw': '0bps' }, 5: { 'bw': '0bps' }, 6: { 'bw': '1000bps' }, 7: { 'bw': '0bps' } } } } } } } } }, '10.16.2.42': { 'local': { '0.0.0.0': { 'remote': { '0.0.0.0': { 'local_interface_index': 0, 'remote_interface_index': 0, 'metric': 0, 'interface_switching_capability_descriptor': { '1': { 'switching_type': 'Packet', 'encoding_type': 'Packet', 'maximum_lsp_bw': { 0: { 'bw': '0bps' }, 1: { 'bw': '0bps' }, 2: { 'bw': '0bps' }, 3: { 'bw': '0bps' }, 4: { 'bw': '0bps' }, 5: { 'bw': '0bps' }, 6: { 'bw': '0bps' }, 7: { 'bw': '0bps' } } } } } } } } } } } } }, '172.16.1.4-1': { 'type': 'Net', 'age': 2048, 'link_in': 0, 'link_out': 2, 'protocol': { 'OSPF(0.0.0.4)': { 'to': { '172.16.85.48': { 'local': { '0.0.0.0': { 'remote': { '0.0.0.0': { 'local_interface_index': 0, 'remote_interface_index': 0, 'metric': 0, 'interface_switching_capability_descriptor': { '1': { 'switching_type': 'Packet', 'encoding_type': 'Packet', 'maximum_lsp_bw': { 0: { 'bw': '0bps' }, 1: { 'bw': '0bps' }, 2: { 'bw': '0bps' }, 3: { 'bw': '0bps' }, 4: { 'bw': '0bps' }, 5: { 'bw': '0bps' }, 6: { 'bw': '0bps' }, 7: { 'bw': '0bps' } } } } } } } } }, '172.16.85.52': { 'local': { '0.0.0.0': { 'remote': { '0.0.0.0': { 'local_interface_index': 0, 'remote_interface_index': 0, 'metric': 0, 'interface_switching_capability_descriptor': { '1': { 'switching_type': 'Packet', 'encoding_type': 'Packet', 'maximum_lsp_bw': { 0: { 'bw': '0bps' }, 1: { 'bw': '0bps' }, 2: { 'bw': '0bps' }, 3: { 'bw': '0bps' }, 4: { 'bw': '0bps' }, 5: { 'bw': '0bps' }, 6: { 'bw': '0bps' }, 7: { 'bw': '0bps' } } } } } } } } } } } } }, '10.36.3.3': { 'type': '---', 'age': 3440, 'link_in': 1, 'link_out': 0 }, '10.64.4.4': { 'type': '---', 'age': 2560, 'link_in': 1, 'link_out': 0 } } } golden_output_node_id = {'execute.return_value': ''' show ted database extensive 10.4.1.1 TED database: 0 ISIS nodes 13 INET nodes NodeID: 10.4.1.1 Type: Rtr, Age: 2048 secs, LinkIn: 6, LinkOut: 2 Protocol: OSPF(0.0.0.4) To: 172.16.1.1, Local: 172.16.1.2, Remote: 172.16.1.3 Local interface index: 123, Remote interface index: 0 Color: 0 <none> Metric: 4 Static BW: 500Mbps Reservable BW: 500Mbps Available BW [priority] bps: [0] 500Mbps [1] 500Mbps [2] 500Mbps [3] 500Mbps [4] 500Mbps [5] 500Mbps [6] 500Mbps [7] 500Mbps Interface Switching Capability Descriptor(1): Switching type: Packet Encoding type: Packet Maximum LSP BW [priority] bps: [0] 500Mbps [1] 500Mbps [2] 500Mbps [3] 500Mbps [4] 500Mbps [5] 500Mbps [6] 500Mbps [7] 500Mbps P2P Adjacency-SID: IPV4, SID: 8, Flags: 0x35, Weight: 0 To: 172.16.1.4, Local: 172.16.1.5, Remote: 172.16.1.6 Local interface index: 456, Remote interface index: 0 Color: 0x2 blue Metric: 350 Static BW: 500Mbps Reservable BW: 500Mbps Available BW [priority] bps: [0] 500Mbps [1] 500Mbps [2] 500Mbps [3] 500Mbps [4] 500Mbps [5] 500Mbps [6] 500Mbps [7] 500Mbps Interface Switching Capability Descriptor(1): Switching type: Packet Encoding type: Packet Maximum LSP BW [priority] bps: [0] 500Mbps [1] 500Mbps [2] 500Mbps [3] 500Mbps [4] 500Mbps [5] 500Mbps [6] 500Mbps [7] 500Mbps P2P Adjacency-SID: IPV4, SID: 39, Flags: 0x40, Weight: 0 Prefixes: 192.168.0.1/32 Flags: 0x30 Prefix-SID: SID: 42, Flags: 0x00, Algo: 0 SPRING-Capabilities: SRGB block [Start: 8000, Range: 6000, Flags: 0x00] SPRING-Algorithms: Algo: 0 '''} golden_parsed_output_node_id = { 'isis_nodes': 0, 'inet_nodes': 13, 'node': { '10.4.1.1': { 'type': 'Rtr', 'age': 2048, 'link_in': 6, 'link_out': 2, 'protocol': { 'OSPF(0.0.0.4)': { 'to': { '172.16.1.1': { 'local': { '172.16.1.2': { 'remote': { '172.16.1.3': { 'local_interface_index': 123, 'remote_interface_index': 0, 'color': '0 <none>', 'metric': 4, 'static_bw': '500Mbps', 'reservable_bw': '500Mbps', 'available_bw': { 0: { 'bw': '500Mbps' }, 1: { 'bw': '500Mbps' }, 2: { 'bw': '500Mbps' }, 3: { 'bw': '500Mbps' }, 4: { 'bw': '500Mbps' }, 5: { 'bw': '500Mbps' }, 6: { 'bw': '500Mbps' }, 7: { 'bw': '500Mbps' } }, 'interface_switching_capability_descriptor': { '1': { 'switching_type': 'Packet', 'encoding_type': 'Packet', 'maximum_lsp_bw': { 0: { 'bw': '500Mbps' }, 1: { 'bw': '500Mbps' }, 2: { 'bw': '500Mbps' }, 3: { 'bw': '500Mbps' }, 4: { 'bw': '500Mbps' }, 5: { 'bw': '500Mbps' }, 6: { 'bw': '500Mbps' }, 7: { 'bw': '500Mbps' } } } }, 'p2p_adj_sid': { 'sid': { '8': { 'address_family': 'IPV4', 'flags': '0x35', 'weight': 0 } } } } } } } }, '172.16.1.4': { 'local': { '172.16.1.5': { 'remote': { '172.16.1.6': { 'local_interface_index': 456, 'remote_interface_index': 0, 'color': '0x2 blue', 'metric': 350, 'static_bw': '500Mbps', 'reservable_bw': '500Mbps', 'available_bw': { 0: { 'bw': '500Mbps' }, 1: { 'bw': '500Mbps' }, 2: { 'bw': '500Mbps' }, 3: { 'bw': '500Mbps' }, 4: { 'bw': '500Mbps' }, 5: { 'bw': '500Mbps' }, 6: { 'bw': '500Mbps' }, 7: { 'bw': '500Mbps' } }, 'interface_switching_capability_descriptor': { '1': { 'switching_type': 'Packet', 'encoding_type': 'Packet', 'maximum_lsp_bw': { 0: { 'bw': '500Mbps' }, 1: { 'bw': '500Mbps' }, 2: { 'bw': '500Mbps' }, 3: { 'bw': '500Mbps' }, 4: { 'bw': '500Mbps' }, 5: { 'bw': '500Mbps' }, 6: { 'bw': '500Mbps' }, 7: { 'bw': '500Mbps' } } } }, 'p2p_adj_sid': { 'sid': { '39': { 'address_family': 'IPV4', 'flags': '0x40', 'weight': 0 } } } } } } } } }, 'prefixes': { '192.168.0.1/32': { 'flags': '0x30', 'prefix_sid': { 42: { 'flags': '0x00', 'algo': 0 } } } }, 'spring_capabilities': { 'srgb_block': { 'start': 8000, 'range': 6000, 'flags': '0x00' } }, 'spring_algorithms': ['0'] } } } } } def test_show_ted_database_extensive_empty(self): self.device = Mock(**self.empty_output) obj = ShowTedDatabaseExtensive(device=self.device) with self.assertRaises(SchemaEmptyParserError): obj.parse() def test_show_ted_database_extensive(self): self.device = Mock(**self.golden_output) obj = ShowTedDatabaseExtensive(device=self.device) parsed_output = obj.parse() self.assertEqual(parsed_output, self.golden_parsed_output) def test_show_ted_database_extensive_node_id(self): self.device = Mock(**self.golden_output_node_id) obj = ShowTedDatabaseExtensive(device=self.device) parsed_output = obj.parse(node_id='10.34.2.250') self.assertEqual(parsed_output, self.golden_parsed_output_node_id) if __name__ == '__main__': unittest.main()
52.877437
94
0.176763
1,655
37,966
3.948036
0.09426
0.01959
0.018365
0.009795
0.889654
0.856443
0.818641
0.782828
0.756964
0.722681
0
0.129553
0.757046
37,966
717
95
52.951186
0.578816
0.000553
0
0.567723
0
0.010086
0.22957
0.015541
0
0
0.002062
0
0.004323
1
0.004323
false
0
0.007205
0
0.021614
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
55d1537397d72a9d4f1e8ac21dbeb50a28496c64
6,722
py
Python
Road_Network_POMDPX/pre_defined_road_nets.py
COHRINT/self_confidence
d347b6994ed295f109db989374385b508880009b
[ "MIT" ]
null
null
null
Road_Network_POMDPX/pre_defined_road_nets.py
COHRINT/self_confidence
d347b6994ed295f109db989374385b508880009b
[ "MIT" ]
null
null
null
Road_Network_POMDPX/pre_defined_road_nets.py
COHRINT/self_confidence
d347b6994ed295f109db989374385b508880009b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import networkx as nx """Functions to produce various road networks """ __author__ = "Brett Israelsen" __copyright__ = "Copyright 2016, Cohrint" __credits__ = ["Brett Israelsen"] __license__ = "MIT" __version__ = "0.1.0" __maintainer__ = "Brett Israelsen" __email__ = "brett.israelsen@colorado.edu" __status__ = "Development" def test_roadnetwork(): rn = nx.Graph(name='roadnetwork') rn.add_edge(1, 2, weight=5) rn.add_edge(1, 10, weight=5) rn.add_edge(2, 3, weight=5) rn.add_edge(2, 9, weight=5) rn.add_edge(3, 4, weight=5) rn.add_edge(4, 5, weight=5) rn.add_edge(4, 7, weight=5) rn.add_edge(5, 6, weight=5) rn.add_edge(6, 7, weight=5) rn.add_edge(6, 8, weight=5) rn.add_edge(7, 8, weight=5) rn.add_edge(7, 11, weight=5) rn.add_edge(8, 12, weight=5) rn.add_edge(8, 13, weight=5) rn.add_edge(9, 10, weight=5) rn.add_edge(9, 11, weight=5) rn.add_edge(10, 12, weight=5) rn.add_edge(11, 12, weight=5) rn.add_edge(12, 13, weight=5) rn.node[13]['feature'] = 'exit' rn.node[1]['feature'] = 'sensor' rn.node[3]['feature'] = 'sensor' rn.node[5]['feature'] = 'sensor' rn.node[6]['feature'] = 'sensor' rn.node[7]['feature'] = 'sensor' rn.node[8]['feature'] = 'sensor' rn.node[9]['feature'] = 'sensor' rn.node[10]['feature'] = 'sensor' rn.node[12]['feature'] = 'sensor' def mapping(x): return str(x) rn = nx.relabel_nodes(rn, mapping) return rn def roadnet1(edglen=1): rn = nx.Graph(name='roadnetwork') rn.add_edge(1, 2) rn.add_edge(1, 10) rn.add_edge(2, 3) rn.add_edge(2, 9) rn.add_edge(3, 4) rn.add_edge(4, 5) rn.add_edge(4, 7) rn.add_edge(5, 6) rn.add_edge(6, 7) rn.add_edge(6, 8) rn.add_edge(7, 8) rn.add_edge(7, 11) rn.add_edge(8, 12) rn.add_edge(8, 13) rn.add_edge(9, 10) rn.add_edge(9, 11) rn.add_edge(10, 12) rn.add_edge(11, 12) rn.add_edge(12, 13) rn.node[13]['feature'] = 'exit' rn.node[1]['feature'] = 'sensor' rn.node[3]['feature'] = 'sensor' rn.node[5]['feature'] = 'sensor' rn.node[6]['feature'] = 'sensor' rn.node[7]['feature'] = 'sensor' rn.node[8]['feature'] = 'sensor' rn.node[9]['feature'] = 'sensor' rn.node[10]['feature'] = 'sensor' rn.node[12]['feature'] = 'sensor' # Add some edge attributes for e in rn.edge.keys(): for edg in rn.edge[e]: # Edge lengths rn.edge[e][edg]['len'] = str(edglen) # Edge appearance rn.edge[e][edg]['penwidth'] = '20' # Add some node attributes for n in rn.nodes_iter(): # Node shape rn.node[n]['shape'] = 'circle' rn.node[n]['fixedsize'] = 'true' rn.node[n]['width'] = '0.7' rn.node[n]['height'] = '0.7' # Node appearance rn.node[n]['style'] = 'filled' rn.node[n]['label'] = '' if rn.node[n].get('feature') is 'sensor': rn.node[n]['color'] = 'red' rn.node[n]['fillcolor'] = 'red' elif rn.node[n].get('feature') is 'exit': rn.node[n]['color'] = 'green' rn.node[n]['fillcolor'] = 'green' else: rn.node[n]['color'] = 'black' rn.node[n]['fillcolor'] = 'black' def mapping(x): return str(x) rn = nx.relabel_nodes(rn, mapping) return rn def roadnet1_blk(edglen=1): rn = nx.Graph(name='roadnetwork') # rn.graph['bgcolor'] = 'black' rn.add_edge(1, 2) rn.add_edge(1, 10) rn.add_edge(2, 3) rn.add_edge(2, 9) rn.add_edge(3, 4) rn.add_edge(4, 5) rn.add_edge(4, 7) rn.add_edge(5, 6) rn.add_edge(6, 7) rn.add_edge(6, 8) rn.add_edge(7, 8) rn.add_edge(7, 11) rn.add_edge(8, 12) rn.add_edge(8, 13) rn.add_edge(9, 10) rn.add_edge(9, 11) rn.add_edge(10, 12) rn.add_edge(11, 12) rn.add_edge(12, 13) rn.node[13]['feature'] = 'exit' rn.node[1]['feature'] = 'sensor' rn.node[3]['feature'] = 'sensor' rn.node[5]['feature'] = 'sensor' rn.node[6]['feature'] = 'sensor' rn.node[7]['feature'] = 'sensor' rn.node[8]['feature'] = 'sensor' rn.node[9]['feature'] = 'sensor' rn.node[10]['feature'] = 'sensor' rn.node[12]['feature'] = 'sensor' # Add some edge attributes for e in rn.edge.keys(): for edg in rn.edge[e]: # Edge lengths rn.edge[e][edg]['len'] = str(edglen) # Edge appearance rn.edge[e][edg]['penwidth'] = '25' # Add some node attributes for n in rn.nodes_iter(): # Node shape rn.node[n]['shape'] = 'circle' rn.node[n]['fixedsize'] = 'true' # Changes to make node bigger and fit better with penwidth=25 rn.node[n]['width'] = '1.0' rn.node[n]['height'] = '1.0' # Node appearance #Comment next two lines to reveal numbered nodes rn.node[n]['style'] = 'filled' rn.node[n]['label'] = '' if rn.node[n].get('feature') is 'sensor': rn.node[n]['color'] = 'black' rn.node[n]['fillcolor'] = 'black' elif rn.node[n].get('feature') is 'exit': rn.node[n]['color'] = 'black' rn.node[n]['fillcolor'] = 'black' else: rn.node[n]['feature'] = 'none' rn.node[n]['color'] = 'black' rn.node[n]['fillcolor'] = 'black' def mapping(x): return str(x) rn = nx.relabel_nodes(rn, mapping) return rn def roadnet2(edglen=1): rn = nx.Graph(name='roadnetwork') rn.add_edge(1, 2) rn.add_edge(1, 10) rn.add_edge(2, 3) rn.add_edge(2, 9) # Add some edge attributes for e in rn.edge.keys(): for edg in rn.edge[e]: # Edge lengths rn.edge[e][edg]['len'] = str(edglen) # Edge appearance rn.edge[e][edg]['penwidth'] = '5' # Add some node attributes for n in rn.nodes_iter(): # Node shape rn.node[n]['shape'] = 'circle' rn.node[n]['fixedsize'] = 'true' rn.node[n]['width'] = '0.3' # Node appearance rn.node[n]['style'] = 'filled' rn.node[n]['label'] = '' if rn.node[n].get('feature') is 'sensor': rn.node[n]['color'] = 'red' rn.node[n]['fillcolor'] = 'red' elif rn.node[n].get('feature') is 'exit': rn.node[n]['color'] = 'green' rn.node[n]['fillcolor'] = 'green' else: rn.node[n]['color'] = 'black' rn.node[n]['fillcolor'] = 'black' def mapping(x): return str(x) rn = nx.relabel_nodes(rn, mapping) return rn
27.54918
69
0.537489
1,022
6,722
3.435421
0.113503
0.123042
0.156366
0.129878
0.868983
0.854742
0.783537
0.773284
0.763885
0.763885
0
0.050449
0.271645
6,722
243
70
27.662551
0.666667
0.070663
0
0.777174
0
0
0.167449
0.004534
0
0
0
0
0
1
0.043478
false
0
0.005435
0.021739
0.092391
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
36110ca456e5ca5d95f86de70d05d367162213ce
3,945
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/cat-and-mouse.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/cat-and-mouse.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/cat-and-mouse.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n^3) # Space: O(n^2) import collections class Solution(object): def catMouseGame(self, graph): """ :type graph: List[List[int]] :rtype: int """ HOLE, MOUSE_START, CAT_START = range(3) DRAW, MOUSE, CAT = range(3) def parents(m, c, t): if t == CAT: for nm in graph[m]: yield nm, c, MOUSE^CAT^t else: for nc in graph[c]: if nc != HOLE: yield m, nc, MOUSE^CAT^t degree = {} ignore = set(graph[HOLE]) for m in xrange(len(graph)): for c in xrange(len(graph)): degree[m, c, MOUSE] = len(graph[m]) degree[m, c, CAT] = len(graph[c])-(c in ignore) color = collections.defaultdict(int) q = collections.deque() for i in xrange(len(graph)): if i == HOLE: continue color[HOLE, i, CAT] = MOUSE q.append((HOLE, i, CAT, MOUSE)) for t in [MOUSE, CAT]: color[i, i, t] = CAT q.append((i, i, t, CAT)) while q: i, j, t, c = q.popleft() for ni, nj, nt in parents(i, j, t): if color[ni, nj, nt] != DRAW: continue if nt == c: color[ni, nj, nt] = c q.append((ni, nj, nt, c)) continue degree[ni, nj, nt] -= 1 if not degree[ni, nj, nt]: color[ni, nj, nt] = c q.append((ni, nj, nt, c)) return color[MOUSE_START, CAT_START, MOUSE] # Time: O(n^3) # Space: O(n^2) import collections class Solution2(object): def catMouseGame(self, graph): """ :type graph: List[List[int]] :rtype: int """ HOLE, MOUSE_START, CAT_START = range(3) DRAW, MOUSE, CAT = range(3) def parents(m, c, t): if t == CAT: for nm in graph[m]: yield nm, c, MOUSE^CAT^t else: for nc in graph[c]: if nc != HOLE: yield m, nc, MOUSE^CAT^t color = collections.defaultdict(int) degree = {} ignore = set(graph[HOLE]) for m in xrange(len(graph)): for c in xrange(len(graph)): degree[m, c, MOUSE] = len(graph[m]) degree[m, c, CAT] = len(graph[c])-(c in ignore) q1 = collections.deque() q2 = collections.deque() for i in xrange(len(graph)): if i == HOLE: continue color[HOLE, i, CAT] = MOUSE q1.append((HOLE, i, CAT)) for t in [MOUSE, CAT]: color[i, i, t] = CAT q2.append((i, i, t)) while q1: i, j, t = q1.popleft() for ni, nj, nt in parents(i, j, t): if color[ni, nj, nt] != DRAW: continue if t == CAT: color[ni, nj, nt] = MOUSE q1.append((ni, nj, nt)) continue degree[ni, nj, nt] -= 1 if not degree[ni, nj, nt]: color[ni, nj, nt] = MOUSE q1.append((ni, nj, nt)) while q2: i, j, t = q2.popleft() for ni, nj, nt in parents(i, j, t): if color[ni, nj, nt] != DRAW: continue if t == MOUSE: color[ni, nj, nt] = CAT q2.append((ni, nj, nt)) continue degree[ni, nj, nt] -= 1 if not degree[ni, nj, nt]: color[ni, nj, nt] = CAT q2.append((ni, nj, nt)) return color[MOUSE_START, CAT_START, MOUSE]
32.336066
63
0.408365
488
3,945
3.284836
0.122951
0.059888
0.089832
0.061759
0.872739
0.872739
0.872739
0.830318
0.830318
0.830318
0
0.011401
0.466413
3,945
121
64
32.603306
0.750119
0.034981
0
0.83
0
0
0
0
0
0
0
0
0
1
0.04
false
0
0.02
0
0.1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
36419a8880755564142fd031d76b59b1d9d4c31f
285
py
Python
tests/parser/wellfounded.15.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/wellfounded.15.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/wellfounded.15.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
input = """ % test skip of Propagate_DeriveSingleUndefinedPosBodyLiteral() a :- b. b :- a. a | b. -a :- not a. -b :- not b. """ output = """ % test skip of Propagate_DeriveSingleUndefinedPosBodyLiteral() a :- b. b :- a. a | b. -a :- not a. -b :- not b. """
11.4
63
0.536842
36
285
4.194444
0.277778
0.07947
0.13245
0.251656
0.927152
0.927152
0.927152
0.927152
0.927152
0.927152
0
0
0.280702
285
24
64
11.875
0.736585
0
0
0.875
0
0
0.883019
0.354717
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
3648bdc482c13e8bf74c68cc6988ac34168bddfb
1,545
py
Python
src/simsearch/app/testing/test_front_end.py
dovydas96/CA400-FinalYear-Project
d277c73b6da64b0325082a559bbf6b91bfb816c0
[ "MIT" ]
null
null
null
src/simsearch/app/testing/test_front_end.py
dovydas96/CA400-FinalYear-Project
d277c73b6da64b0325082a559bbf6b91bfb816c0
[ "MIT" ]
6
2021-03-19T01:02:50.000Z
2022-03-11T23:49:06.000Z
src/simsearch/app/testing/test_front_end.py
dovydas96/CA400-FinalYear-Project
d277c73b6da64b0325082a559bbf6b91bfb816c0
[ "MIT" ]
null
null
null
# import time # import os # # # def test_frontend_buttons_and_functions(webdriver): # # webdriver.get('http://127.0.0.1:5000/register') # webdriver.find_element_by_id("username").send_keys('test1') # webdriver.find_element_by_id("email").send_keys('test1@example.com') # webdriver.cu # webdriver.find_element_by_id("password").send_keys('test1') # webdriver.find_element_by_id("password2").send_keys('test1') # webdriver.find_element_by_id("submit").click() # time.sleep(1) # webdriver.find_element_by_id("username").send_keys('test1') # webdriver.find_element_by_id("password").send_keys('test1') # webdriver.find_element_by_id("submit").click() # time.sleep(1) # webdriver.find_element_by_id("logout").click() # time.sleep(1) # webdriver.find_element_by_id("username").send_keys('test1') # webdriver.find_element_by_id("password").send_keys('test1') # webdriver.find_element_by_id("submit").click() # webdriver.find_element_by_id("upload").send_keys(os.getcwd()+"/app/testing/test.jpeg") # webdriver.find_element_by_id("submit").click() # time.sleep(1) # webdriver.find_element_by_id("upvote").click() # time.sleep(1) # webdriver.find_element_by_id("profile").click() # webdriver.find_element_by_id("search").click() # webdriver.find_element_by_id("downvote").click() # time.sleep(1) # webdriver.find_element_by_id("profile").click() # webdriver.find_element_by_id("delete_account").click() # time.sleep(1) # time.sleep(1)
41.756757
92
0.704207
212
1,545
4.783019
0.216981
0.25641
0.394477
0.433925
0.75641
0.75641
0.704142
0.704142
0.704142
0.704142
0
0.019956
0.124272
1,545
36
93
42.916667
0.72949
0.952751
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
1
1
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
10
364d1b77b098ab242f342e6679518b613b13d5e5
17,167
py
Python
src/TheLanguage/Lexer/Components/UnitTests/NormalizedIterator_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Lexer/Components/UnitTests/NormalizedIterator_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Lexer/Components/UnitTests/NormalizedIterator_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
1
2021-06-18T18:58:57.000Z
2021-06-18T18:58:57.000Z
# ---------------------------------------------------------------------- # | # | NormalizedIterator_UnitTest.py # | # | David Brownell <db@DavidBrownell.com> # | 2021-09-23 18:06:51 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2021 # | Distributed under the Boost Software License, Version 1.0. See # | accompanying file LICENSE_1_0.txt or copy at # | http://www.boost.org/LICENSE_1_0.txt. # | # ---------------------------------------------------------------------- """Unit test for NromalizedIterator.py""" import os import textwrap import pytest import CommonEnvironment from CommonEnvironment.CallOnExit import CallOnExit from CommonEnvironmentEx.Package import InitRelativeImports # ---------------------------------------------------------------------- _script_fullpath = CommonEnvironment.ThisFullpath() _script_dir, _script_name = os.path.split(_script_fullpath) # ---------------------------------------------------------------------- with InitRelativeImports(): from ..NormalizedIterator import * from ..Normalize import Normalize # ---------------------------------------------------------------------- def test_Standard(): iter = NormalizedIterator.FromNormalizedContent( Normalize( textwrap.dedent( """\ 1 22 333 4444 55555 666666 """, ), ), ) # First line assert iter.LineInfo.NumDedents is None assert iter.LineInfo.NewIndentationValue is None assert iter.Offset == 0 assert iter.LineInfo == iter.LineInfos[0] assert iter.Content[iter.Offset] == "1" assert iter.Line == 1 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(1) assert iter.Offset == 1 assert iter.LineInfo == iter.LineInfos[0] assert iter.Content[iter.Offset] == "\n" assert iter.Line == 1 assert iter.Column == 2 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine iter.Advance(1) assert iter.AtEnd() == False # Second line assert iter.LineInfo.NumDedents is None assert iter.LineInfo.NewIndentationValue == 4 assert iter.Offset == 2 assert iter.LineInfo == iter.LineInfos[1] assert iter.Content[iter.Offset : iter.Offset + 4] == " " assert iter.Line == 2 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Indent iter.SkipWhitespacePrefix() assert iter.Offset == 6 assert iter.LineInfo == iter.LineInfos[1] assert iter.Content[iter.Offset : iter.Offset + 2] == "22" assert iter.Line == 2 assert iter.Column == 5 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(2) assert iter.Offset == 8 assert iter.LineInfo == iter.LineInfos[1] assert iter.Content[iter.Offset] == "\n" assert iter.Line == 2 assert iter.Column == 7 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine iter.Advance(1) assert iter.AtEnd() == False # Third line assert iter.LineInfo.NumDedents is None assert iter.LineInfo.NewIndentationValue == 8 assert iter.Offset == 9 assert iter.LineInfo == iter.LineInfos[2] assert iter.Content[iter.Offset : iter.Offset + 8] == " " assert iter.Line == 3 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Indent iter.SkipWhitespacePrefix() assert iter.Offset == 17 assert iter.LineInfo == iter.LineInfos[2] assert iter.Content[iter.Offset : iter.Offset + 3] == "333" assert iter.Line == 3 assert iter.Column == 9 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(3) assert iter.Offset == 20 assert iter.LineInfo == iter.LineInfos[2] assert iter.Content[iter.Offset] == "\n" assert iter.Line == 3 assert iter.Column == 12 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine iter.Advance(1) assert iter.AtEnd() == False # Fourth line assert iter.LineInfo.NumDedents == 1 assert iter.LineInfo.NewIndentationValue is None assert iter.Offset == 21 assert iter.LineInfo == iter.LineInfos[3] assert iter.Content[iter.Offset : iter.Offset + 4] == " " assert iter.Line == 4 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Dedent iter.ConsumeDedent() assert iter.GetNextTokenType() == NormalizedIterator.TokenType.WhitespacePrefix iter.SkipWhitespacePrefix() assert iter.Offset == 25 assert iter.LineInfo == iter.LineInfos[3] assert iter.Content[iter.Offset : iter.Offset + 4] == "4444" assert iter.Line == 4 assert iter.Column == 5 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(4) assert iter.Offset == 29 assert iter.LineInfo == iter.LineInfos[3] assert iter.Content[iter.Offset] == "\n" assert iter.Line == 4 assert iter.Column == 9 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine iter.Advance(1) assert iter.AtEnd() == False # Fifth line assert iter.LineInfo.NumDedents is None assert iter.LineInfo.NewIndentationValue == 8 assert iter.Offset == 30 assert iter.LineInfo == iter.LineInfos[4] assert iter.Content[iter.Offset : iter.Offset + 8] == " " assert iter.Line == 5 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Indent iter.SkipWhitespacePrefix() assert iter.Offset == 38 assert iter.LineInfo == iter.LineInfos[4] assert iter.Content[iter.Offset : iter.Offset + 5] == "55555" assert iter.Line == 5 assert iter.Column == 9 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(5) assert iter.Offset == 43 assert iter.LineInfo == iter.LineInfos[4] assert iter.Content[iter.Offset] == "\n" assert iter.Line == 5 assert iter.Column == 14 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine iter.Advance(1) assert iter.AtEnd() == False # Sixth line assert iter.LineInfo.NumDedents is None assert iter.LineInfo.NewIndentationValue is None assert iter.Offset == 44 assert iter.LineInfo == iter.LineInfos[5] assert iter.Content[iter.Offset : iter.Offset + 8] == " " assert iter.Line == 6 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.WhitespacePrefix iter.SkipWhitespacePrefix() assert iter.Offset == 52 assert iter.LineInfo == iter.LineInfos[5] assert iter.Content[iter.Offset : iter.Offset + 6] == "666666" assert iter.Line == 6 assert iter.Column == 9 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(2) assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(2) assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(2) assert iter.Offset == 58 assert iter.LineInfo == iter.LineInfos[5] assert iter.Content[iter.Offset] == "\n" assert iter.Line == 6 assert iter.Column == 15 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine iter.Advance(1) assert iter.AtEnd() == False # Final dedents assert iter.HasEndOfFileDedents assert iter.IsBlankLine() == False assert iter.LineInfo.NumDedents == 2 assert iter.LineInfo.NewIndentationValue is None assert iter.Offset == 59 assert iter.LineInfo == iter.LineInfos[6] assert iter.Line == 7 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Dedent iter.ConsumeDedent() assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Dedent iter.ConsumeDedent() assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfFile assert iter.AtEnd() # ---------------------------------------------------------------------- def test_NoFinalDedents(): assert not NormalizedIterator.FromNormalizedContent( Normalize( textwrap.dedent( """\ one two three """, ), ), ).HasEndOfFileDedents # ---------------------------------------------------------------------- def test_SkipWhitespacePrefix(): iter = NormalizedIterator.FromNormalizedContent(Normalize(" one")) assert iter.Line == 1 assert iter.Column == 1 assert iter.Offset == 0 iter.SkipWhitespacePrefix() assert iter.Line == 1 assert iter.Column == 5 assert iter.Offset == 4 # ---------------------------------------------------------------------- def test_SkipWhitespacePrefixNoPrefix(): iter = NormalizedIterator.FromNormalizedContent(Normalize("one")) assert iter.Line == 1 assert iter.Column == 1 assert iter.Offset == 0 iter.SkipWhitespacePrefix() assert iter.Line == 1 assert iter.Column == 1 assert iter.Offset == 0 # ---------------------------------------------------------------------- def test_SkipSuffix(): iter = NormalizedIterator.FromNormalizedContent(Normalize("one ")) assert iter.Line == 1 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(3) assert iter.GetNextTokenType() == NormalizedIterator.TokenType.WhitespaceSuffix assert iter.Line == 1 assert iter.Column == 4 assert iter.Offset == 3 iter.SkipWhitespaceSuffix() assert iter.Line == 1 assert iter.Column == 8 assert iter.Offset == 7 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine # ---------------------------------------------------------------------- def test_SkipSuffixNoSuffix(): iter = NormalizedIterator.FromNormalizedContent(Normalize("one")) assert iter.Line == 1 assert iter.Column == 1 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.Content iter.Advance(3) assert iter.Line == 1 assert iter.Column == 4 assert iter.Offset == 3 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine iter.SkipWhitespaceSuffix() assert iter.Line == 1 assert iter.Column == 4 assert iter.Offset == 3 assert iter.GetNextTokenType() == NormalizedIterator.TokenType.EndOfLine # ---------------------------------------------------------------------- def test_IsBlankLine(): iter = NormalizedIterator.FromNormalizedContent( Normalize( textwrap.dedent( """\ one three \t \t six """, ), ), ) # Line 1 assert iter.Line == 1 assert iter.Column == 1 assert iter.Offset == 0 assert iter.IsBlankLine() == False iter.Advance(3) assert iter.Line == 1 assert iter.Column == 4 assert iter.Offset == 3 iter.Advance(1) # Line 2 assert iter.Line == 2 assert iter.Column == 1 assert iter.Offset == 4 assert iter.IsBlankLine() iter.SkipWhitespacePrefix() iter.SkipWhitespaceSuffix() assert iter.Line == 2 assert iter.Column == 1 assert iter.Offset == 4 iter.Advance(1) # Line 3 assert iter.Line == 3 assert iter.Column == 1 assert iter.Offset == 5 assert iter.IsBlankLine() == False iter.SkipWhitespacePrefix() assert iter.Line == 3 assert iter.Column == 1 assert iter.Offset == 5 iter.Advance(len("three")) assert iter.Line == 3 assert iter.Column == 6 assert iter.Offset == 10 iter.SkipWhitespaceSuffix() assert iter.Line == 3 assert iter.Column == 6 assert iter.Offset == 10 iter.Advance(1) # Line 4 assert iter.Line == 4 assert iter.Column == 1 assert iter.Offset == 11 assert iter.IsBlankLine() iter.SkipWhitespacePrefix() assert iter.Line == 4 assert iter.Column == 1 assert iter.Offset == 11 iter.Advance(1) # Line 5 assert iter.Line == 5 assert iter.Column == 1 assert iter.Offset == 12 assert iter.IsBlankLine() iter.SkipWhitespacePrefix() assert iter.Line == 5 assert iter.Column == 1 assert iter.Offset == 12 iter.SkipWhitespaceSuffix() assert iter.Line == 5 assert iter.Column == 1 assert iter.Offset == 12 iter.Advance(1) # Line 6 assert iter.Line == 6 assert iter.Column == 1 assert iter.Offset == 13 assert iter.IsBlankLine() == False iter.SkipWhitespacePrefix() assert iter.Line == 6 assert iter.Column == 1 assert iter.Offset == 13 iter.Advance(len("six")) assert iter.Line == 6 assert iter.Column == 4 assert iter.Offset == 16 assert iter.AtEnd() == False assert iter.Advance(1) assert iter.Line == 7 assert iter.Column == 1 assert iter.Offset == 17 assert iter.AtEnd() assert iter.IsBlankLine() == False # ---------------------------------------------------------------------- def test_SkipLine(): iter = NormalizedIterator.FromNormalizedContent( Normalize( textwrap.dedent( """\ one two four \t \t seven """, ), ), ) assert iter.Line == 1 assert iter.Column == 1 assert iter.Offset == 0 iter.SkipLine() assert iter.Line == 2 assert iter.Column == 1 assert iter.Offset == 4 iter.SkipLine() assert iter.Line == 3 assert iter.Column == 1 assert iter.Offset == 8 iter.SkipLine() assert iter.Line == 4 assert iter.Column == 1 assert iter.Offset == 9 iter.SkipLine() assert iter.Line == 5 assert iter.Column == 1 assert iter.Offset == 14 iter.SkipLine() assert iter.Line == 6 assert iter.Column == 1 assert iter.Offset == 15 iter.SkipLine() assert iter.AtEnd() == False assert iter.Line == 7 assert iter.Column == 1 assert iter.Offset == 16 iter.SkipLine() assert iter.AtEnd() assert iter.Line == 8 assert iter.Column == 1 assert iter.Offset == 22 # ---------------------------------------------------------------------- def test_Errors(): iter = NormalizedIterator.FromNormalizedContent( Normalize( textwrap.dedent( """\ one two """, ), ), ) # Request too much content with pytest.raises(AssertionError): iter.Advance(100) iter.Advance(3) # Move past the content # Attempt to skip prefix when not at the beginning of the line with pytest.raises(AssertionError): iter.SkipWhitespacePrefix() # Request more than a newline with pytest.raises(AssertionError): iter.Advance(2) iter.Advance(1) # Attempt to skip the suffix at the beginning of the line with pytest.raises(AssertionError): iter.SkipWhitespaceSuffix() # Request too little whitespace with pytest.raises(AssertionError): iter.Advance(1) # Request too much whitespace with pytest.raises(AssertionError): iter.Advance(5) iter.Advance(4) # Move past the whitespace iter.Advance(3) # Move past the content iter.Advance(1) # Move past the newline assert iter.AtEnd() == False # Request an invalid amount with pytest.raises(AssertionError): iter.Advance(1) assert iter.AtEnd() == False iter.ConsumeDedent() iter.AtEnd() # ---------------------------------------------------------------------- def test_Clone(): iter1 = NormalizedIterator.FromNormalizedContent(Normalize("12345")) iter2 = iter1.Clone() assert iter1 == iter2 iter1.Advance(1) assert iter1 != iter2 iter2.Advance(2) assert iter1 != iter2 iter1.Advance(1) assert iter1 == iter2
28.142623
84
0.569989
1,704
17,167
5.728873
0.101526
0.26429
0.072116
0.057468
0.828826
0.794919
0.766441
0.704364
0.672608
0.622413
0
0.028019
0.274422
17,167
609
85
28.188834
0.7557
0.10893
0
0.804511
0
0
0.00699
0
0
0
0
0
0.676692
1
0.025063
false
0
0.022556
0
0.047619
0
0
0
0
null
1
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
8
366569118d5a9f85213ab10c8dfbc406071b09ec
150
py
Python
python/tests/test_decode_morse.py
matyama/codewars
3386dbdb1cd3fa6556356591f377a72bf4bba4e6
[ "MIT" ]
null
null
null
python/tests/test_decode_morse.py
matyama/codewars
3386dbdb1cd3fa6556356591f377a72bf4bba4e6
[ "MIT" ]
null
null
null
python/tests/test_decode_morse.py
matyama/codewars
3386dbdb1cd3fa6556356591f377a72bf4bba4e6
[ "MIT" ]
null
null
null
from codewars.decode_morse import decodeMorse def test_decode_morse() -> None: assert decodeMorse('.... . -.-- .--- ..- -.. .') == 'HEY JUDE'
25
68
0.593333
15
150
5.733333
0.8
0.255814
0
0
0
0
0
0
0
0
0
0
0.18
150
5
69
30
0.699187
0
0
0
0
0
0.24
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
3675949a5530ee2e9155a019bd1273fd117d1786
1,493
py
Python
slackest/search.py
dagonis/slackest
98175bc026c51165b7b8c39a271d74e0f713af72
[ "Apache-2.0" ]
null
null
null
slackest/search.py
dagonis/slackest
98175bc026c51165b7b8c39a271d74e0f713af72
[ "Apache-2.0" ]
null
null
null
slackest/search.py
dagonis/slackest
98175bc026c51165b7b8c39a271d74e0f713af72
[ "Apache-2.0" ]
null
null
null
from .api import BaseAPI class Search(BaseAPI): def all(self, query, sort=None, sort_dir=None, highlight=None, count=None, page=None): return self.get('search.all', params={ 'query': query, 'sort': sort, 'sort_dir': sort_dir, 'highlight': highlight, 'count': count, 'page': page }) def files(self, query, sort=None, sort_dir=None, highlight=None, count=None, page=None): return self.get('search.files', params={ 'query': query, 'sort': sort, 'sort_dir': sort_dir, 'highlight': highlight, 'count': count, 'page': page }) def messages(self, query, sort=None, sort_dir=None, highlight=None, count=None, page=None): return self.get('search.messages', params={ 'query': query, 'sort': sort, 'sort_dir': sort_dir, 'highlight': highlight, 'count': count, 'page': page })
39.289474
78
0.362358
112
1,493
4.75
0.1875
0.118421
0.073308
0.095865
0.862782
0.862782
0.862782
0.862782
0.862782
0.862782
0
0
0.540522
1,493
38
79
39.289474
0.77551
0
0
0.742857
0
0
0.095047
0
0
0
0
0
0
1
0.085714
false
0
0.028571
0.085714
0.228571
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
36b40b4b5ff7bad0452b621f15759c468c682ad2
58,693
py
Python
libica/openapi/libgds/api/files_api.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
null
null
null
libica/openapi/libgds/api/files_api.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
4
2021-11-15T10:47:51.000Z
2022-02-22T04:43:20.000Z
libica/openapi/libgds/api/files_api.py
umccr-illumina/libica
916d27eea499f29bee590268b84208effb0cc576
[ "MIT" ]
null
null
null
# coding: utf-8 """ Genomic Data Store Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from libica.openapi.libgds.api_client import ApiClient from libica.openapi.libgds.exceptions import ( # noqa: F401 ApiTypeError, ApiValueError ) class FilesApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def archive_file(self, file_id, body, **kwargs): # noqa: E501 """Archive a file # noqa: E501 Archives a file to a lower storage cost tier. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.archive_file(file_id, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to be archived. (required) :param FileArchiveRequest body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: FileResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.archive_file_with_http_info(file_id, body, **kwargs) # noqa: E501 def archive_file_with_http_info(self, file_id, body, **kwargs): # noqa: E501 """Archive a file # noqa: E501 Archives a file to a lower storage cost tier. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.archive_file_with_http_info(file_id, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to be archived. (required) :param FileArchiveRequest body: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(FileResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'file_id', 'body' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method archive_file" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'file_id' is set if self.api_client.client_side_validation and ('file_id' not in local_var_params or # noqa: E501 local_var_params['file_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `file_id` when calling `archive_file`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `body` when calling `archive_file`") # noqa: E501 collection_formats = {} path_params = {} if 'file_id' in local_var_params: path_params['fileId'] = local_var_params['file_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in local_var_params: body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 # Authentication setting auth_settings = ['Bearer'] # noqa: E501 return self.api_client.call_api( '/v1/files/{fileId}:archive', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def complete_file_upload(self, file_id, body, **kwargs): # noqa: E501 """Complete a file Upload # noqa: E501 Complete a file upload operation. If the file was uploaded using multipart uploads, combine all the multiple parts uploaded into one complete file. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.complete_file_upload(file_id, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file upload to be completed. (required) :param FileUploadCompleteRequest body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: FileResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.complete_file_upload_with_http_info(file_id, body, **kwargs) # noqa: E501 def complete_file_upload_with_http_info(self, file_id, body, **kwargs): # noqa: E501 """Complete a file Upload # noqa: E501 Complete a file upload operation. If the file was uploaded using multipart uploads, combine all the multiple parts uploaded into one complete file. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.complete_file_upload_with_http_info(file_id, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file upload to be completed. (required) :param FileUploadCompleteRequest body: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(FileResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'file_id', 'body' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method complete_file_upload" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'file_id' is set if self.api_client.client_side_validation and ('file_id' not in local_var_params or # noqa: E501 local_var_params['file_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `file_id` when calling `complete_file_upload`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `body` when calling `complete_file_upload`") # noqa: E501 collection_formats = {} path_params = {} if 'file_id' in local_var_params: path_params['fileId'] = local_var_params['file_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in local_var_params: body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 # Authentication setting auth_settings = ['Bearer'] # noqa: E501 return self.api_client.call_api( '/v1/files/{fileId}:completeUpload', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def create_file(self, body, **kwargs): # noqa: E501 """Create a file entry in GDS and get temporary credentials for upload # noqa: E501 Create a file entry in GDS. Returns temporary credentials and presigned url(s) for file upload directly to S3 when the include=objectStoreAccess parameter is used. Volume ID or volume name is required for file creation. If a folder path is provided and does not exist, GDS creates the folder path in the appropriate account automatically. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_file(body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param CreateFileRequest body: (required) :param str include: Optionally include additional fields in the response. Possible values: ObjectStoreAccess :param int upload_part_count: Optional number of parts for the presigned url for uploads (1 - 10000) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: FileWriteableResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.create_file_with_http_info(body, **kwargs) # noqa: E501 def create_file_with_http_info(self, body, **kwargs): # noqa: E501 """Create a file entry in GDS and get temporary credentials for upload # noqa: E501 Create a file entry in GDS. Returns temporary credentials and presigned url(s) for file upload directly to S3 when the include=objectStoreAccess parameter is used. Volume ID or volume name is required for file creation. If a folder path is provided and does not exist, GDS creates the folder path in the appropriate account automatically. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_file_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param CreateFileRequest body: (required) :param str include: Optionally include additional fields in the response. Possible values: ObjectStoreAccess :param int upload_part_count: Optional number of parts for the presigned url for uploads (1 - 10000) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(FileWriteableResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'body', 'include', 'upload_part_count' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_file" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `body` when calling `create_file`") # noqa: E501 if self.api_client.client_side_validation and 'upload_part_count' in local_var_params and local_var_params['upload_part_count'] > 10000: # noqa: E501 raise ApiValueError("Invalid value for parameter `upload_part_count` when calling `create_file`, must be a value less than or equal to `10000`") # noqa: E501 if self.api_client.client_side_validation and 'upload_part_count' in local_var_params and local_var_params['upload_part_count'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `upload_part_count` when calling `create_file`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'include' in local_var_params and local_var_params['include'] is not None: # noqa: E501 query_params.append(('include', local_var_params['include'])) # noqa: E501 if 'upload_part_count' in local_var_params and local_var_params['upload_part_count'] is not None: # noqa: E501 query_params.append(('uploadPartCount', local_var_params['upload_part_count'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in local_var_params: body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['Bearer'] # noqa: E501 return self.api_client.call_api( '/v1/files', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileWriteableResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def delete_file(self, file_id, **kwargs): # noqa: E501 """Permanently delete a file # noqa: E501 Permanently delete a file entry and its underlying content # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_file(file_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to delete. (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.delete_file_with_http_info(file_id, **kwargs) # noqa: E501 def delete_file_with_http_info(self, file_id, **kwargs): # noqa: E501 """Permanently delete a file # noqa: E501 Permanently delete a file entry and its underlying content # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_file_with_http_info(file_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to delete. (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'file_id' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_file" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'file_id' is set if self.api_client.client_side_validation and ('file_id' not in local_var_params or # noqa: E501 local_var_params['file_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `file_id` when calling `delete_file`") # noqa: E501 collection_formats = {} path_params = {} if 'file_id' in local_var_params: path_params['fileId'] = local_var_params['file_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['text/plain', 'application/json', 'text/json']) # noqa: E501 # Authentication setting auth_settings = ['Bearer'] # noqa: E501 return self.api_client.call_api( '/v1/files/{fileId}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_file(self, file_id, **kwargs): # noqa: E501 """Get details about a file, including a pre-signed URL for download # noqa: E501 Get information and details for the specified file ID, including metadata and a pre-signed URL for file download. The URL can be used as a curl command or directly with S3. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_file(file_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to retrieve. (required) :param str tenant_id: Optional parameter to see shared data in another tenant :param str presigned_url_mode: Optional parameter to specify presigned url's content-disposition. If not specified, the browser will determine the default behavior. Possible values: Attachment, Inline, Browser :param bool include_volume_metadata: Optional parameter to return volume's metadata :param str metadata_include: Optional parameter to specify comma separated patterns to include metadata by their field names. :param str metadata_exclude: Optional parameter to specify comma separated patterns to exclude metadata by their field names. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: FileResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_file_with_http_info(file_id, **kwargs) # noqa: E501 def get_file_with_http_info(self, file_id, **kwargs): # noqa: E501 """Get details about a file, including a pre-signed URL for download # noqa: E501 Get information and details for the specified file ID, including metadata and a pre-signed URL for file download. The URL can be used as a curl command or directly with S3. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_file_with_http_info(file_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to retrieve. (required) :param str tenant_id: Optional parameter to see shared data in another tenant :param str presigned_url_mode: Optional parameter to specify presigned url's content-disposition. If not specified, the browser will determine the default behavior. Possible values: Attachment, Inline, Browser :param bool include_volume_metadata: Optional parameter to return volume's metadata :param str metadata_include: Optional parameter to specify comma separated patterns to include metadata by their field names. :param str metadata_exclude: Optional parameter to specify comma separated patterns to exclude metadata by their field names. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(FileResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'file_id', 'tenant_id', 'presigned_url_mode', 'include_volume_metadata', 'metadata_include', 'metadata_exclude' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_file" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'file_id' is set if self.api_client.client_side_validation and ('file_id' not in local_var_params or # noqa: E501 local_var_params['file_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `file_id` when calling `get_file`") # noqa: E501 collection_formats = {} path_params = {} if 'file_id' in local_var_params: path_params['fileId'] = local_var_params['file_id'] # noqa: E501 query_params = [] if 'tenant_id' in local_var_params and local_var_params['tenant_id'] is not None: # noqa: E501 query_params.append(('tenantId', local_var_params['tenant_id'])) # noqa: E501 if 'presigned_url_mode' in local_var_params and local_var_params['presigned_url_mode'] is not None: # noqa: E501 query_params.append(('presignedUrlMode', local_var_params['presigned_url_mode'])) # noqa: E501 if 'include_volume_metadata' in local_var_params and local_var_params['include_volume_metadata'] is not None: # noqa: E501 query_params.append(('includeVolumeMetadata', local_var_params['include_volume_metadata'])) # noqa: E501 if 'metadata_include' in local_var_params and local_var_params['metadata_include'] is not None: # noqa: E501 query_params.append(('metadata.include', local_var_params['metadata_include'])) # noqa: E501 if 'metadata_exclude' in local_var_params and local_var_params['metadata_exclude'] is not None: # noqa: E501 query_params.append(('metadata.exclude', local_var_params['metadata_exclude'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['Bearer'] # noqa: E501 return self.api_client.call_api( '/v1/files/{fileId}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def list_files(self, **kwargs): # noqa: E501 """Get a list of files # noqa: E501 Given a volumeId or volume name, get a list of files accessible by the JWT. The default sort returned is alphabetical, ascending. The default page size is 10 items # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_files(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param list[str] volume_id: Optional field that specifies comma-separated volume IDs to include in the list :param list[str] volume_name: Optional field that specifies comma-separated volume names to include in the list :param list[str] path: Optional field that specifies comma-separated paths to include in the list. Value can use wildcards (e.g. /a/b/c/*) or exact matches (e.g. /a/b/c/d/). :param bool is_uploaded: Optional field to filter by Uploaded files :param str archive_status: Optional field that specifies comma-separated Archive Statuses to include in the list :param bool recursive: Optional field to specify if files should be returned recursively in and under the specified paths, or only directly in the specified paths :param str presigned_url_mode: Optional parameter to specify presigned url's content-disposition. If not specified, the browser will determine the default behavior. Possible values: Attachment, Inline, Browser :param str include: Optionally include additional fields in the response. Multiple fields can be included by comma-separation. Possible values: TotalItemCount, PresignedUrl, InheritedAcl :param int page_size: START_DESC END_DESC :param str page_token: START_DESC END_DESC :param str tenant_id: Optional parameter to see shared data in another tenant :param str metadata_include: Optional parameter to specify comma separated patterns to include metadata by their field names. :param str metadata_exclude: Optional parameter to specify comma separated patterns to exclude metadata by their field names. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: FileListResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.list_files_with_http_info(**kwargs) # noqa: E501 def list_files_with_http_info(self, **kwargs): # noqa: E501 """Get a list of files # noqa: E501 Given a volumeId or volume name, get a list of files accessible by the JWT. The default sort returned is alphabetical, ascending. The default page size is 10 items # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_files_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param list[str] volume_id: Optional field that specifies comma-separated volume IDs to include in the list :param list[str] volume_name: Optional field that specifies comma-separated volume names to include in the list :param list[str] path: Optional field that specifies comma-separated paths to include in the list. Value can use wildcards (e.g. /a/b/c/*) or exact matches (e.g. /a/b/c/d/). :param bool is_uploaded: Optional field to filter by Uploaded files :param str archive_status: Optional field that specifies comma-separated Archive Statuses to include in the list :param bool recursive: Optional field to specify if files should be returned recursively in and under the specified paths, or only directly in the specified paths :param str presigned_url_mode: Optional parameter to specify presigned url's content-disposition. If not specified, the browser will determine the default behavior. Possible values: Attachment, Inline, Browser :param str include: Optionally include additional fields in the response. Multiple fields can be included by comma-separation. Possible values: TotalItemCount, PresignedUrl, InheritedAcl :param int page_size: START_DESC END_DESC :param str page_token: START_DESC END_DESC :param str tenant_id: Optional parameter to see shared data in another tenant :param str metadata_include: Optional parameter to specify comma separated patterns to include metadata by their field names. :param str metadata_exclude: Optional parameter to specify comma separated patterns to exclude metadata by their field names. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(FileListResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'volume_id', 'volume_name', 'path', 'is_uploaded', 'archive_status', 'recursive', 'presigned_url_mode', 'include', 'page_size', 'page_token', 'tenant_id', 'metadata_include', 'metadata_exclude' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_files" % key ) local_var_params[key] = val del local_var_params['kwargs'] if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 10000: # noqa: E501 raise ApiValueError("Invalid value for parameter `page_size` when calling `list_files`, must be a value less than or equal to `10000`") # noqa: E501 if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] < 0: # noqa: E501 raise ApiValueError("Invalid value for parameter `page_size` when calling `list_files`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'volume_id' in local_var_params and local_var_params['volume_id'] is not None: # noqa: E501 query_params.append(('volume.id', local_var_params['volume_id'])) # noqa: E501 collection_formats['volume.id'] = 'csv' # noqa: E501 if 'volume_name' in local_var_params and local_var_params['volume_name'] is not None: # noqa: E501 query_params.append(('volume.name', local_var_params['volume_name'])) # noqa: E501 collection_formats['volume.name'] = 'csv' # noqa: E501 if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 collection_formats['path'] = 'csv' # noqa: E501 if 'is_uploaded' in local_var_params and local_var_params['is_uploaded'] is not None: # noqa: E501 query_params.append(('isUploaded', local_var_params['is_uploaded'])) # noqa: E501 if 'archive_status' in local_var_params and local_var_params['archive_status'] is not None: # noqa: E501 query_params.append(('archiveStatus', local_var_params['archive_status'])) # noqa: E501 if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 if 'presigned_url_mode' in local_var_params and local_var_params['presigned_url_mode'] is not None: # noqa: E501 query_params.append(('presignedUrlMode', local_var_params['presigned_url_mode'])) # noqa: E501 if 'include' in local_var_params and local_var_params['include'] is not None: # noqa: E501 query_params.append(('include', local_var_params['include'])) # noqa: E501 if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 if 'page_token' in local_var_params and local_var_params['page_token'] is not None: # noqa: E501 query_params.append(('pageToken', local_var_params['page_token'])) # noqa: E501 if 'tenant_id' in local_var_params and local_var_params['tenant_id'] is not None: # noqa: E501 query_params.append(('tenantId', local_var_params['tenant_id'])) # noqa: E501 if 'metadata_include' in local_var_params and local_var_params['metadata_include'] is not None: # noqa: E501 query_params.append(('metadata.include', local_var_params['metadata_include'])) # noqa: E501 if 'metadata_exclude' in local_var_params and local_var_params['metadata_exclude'] is not None: # noqa: E501 query_params.append(('metadata.exclude', local_var_params['metadata_exclude'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['Bearer'] # noqa: E501 return self.api_client.call_api( '/v1/files', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileListResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def unarchive_file(self, file_id, body, **kwargs): # noqa: E501 """Unarchive a file # noqa: E501 Unarchive a file from a lower storage cost tier. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.unarchive_file(file_id, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to be unarchived. (required) :param FileUnarchiveRequest body: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: FileResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.unarchive_file_with_http_info(file_id, body, **kwargs) # noqa: E501 def unarchive_file_with_http_info(self, file_id, body, **kwargs): # noqa: E501 """Unarchive a file # noqa: E501 Unarchive a file from a lower storage cost tier. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.unarchive_file_with_http_info(file_id, body, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to be unarchived. (required) :param FileUnarchiveRequest body: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(FileResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'file_id', 'body' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method unarchive_file" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'file_id' is set if self.api_client.client_side_validation and ('file_id' not in local_var_params or # noqa: E501 local_var_params['file_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `file_id` when calling `unarchive_file`") # noqa: E501 # verify the required parameter 'body' is set if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 local_var_params['body'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `body` when calling `unarchive_file`") # noqa: E501 collection_formats = {} path_params = {} if 'file_id' in local_var_params: path_params['fileId'] = local_var_params['file_id'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in local_var_params: body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 # Authentication setting auth_settings = ['Bearer'] # noqa: E501 return self.api_client.call_api( '/v1/files/{fileId}:unarchive', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def update_file(self, file_id, **kwargs): # noqa: E501 """Update a file entry in GDS and get temporary credentials for upload # noqa: E501 Update a file entry in GDS. Returns temporary credentials and presigned url(s) for file upload directly to S3 when the include=objectStoreAccess parameter is used. Note that the currently supported changes to the file resource are updating the file type and the underlying content. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_file(file_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to be updated. (required) :param str include: Optionally include additional fields in the response. Possible values: ObjectStoreAccess :param int upload_part_count: Optional number of parts for the presigned url for uploads (1 - 10000) :param UpdateFileRequest body: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: FileWriteableResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.update_file_with_http_info(file_id, **kwargs) # noqa: E501 def update_file_with_http_info(self, file_id, **kwargs): # noqa: E501 """Update a file entry in GDS and get temporary credentials for upload # noqa: E501 Update a file entry in GDS. Returns temporary credentials and presigned url(s) for file upload directly to S3 when the include=objectStoreAccess parameter is used. Note that the currently supported changes to the file resource are updating the file type and the underlying content. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_file_with_http_info(file_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str file_id: Unique identifier for the file to be updated. (required) :param str include: Optionally include additional fields in the response. Possible values: ObjectStoreAccess :param int upload_part_count: Optional number of parts for the presigned url for uploads (1 - 10000) :param UpdateFileRequest body: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(FileWriteableResponse, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'file_id', 'include', 'upload_part_count', 'body' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method update_file" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'file_id' is set if self.api_client.client_side_validation and ('file_id' not in local_var_params or # noqa: E501 local_var_params['file_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `file_id` when calling `update_file`") # noqa: E501 if self.api_client.client_side_validation and 'upload_part_count' in local_var_params and local_var_params['upload_part_count'] > 10000: # noqa: E501 raise ApiValueError("Invalid value for parameter `upload_part_count` when calling `update_file`, must be a value less than or equal to `10000`") # noqa: E501 if self.api_client.client_side_validation and 'upload_part_count' in local_var_params and local_var_params['upload_part_count'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `upload_part_count` when calling `update_file`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} if 'file_id' in local_var_params: path_params['fileId'] = local_var_params['file_id'] # noqa: E501 query_params = [] if 'include' in local_var_params and local_var_params['include'] is not None: # noqa: E501 query_params.append(('include', local_var_params['include'])) # noqa: E501 if 'upload_part_count' in local_var_params and local_var_params['upload_part_count'] is not None: # noqa: E501 query_params.append(('uploadPartCount', local_var_params['upload_part_count'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None if 'body' in local_var_params: body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['Bearer'] # noqa: E501 return self.api_client.call_api( '/v1/files/{fileId}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='FileWriteableResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)
52.498211
360
0.622561
6,972
58,693
5.020511
0.049627
0.04571
0.073594
0.022398
0.960232
0.949119
0.945205
0.943405
0.932149
0.922721
0
0.016818
0.305045
58,693
1,117
361
52.54521
0.84133
0.473106
0
0.731397
1
0.010889
0.212464
0.032241
0
0
0
0
0
1
0.030853
false
0
0.009074
0
0.07078
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
36c9df0b3f1c5db99cbc0a02e39bb96ed4fe8bc6
129
py
Python
python_modules/dagster/dagster/core/storage/event_log/sqlite/__init__.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
python_modules/dagster/dagster/core/storage/event_log/sqlite/__init__.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
python_modules/dagster/dagster/core/storage/event_log/sqlite/__init__.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
from .consolidated_sqlite_event_log import ConsolidatedSqliteEventLogStorage from .sqlite_event_log import SqliteEventLogStorage
43
76
0.922481
13
129
8.769231
0.615385
0.192982
0.245614
0.350877
0
0
0
0
0
0
0
0
0.062016
129
2
77
64.5
0.942149
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
36dfadd4c08f5cffa1fb32f9b940e8a977f6cac9
1,666
py
Python
pyrez/exceptions.py
shaklev/Pyrez
a9cc5bc0c62fbd56235c06b39683f697fd77e8a8
[ "MIT" ]
null
null
null
pyrez/exceptions.py
shaklev/Pyrez
a9cc5bc0c62fbd56235c06b39683f697fd77e8a8
[ "MIT" ]
null
null
null
pyrez/exceptions.py
shaklev/Pyrez
a9cc5bc0c62fbd56235c06b39683f697fd77e8a8
[ "MIT" ]
null
null
null
class CustomException(Exception): def __init__(self, *args, **kwargs): return super().__init__(self, *args, **kwargs) def __str__(self): return str(self.args [1]) class DeprecatedException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class DailyLimitException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class InvalidArgumentException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class KeyOrAuthEmptyException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class NotFoundException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class NotSupported(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class SessionLimitException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class WrongCredentials(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class PaladinsOnlyException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class SmiteOnlyException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs) class RealmRoyaleOnlyException(CustomException): def __init__(self, *args, **kwargs): return super().__init__(*args, **kwargs)
42.717949
54
0.688475
165
1,666
6.345455
0.139394
0.229226
0.148997
0.223496
0.723018
0.723018
0.723018
0.723018
0.688634
0.688634
0
0.000716
0.162065
1,666
38
55
43.842105
0.749284
0
0
0.605263
0
0
0
0
0
0
0
0
0
1
0.342105
false
0
0
0.342105
1
0
0
0
0
null
1
0
1
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
8
36e5028f364ebe260be55df72ae9dc9e259d0182
68,617
py
Python
benchmarks/SimResults/combinations_spec_locality/cmp_astarzeusmpcactusADMGemsFDTD/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/combinations_spec_locality/cmp_astarzeusmpcactusADMGemsFDTD/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/combinations_spec_locality/cmp_astarzeusmpcactusADMGemsFDTD/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.221497, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.376662, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.28152, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.538558, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.932588, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.534866, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.00601, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.335867, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 7.789, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.242107, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0195232, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.22063, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.144386, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.462738, 'Execution Unit/Register Files/Runtime Dynamic': 0.163909, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.593815, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.46857, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 4.42053, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000481011, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000481011, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000417057, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000160409, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00207411, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00345319, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00467987, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.138802, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.326142, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.471433, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 0.94451, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.137884, 'L2/Runtime Dynamic': 0.03632, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 5.88639, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.30487, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.150415, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.150415, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 6.59958, 'Load Store Unit/Runtime Dynamic': 3.19708, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.370898, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.741795, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.131633, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.133676, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0535466, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.786061, 'Memory Management Unit/Runtime Dynamic': 0.187223, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 28.843, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.844658, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0377029, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.26612, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.14848, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 9.93414, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.000768033, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.203292, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.00489056, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.134003, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.216141, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.109101, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.459244, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.152511, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.12944, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.000923932, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00562067, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0409021, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0415683, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.041826, 'Execution Unit/Register Files/Runtime Dynamic': 0.047189, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0863613, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.24668, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.36178, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00129107, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00129107, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00118164, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000488669, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000597132, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00436092, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0103381, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0399607, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.54184, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.103155, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.135724, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.88372, 'Instruction Fetch Unit/Runtime Dynamic': 0.293539, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0180619, 'L2/Runtime Dynamic': 0.00421009, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.46507, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.595097, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.039727, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0397271, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.65267, 'Load Store Unit/Runtime Dynamic': 0.830745, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0979601, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.195921, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0347664, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.035037, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.158042, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0169126, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.373874, 'Memory Management Unit/Runtime Dynamic': 0.0519496, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 15.6472, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.00242996, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0060754, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0695086, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.078014, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.62024, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.102042, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.282837, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.548745, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.226112, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.36471, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.184093, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.774915, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.174477, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.13252, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.10367, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00948414, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.106879, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.070141, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.210549, 'Execution Unit/Register Files/Runtime Dynamic': 0.0796251, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.25068, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.601493, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.14425, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000365047, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000365047, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000317844, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000122982, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00100758, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00205552, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00350401, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0674283, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.28902, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.153479, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.229017, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 6.71569, 'Instruction Fetch Unit/Runtime Dynamic': 0.455484, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0798664, 'L2/Runtime Dynamic': 0.0208478, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.11536, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.949894, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0607655, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0607656, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.40231, 'Load Store Unit/Runtime Dynamic': 1.31033, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.149837, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.299675, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0531778, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0543679, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.266676, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0251888, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.514135, 'Memory Management Unit/Runtime Dynamic': 0.0795567, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 19.434, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.272707, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0135203, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.110996, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.397223, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.40769, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0287025, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.225233, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.162575, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0662803, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.106908, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0539634, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.227151, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0508805, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.20438, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0307139, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00278009, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0305414, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0205605, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.0612554, 'Execution Unit/Register Files/Runtime Dynamic': 0.0233406, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.0715195, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.196426, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.07753, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 5.427e-05, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 5.427e-05, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 4.74494e-05, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.8467e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000295353, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000451343, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000513895, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0197653, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 1.25725, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0479639, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.067132, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 3.53678, 'Instruction Fetch Unit/Runtime Dynamic': 0.135826, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0527099, 'L2/Runtime Dynamic': 0.0153926, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.07389, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.423272, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0270714, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0270714, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.20172, 'Load Store Unit/Runtime Dynamic': 0.58385, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0667535, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.133507, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.023691, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0244797, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.078171, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.00787198, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.274977, 'Memory Management Unit/Runtime Dynamic': 0.0323517, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 13.86, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.0807939, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00397363, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0326388, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.117406, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 1.96236, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 5.02497580186192, 'Runtime Dynamic': 5.02497580186192, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.281697, 'Runtime Dynamic': 0.126352, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 78.0659, 'Peak Power': 111.178, 'Runtime Dynamic': 19.0508, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 77.7842, 'Total Cores/Runtime Dynamic': 18.9244, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.281697, 'Total L3s/Runtime Dynamic': 0.126352, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
75.073304
124
0.682061
8,086
68,617
5.781969
0.067895
0.123543
0.112934
0.093427
0.93825
0.930379
0.917545
0.885783
0.862554
0.842213
0
0.131928
0.224303
68,617
914
125
75.073304
0.746459
0
0
0.642232
0
0
0.657335
0.048092
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
7fc8ca874303891ece84f4fc9a2c86ebdff63d79
9,654
py
Python
navigation/migrations/0002_auto_20200317_1530.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
4
2019-03-28T06:42:17.000Z
2021-06-06T13:10:51.000Z
navigation/migrations/0002_auto_20200317_1530.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
177
2018-09-28T14:21:56.000Z
2022-03-30T21:45:26.000Z
navigation/migrations/0002_auto_20200317_1530.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
8
2018-10-25T20:43:10.000Z
2022-03-17T14:19:27.000Z
# Generated by Django 2.2.9 on 2020-03-17 15:30 from django.db import migrations import wagtail.core.blocks import wagtail.core.blocks.static_block import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('navigation', '0001_initial'), ] operations = [ migrations.AlterField( model_name='primarymenulinks', name='meganav', field=wagtail.core.fields.StreamField([('type_a', wagtail.core.blocks.StructBlock([('highlight', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock(help_text='Page for title and link')), ('description_en', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [en]')), ('description_fr', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [fr]', required=False))])), ('columns_label', wagtail.core.blocks.static_block.StaticBlock(admin_text='\n <div class="help-block help-info">\n <p>\n <strong>Columns</strong><br>\n Column elements for the meganav module.<br>\n Maximum number of items: 4\n </p>\n </div>\n ')), ('columns', wagtail.core.blocks.StreamBlock([('page_list', wagtail.core.blocks.StructBlock([('use_first_page_as_title', wagtail.core.blocks.BooleanBlock(help_text='Optional: if checked, the first page in the list will be displayed as a title, overriding any plain text title below', required=False)), ('title_en', wagtail.core.blocks.CharBlock(help_text='Optional: plain text title for the page list', label='Title [en]', required=False)), ('title_fr', wagtail.core.blocks.CharBlock(help_text='Optional: plain text title for the page list', label='Title [fr]', required=False)), ('description_en', wagtail.core.blocks.CharBlock(help_text='Optional: description for the page list', label='Description [en]', required=False)), ('description_fr', wagtail.core.blocks.CharBlock(help_text='Optional: description for the page list', label='Description [fr]', required=False)), ('page_list', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock())]), label='Pages'))])), ('nested_page_list', wagtail.core.blocks.StructBlock([('groups', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock(help_text='Optional: top level page for the group', label='Top level page', required=False)), ('title_en', wagtail.core.blocks.CharBlock(help_text='Optional: plain text title for the page group', label='Title [en]', required=False)), ('title_fr', wagtail.core.blocks.CharBlock(help_text='Optional: plain text title for the page group', label='Title [fr]', required=False)), ('page_group', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock())]), help_text='Optional: group of sub pages, displayed as an indented list', required=False))])))]))], max_num=4, min_num=0, required=False))])), ('type_b', wagtail.core.blocks.StructBlock([('highlight', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock(help_text='Page for title and link')), ('description_en', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [en]')), ('description_fr', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [fr]', required=False))])), ('columns_label', wagtail.core.blocks.static_block.StaticBlock(admin_text='\n <div class="help-block help-info">\n <p>\n <strong>Columns</strong><br>\n Column elements for the meganav module.<br>\n Maximum number of items: 2\n </p>\n </div>\n ')), ('columns', wagtail.core.blocks.StreamBlock([('page_list', wagtail.core.blocks.StructBlock([('use_first_page_as_title', wagtail.core.blocks.BooleanBlock(help_text='Optional: if checked, the first page in the list will be displayed as a title, overriding any plain text title below', required=False)), ('title_en', wagtail.core.blocks.CharBlock(help_text='Optional: plain text title for the page list', label='Title [en]', required=False)), ('title_fr', wagtail.core.blocks.CharBlock(help_text='Optional: plain text title for the page list', label='Title [fr]', required=False)), ('description_en', wagtail.core.blocks.CharBlock(help_text='Optional: description for the page list', label='Description [en]', required=False)), ('description_fr', wagtail.core.blocks.CharBlock(help_text='Optional: description for the page list', label='Description [fr]', required=False)), ('page_list', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock())]), label='Pages'))])), ('featured', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock(help_text='Page for title and link')), ('description_en', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [en]')), ('description_fr', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [fr]', required=False)), ('image', wagtail.images.blocks.ImageChooserBlock(help_text='Optional: image for the module. If not selected, the page image will be used, or a fallback if not available', required=False)), ('secondary_page', wagtail.core.blocks.PageChooserBlock(help_text='Optional: secondary page link', required=False)), ('link_label_en', wagtail.core.blocks.CharBlock(help_text='Optional: label for the secondary page link', label='Link label [en]', required=False)), ('link_label_fr', wagtail.core.blocks.CharBlock(help_text='Optional: label for the secondary page link', label='Link label [fr]', required=False))]))], block_counts={'featured': {'max_num': 1}, 'page_list': {'max_num': 1}}, max_num=2, min_num=0, required=False))])), ('type_c', wagtail.core.blocks.StructBlock([('highlight', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock(help_text='Page for title and link')), ('description_en', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [en]')), ('description_fr', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [fr]', required=False))])), ('columns_label', wagtail.core.blocks.static_block.StaticBlock(admin_text='\n <div class="help-block help-info">\n <p>\n <strong>Columns</strong><br>\n Column elements for the meganav module.<br>\n Maximum number of items: 7\n </p>\n </div>\n ')), ('columns', wagtail.core.blocks.StreamBlock([('focus_item', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock(help_text='Page for title and link')), ('description_en', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [en]')), ('description_fr', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [fr]', required=False)), ('external_url', wagtail.core.blocks.URLBlock(help_text='Optional: external URL for the secondary link. Defaults to the selected page link', required=False)), ('link_label_en', wagtail.core.blocks.CharBlock(help_text='Label for the secondary page link', label='Link label [en]')), ('link_label_fr', wagtail.core.blocks.CharBlock(help_text='Label for the secondary page link', label='Link label [fr]', required=False)), ('use_button_style', wagtail.core.blocks.BooleanBlock(help_text='Optional: if checked, the secondary link will display as a button', required=False))])), ('page_list', wagtail.core.blocks.StructBlock([('use_first_page_as_title', wagtail.core.blocks.BooleanBlock(help_text='Optional: if checked, the first page in the list will be displayed as a title, overriding any plain text title below', required=False)), ('title_en', wagtail.core.blocks.CharBlock(help_text='Optional: plain text title for the page list', label='Title [en]', required=False)), ('title_fr', wagtail.core.blocks.CharBlock(help_text='Optional: plain text title for the page list', label='Title [fr]', required=False)), ('description_en', wagtail.core.blocks.CharBlock(help_text='Optional: description for the page list', label='Description [en]', required=False)), ('description_fr', wagtail.core.blocks.CharBlock(help_text='Optional: description for the page list', label='Description [fr]', required=False)), ('page_list', wagtail.core.blocks.ListBlock(wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock())]), label='Pages'))])), ('secondary_highlight', wagtail.core.blocks.StructBlock([('page', wagtail.core.blocks.PageChooserBlock(help_text='Page for title and link')), ('description_en', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [en]')), ('description_fr', wagtail.core.blocks.TextBlock(help_text='Description for the module', label='Description [fr]', required=False)), ('link_label_en', wagtail.core.blocks.CharBlock(help_text='Label for the page link button', label='Link label [en]')), ('link_label_fr', wagtail.core.blocks.CharBlock(help_text='Label for the page link button', label='Link label [fr]', required=False))]))], block_counts={'focus_item': {'max_num': 5}, 'page_list': {'max_num': 1}, 'secondary_highlight': {'max_num': 1}}, max_num=7, min_num=0, required=False))]))], blank=True), ), ]
419.73913
9,200
0.72602
1,298
9,654
5.288906
0.102465
0.131391
0.198106
0.075747
0.876329
0.860015
0.847779
0.845885
0.832775
0.831173
0
0.003855
0.113217
9,654
22
9,201
438.818182
0.798038
0.004661
0
0
1
0.4375
0.441969
0.01655
0
0
0
0
0
1
0
false
0
0.3125
0
0.5
0
0
0
0
null
0
1
0
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
1
1
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
12
18068befc3aa9c3d3edd42d6815f3fe4078769c5
5,964
py
Python
frameworks/kafka/tests/test_ports.py
jorgelopez1/hdfs
892589180438b90486ec7530d2a63c218b20e79f
[ "Apache-2.0" ]
null
null
null
frameworks/kafka/tests/test_ports.py
jorgelopez1/hdfs
892589180438b90486ec7530d2a63c218b20e79f
[ "Apache-2.0" ]
null
null
null
frameworks/kafka/tests/test_ports.py
jorgelopez1/hdfs
892589180438b90486ec7530d2a63c218b20e79f
[ "Apache-2.0" ]
null
null
null
import pytest import sdk_cmd import sdk_install import sdk_marathon import sdk_tasks from tests import config STATIC_PORT_OPTIONS_DICT = {"brokers": {"port": 9092}} DYNAMIC_PORT_OPTIONS_DICT = {"brokers": {"port": 0}} @pytest.fixture(scope='module', autouse=True) def configure_package(configure_security): try: sdk_install.uninstall(config.PACKAGE_NAME, config.SERVICE_NAME) yield # let the test session execute finally: sdk_install.uninstall(config.PACKAGE_NAME, config.SERVICE_NAME) @pytest.mark.sanity def test_dynamic_port_comes_online(): sdk_install.install( config.PACKAGE_NAME, config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT, additional_options=DYNAMIC_PORT_OPTIONS_DICT) sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) sdk_install.uninstall(config.PACKAGE_NAME, config.SERVICE_NAME) @pytest.mark.sanity def test_static_port_comes_online(): sdk_install.install( config.PACKAGE_NAME, config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT, additional_options=STATIC_PORT_OPTIONS_DICT) sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) # static config continues to be used in the following tests: @pytest.mark.sanity def test_port_static_to_static_port(): sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) broker_ids = sdk_tasks.get_task_ids(config.SERVICE_NAME, '{}-'.format(config.DEFAULT_POD_TYPE)) marathon_config = sdk_marathon.get_config(config.SERVICE_NAME) for broker_id in range(config.DEFAULT_BROKER_COUNT): result = sdk_cmd.svc_cli(config.PACKAGE_NAME, config.SERVICE_NAME, 'broker get {}'.format(broker_id), json=True) assert result['port'] == 9092 result = sdk_cmd.svc_cli(config.PACKAGE_NAME, config.SERVICE_NAME, 'endpoints broker', json=True) assert len(result['address']) == config.DEFAULT_BROKER_COUNT assert len(result['dns']) == config.DEFAULT_BROKER_COUNT for port in result['address']: assert int(port.split(':')[-1]) == 9092 for port in result['dns']: assert int(port.split(':')[-1]) == 9092 marathon_config['env']['BROKER_PORT'] = '9095' sdk_marathon.update_app(config.SERVICE_NAME, marathon_config) sdk_tasks.check_tasks_updated(config.SERVICE_NAME, '{}-'.format(config.DEFAULT_POD_TYPE), broker_ids) # all tasks are running sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) result = sdk_cmd.svc_cli(config.PACKAGE_NAME, config.SERVICE_NAME, 'endpoints broker', json=True) assert len(result['address']) == config.DEFAULT_BROKER_COUNT assert len(result['dns']) == config.DEFAULT_BROKER_COUNT for port in result['address']: assert int(port.split(':')[-1]) == 9095 for port in result['dns']: assert int(port.split(':')[-1]) == 9095 @pytest.mark.sanity def test_port_static_to_dynamic_port(): sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) broker_ids = sdk_tasks.get_task_ids(config.SERVICE_NAME, '{}-'.format(config.DEFAULT_POD_TYPE)) marathon_config = sdk_marathon.get_config(config.SERVICE_NAME) marathon_config['env']['BROKER_PORT'] = '0' sdk_marathon.update_app(config.SERVICE_NAME, marathon_config) sdk_tasks.check_tasks_updated(config.SERVICE_NAME, '{}-'.format(config.DEFAULT_POD_TYPE), broker_ids) # all tasks are running sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) for broker_id in range(config.DEFAULT_BROKER_COUNT): result = sdk_cmd.svc_cli(config.PACKAGE_NAME, config.SERVICE_NAME, 'broker get {}'.format(broker_id), json=True) assert result['port'] != 9092 result = sdk_cmd.svc_cli(config.PACKAGE_NAME, config.SERVICE_NAME, 'endpoints broker', json=True) assert len(result['address']) == config.DEFAULT_BROKER_COUNT assert len(result['dns']) == config.DEFAULT_BROKER_COUNT for port in result['address']: assert int(port.split(':')[-1]) != 9092 for port in result['dns']: assert int(port.split(':')[-1]) != 9092 @pytest.mark.sanity def test_port_dynamic_to_dynamic_port(): sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) broker_ids = sdk_tasks.get_task_ids(config.SERVICE_NAME, '{}-'.format(config.DEFAULT_POD_TYPE)) sdk_marathon.bump_cpu_count_config(config.SERVICE_NAME, 'BROKER_CPUS') sdk_tasks.check_tasks_updated(config.SERVICE_NAME, '{}-'.format(config.DEFAULT_POD_TYPE), broker_ids) # all tasks are running sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) @pytest.mark.sanity def test_can_adjust_config_from_dynamic_to_static_port(): sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) broker_ids = sdk_tasks.get_task_ids(config.SERVICE_NAME, '{}-'.format(config.DEFAULT_POD_TYPE)) marathon_config = sdk_marathon.get_config(config.SERVICE_NAME) marathon_config['env']['BROKER_PORT'] = '9092' sdk_marathon.update_app(config.SERVICE_NAME, marathon_config) sdk_tasks.check_tasks_updated(config.SERVICE_NAME, '{}-'.format(config.DEFAULT_POD_TYPE), broker_ids) # all tasks are running sdk_tasks.check_running(config.SERVICE_NAME, config.DEFAULT_BROKER_COUNT) for broker_id in range(config.DEFAULT_BROKER_COUNT): result = sdk_cmd.svc_cli(config.PACKAGE_NAME, config.SERVICE_NAME, 'broker get {}'.format(broker_id), json=True) assert result['port'] == 9092 result = sdk_cmd.svc_cli(config.PACKAGE_NAME, config.SERVICE_NAME, 'endpoints broker', json=True) assert len(result['address']) == config.DEFAULT_BROKER_COUNT assert len(result['dns']) == config.DEFAULT_BROKER_COUNT for port in result['address']: assert int(port.split(':')[-1]) == 9092 for port in result['dns']: assert int(port.split(':')[-1]) == 9092
38.980392
120
0.740275
821
5,964
5.051157
0.105968
0.115987
0.151676
0.133108
0.905474
0.880878
0.872438
0.872438
0.856523
0.843742
0
0.012873
0.140342
5,964
152
121
39.236842
0.795982
0.029343
0
0.747573
0
0
0.054825
0
0
0
0
0
0.184466
1
0.067961
false
0
0.058252
0
0.126214
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
180f823e937386b103e048cd20df5dbf30fea089
40,491
py
Python
tests/unit/pypyr/pipelinerunner_test.py
FooBarQuaxx/pypyr
ebe56b2200a53e2f38c78bbb42d466bb1556c37c
[ "Apache-2.0" ]
null
null
null
tests/unit/pypyr/pipelinerunner_test.py
FooBarQuaxx/pypyr
ebe56b2200a53e2f38c78bbb42d466bb1556c37c
[ "Apache-2.0" ]
null
null
null
tests/unit/pypyr/pipelinerunner_test.py
FooBarQuaxx/pypyr
ebe56b2200a53e2f38c78bbb42d466bb1556c37c
[ "Apache-2.0" ]
null
null
null
"""pipelinerunner.py unit tests.""" import logging import pytest from unittest.mock import call, patch from pypyr.cache.loadercache import pypeloader_cache from pypyr.cache.parsercache import contextparser_cache from pypyr.cache.pipelinecache import pipeline_cache from pypyr.context import Context from pypyr.errors import (ContextError, KeyNotInContextError, PyModuleNotFoundError, Stop, StopPipeline, StopStepGroup) import pypyr.moduleloader import pypyr.pipelinerunner from tests.common.utils import DeepCopyMagicMock # ------------------------- parser mocks -------------------------------------# from tests.common.utils import patch_logger def mock_parser(args): """Arbitrary mock function to execute instead of get_parsed_context.""" return Context({'key1': 'created in mock parser', 'key2': args}) def mock_parser_none(args): """Return None, mocking get_parsed_context.""" return None # ------------------------- parser mocks -------------------------------------# # ------------------------- get_parsed_context--------------------------------# def test_get_parsed_context_no_parser(): """On get_parsed_context return empty Context when no parser specified.""" context = pypyr.pipelinerunner.get_parsed_context({}, None) assert isinstance(context, Context) assert len(context) == 0 def test_get_parsed_context_parser_not_found(): """On get_parsed_context raise if parser module specified but not found.""" with pytest.raises(PyModuleNotFoundError): pypyr.pipelinerunner.get_parsed_context( {'context_parser': 'unlikelyblahmodulenameherexxssz'}, None) @patch('pypyr.moduleloader.get_module') def test_get_parsed_context_parser_returns_none(mocked_moduleloader): """On get_parsed_context return empty Context when parser returns None.""" mocked_moduleloader.return_value.get_parsed_context = mock_parser_none context = pypyr.pipelinerunner.get_parsed_context( {'context_parser': 'specifiedparserhere'}, ['in arg here']) mocked_moduleloader.assert_called_once_with('specifiedparserhere') assert isinstance(context, Context) assert len(context) == 0 @patch('pypyr.moduleloader.get_module') def test_get_parsed_context_parser_pass(mocked_moduleloader): """On get_parsed_context pass arg param and returns context.""" contextparser_cache.clear() mocked_moduleloader.return_value.get_parsed_context = mock_parser context = pypyr.pipelinerunner.get_parsed_context( {'context_parser': 'specifiedparserhere'}, 'in arg here') mocked_moduleloader.assert_called_once_with('specifiedparserhere') assert isinstance(context, Context) assert len(context) == 2 assert context['key1'] == 'created in mock parser' assert context['key2'] == 'in arg here' @patch('pypyr.moduleloader.get_module', return_value=3) def test_get_parser_context_signature_wrong(mocked_moduleloader): """Raise when parser found but no get_parsed_context attr.""" contextparser_cache.clear() with pytest.raises(AttributeError) as err_info: pypyr.pipelinerunner.get_parsed_context( {'context_parser': 'specifiedparserhere'}, 'in arg here') assert str(err_info.value) == ("'int' object has no attribute " "'get_parsed_context'") # ------------------------- get_parsed_context--------------------------------# # ------------------------- main ---------------------------------------------# @patch('pypyr.log.logger.set_up_notify_log_level') @patch('pypyr.pipelinerunner.load_and_run_pipeline') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='arb/dir') def test_main_pass(mocked_get_mocked_work_dir, mocked_set_work_dir, mocked_run_pipeline, mocked_set_up_notify): """Main initializes and runs pipelines.""" pipeline_cache.clear() pypyr.pipelinerunner.main(pipeline_name='arb pipe', pipeline_context_input='arb context input', working_dir='arb/dir', groups=['g'], success_group='sg', failure_group='fg') mocked_set_up_notify.assert_called_once() mocked_set_work_dir.assert_called_once_with('arb/dir') mocked_run_pipeline.assert_called_once_with( pipeline_name='arb pipe', pipeline_context_input='arb context input', groups=['g'], success_group='sg', failure_group='fg') @patch('pypyr.pipelinerunner.load_and_run_pipeline', side_effect=ContextError('arb')) @patch('pypyr.moduleloader.set_working_directory') def test_main_fail(mocked_work_dir, mocked_run_pipeline): """Main raise unhandled error on pipeline failure.""" pipeline_cache.clear() with pytest.raises(ContextError) as err_info: pypyr.pipelinerunner.main(pipeline_name='arb pipe', pipeline_context_input='arb context input', working_dir='arb/dir') assert str(err_info.value) == "arb" mocked_work_dir.assert_called_once_with('arb/dir') mocked_run_pipeline.assert_called_once_with( pipeline_name='arb pipe', pipeline_context_input='arb context input', groups=None, success_group=None, failure_group=None) # ------------------------- main ---------------------------------------------# # ------------------------- prepare_context - --------------------------------# @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context()) def test_prepare_context_empty_parse(mocked_get_parsed_context): """Empty parsed_context works.""" context = Context({'c1': 'cv1', 'c2': 'cv2'}) pypyr.pipelinerunner.prepare_context(pipeline='pipe def', context_in_args='arb context input', context=context) mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') assert context == {'c1': 'cv1', 'c2': 'cv2'} @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context({'a': 'av1', 'c1': 'new value from parsed'})) def test_prepare_context_with_parse_merge(mocked_get_parsed_context): """On parsed_context override context.""" context = Context({'c1': 'cv1', 'c2': 'cv2'}) pypyr.pipelinerunner.prepare_context(pipeline='pipe def', context_in_args='arb context input', context=context) mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') assert context == {'a': 'av1', 'c1': 'new value from parsed', 'c2': 'cv2'} # ------------------------- prepare_context - --------------------------------# # ------------------------- run_pipeline -------------------------------------# @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context({'a': 'b'})) @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='arb/dir') def test_load_and_run_pipeline_pass(mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """On run_pipeline pass correct params to all methods.""" pipeline_cache.clear() pypeloader_cache.clear() with patch('pypyr.context.Context') as mock_context: mock_context.return_value = Context() pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input') mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='arb/dir') mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') # assure that freshly created context instance does have working dir set assert mock_context.return_value.working_dir == 'arb/dir' mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context={'a': 'b'}) # No called steps, just on_failure since err on parse context already sr = mocked_steps_runner.return_value sr.run_step_groups.assert_called_once_with(groups=['steps'], success_group='on_success', failure_group='on_failure') sr.run_failure_step_group.assert_not_called() @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context()) @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='arb/dir') def test_load_and_run_pipeline_pass_skip_parse_context( mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """run_pipeline passes correct params to all methods.""" pipeline_cache.clear() pypeloader_cache.clear() pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', parse_input=False) mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='arb/dir') mocked_get_parsed_context.assert_not_called() mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context={}) # No called steps, just on_failure since err on parse context already sr = mocked_steps_runner.return_value sr.run_step_groups.assert_called_once_with(groups=['steps'], success_group='on_success', failure_group='on_failure') sr.run_failure_step_group.assert_not_called() @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context') @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='arb/dir') def test_load_and_run_pipeline_parse_context_error( mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """run_pipeline on_failure with empty Context if context parse fails.""" pipeline_cache.clear() pypeloader_cache.clear() mocked_get_parsed_context.side_effect = ContextError with pytest.raises(ContextError): pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input') mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='arb/dir') mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context=Context()) # No called steps, just on_failure since err on parse context already sr = mocked_steps_runner.return_value sr.run_step_groups.assert_not_called() sr.run_failure_step_group.assert_called_once_with('on_failure') @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context()) @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='arb/dir') def test_load_and_run_pipeline_steps_error_raises( mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """run_pipeline raises error if steps group fails.""" pipeline_cache.clear() pypeloader_cache.clear() # First time it runs is steps - give a KeyNotInContextError. mocked_steps_runner.return_value.run_step_groups.side_effect = ( KeyNotInContextError) with pytest.raises(KeyNotInContextError): pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input') mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='arb/dir') mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') mocked_steps_runner.return_value.run_step_groups.assert_called_once_with( groups=['steps'], success_group='on_success', failure_group='on_failure' ) mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context={}) @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context({'1': 'context 1', '2': 'context2'})) @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='from/context') def test_load_and_run_pipeline_with_existing_context_pass( mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """Run run_pipeline pass correct params to all methods.""" pipeline_cache.clear() pypeloader_cache.clear() existing_context = Context({'2': 'original', '3': 'new'}) existing_context.working_dir = 'from/context' pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', context=existing_context) assert existing_context.working_dir == 'from/context' mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='from/context') mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') mocked_steps_runner.return_value.run_step_groups.assert_called_once_with( groups=['steps'], success_group='on_success', failure_group='on_failure' ) mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context={'1': 'context 1', '2': 'context2', '3': 'new'}) @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context({'1': 'context 1', '2': 'context2'})) @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='from/context') def test_load_and_run_pipeline_with_group_specified( mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """Pass run_pipeline with specified group.""" pipeline_cache.clear() pypeloader_cache.clear() existing_context = Context({'2': 'original', '3': 'new'}) existing_context.working_dir = 'from/context' pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', context=existing_context, groups=['arb1', 'arb2']) assert existing_context.working_dir == 'from/context' mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='from/context') mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') mocked_steps_runner.return_value.run_step_groups.assert_called_once_with( groups=['arb1', 'arb2'], success_group=None, failure_group=None ) mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context={'1': 'context 1', '2': 'context2', '3': 'new'}) @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context({'1': 'context 1', '2': 'context2'})) @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='from/context') def test_load_and_run_pipeline_with_success_group_specified( mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """Pass run_pipeline with specified success group.""" pipeline_cache.clear() pypeloader_cache.clear() existing_context = Context({'2': 'original', '3': 'new'}) existing_context.working_dir = 'from/context' pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', context=existing_context, success_group='arb1') assert existing_context.working_dir == 'from/context' mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='from/context') mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') mocked_steps_runner.return_value.run_step_groups.assert_called_once_with( groups=['steps'], success_group='arb1', failure_group=None ) mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context={'1': 'context 1', '2': 'context2', '3': 'new'}) @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context({'1': 'context 1', '2': 'context2'})) @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='from/context') def test_load_and_run_pipeline_with_failure_group_specified( mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """Pass run_pipeline with specified failure group.""" pipeline_cache.clear() pypeloader_cache.clear() existing_context = Context({'2': 'original', '3': 'new'}) existing_context.working_dir = 'from/context' pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', context=existing_context, failure_group='arb1') assert existing_context.working_dir == 'from/context' mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='from/context') mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') mocked_steps_runner.return_value.run_step_groups.assert_called_once_with( groups=['steps'], success_group=None, failure_group='arb1' ) mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context={'1': 'context 1', '2': 'context2', '3': 'new'}) @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context', return_value=Context({'1': 'context 1', '2': 'context2'})) @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') @patch('pypyr.moduleloader.set_working_directory') @patch('pypyr.moduleloader.get_working_directory', return_value='from/context') def test_load_and_run_pipeline_with_group_and_failure_group_specified( mocked_get_work_dir, mocked_set_work_dir, mocked_get_pipe_def, mocked_get_parsed_context, mocked_steps_runner): """Pass run_pipeline with specified group and failure group.""" pipeline_cache.clear() pypeloader_cache.clear() existing_context = Context({'2': 'original', '3': 'new'}) existing_context.working_dir = 'from/context' pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', context=existing_context, groups=['arb1'], failure_group='arb2') assert existing_context.working_dir == 'from/context' mocked_set_work_dir.assert_not_called() mocked_get_pipe_def.assert_called_once_with(pipeline_name='arb pipe', working_dir='from/context') mocked_get_parsed_context.assert_called_once_with( pipeline='pipe def', context_in_args='arb context input') mocked_steps_runner.return_value.run_step_groups.assert_called_once_with( groups=['arb1'], success_group=None, failure_group='arb2' ) mocked_steps_runner.assert_called_once_with(pipeline_definition='pipe def', context={'1': 'context 1', '2': 'context2', '3': 'new'}) @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context') def test_run_pipeline_parse_context_error_failure( mocked_get_parsed_context, mocked_steps_runner): """Raise on_failure from run_pipeline.""" mocked_get_parsed_context.side_effect = ValueError('arb') sr = mocked_steps_runner.return_value ctx = pypyr.context.Context() with pytest.raises(ValueError) as err: pypyr.pipelinerunner.run_pipeline( pipeline='arb pipe', context=ctx, pipeline_context_input='arb context input', groups=['gr'], success_group='sg', failure_group='fg') assert str(err.value) == 'arb' mocked_get_parsed_context.assert_called_once_with( pipeline='arb pipe', context_in_args='arb context input') mocked_steps_runner.assert_called_once_with(pipeline_definition='arb pipe', context=ctx) # No called steps, just on_failure since err on parse context already sr.run_step_groups.assert_not_called() sr.run_failure_step_group.assert_called_once_with('fg') @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context') def test_run_pipeline_parse_context_error_failure_stop( mocked_get_parsed_context, mocked_steps_runner): """Raise on_failure from run_pipeline with Stop.""" mocked_get_parsed_context.side_effect = ValueError('arb') sr = mocked_steps_runner.return_value sr.run_failure_step_group.side_effect = Stop() ctx = pypyr.context.Context() with pytest.raises(Stop): pypyr.pipelinerunner.run_pipeline( pipeline='arb pipe', context=ctx, pipeline_context_input='arb context input') mocked_get_parsed_context.assert_called_once_with( pipeline='arb pipe', context_in_args='arb context input') mocked_steps_runner.assert_called_once_with(pipeline_definition='arb pipe', context=ctx) # No called steps, just on_failure since err on parse context already sr.run_step_groups.assert_not_called() sr.run_failure_step_group.assert_called_once_with('on_failure') @patch('pypyr.pipelinerunner.StepsRunner', autospec=True) @patch('pypyr.pipelinerunner.get_parsed_context') def test_run_pipeline_parse_context_error_failure_stopstepgroup( mocked_get_parsed_context, mocked_steps_runner): """With run_pipeline on_failure swallow StopStepGroup.""" mocked_get_parsed_context.side_effect = ValueError('arb') sr = mocked_steps_runner.return_value sr.run_failure_step_group.side_effect = StopStepGroup() ctx = pypyr.context.Context() with pytest.raises(ValueError) as err: pypyr.pipelinerunner.run_pipeline( pipeline='arb pipe', context=ctx, pipeline_context_input='arb context input') assert str(err.value) == 'arb' mocked_get_parsed_context.assert_called_once_with( pipeline='arb pipe', context_in_args='arb context input') mocked_steps_runner.assert_called_once_with(pipeline_definition='arb pipe', context=ctx) # No called steps, just on_failure since err on parse context already sr.run_step_groups.assert_not_called() sr.run_failure_step_group.assert_called_once_with('on_failure') # ------------------------- run_pipeline -------------------------------------# # ------------------------- loader -------------------------------------------# def test_arbitrary_loader_module_not_found(): """Raise when loader not found.""" with pytest.raises(PyModuleNotFoundError): pipeline_cache.clear() pypyr.moduleloader.set_working_directory('arb/dir') pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', loader='not_found_loader' ) def test_loader_no_get_pipeline_definition(): """Arbitrary loader module without `get_pipeline_definition` function.""" import sys current_module = sys.modules[__name__] pypyr.moduleloader.set_working_directory('arb/dir') with patch_logger( 'pypyr.cache.loadercache', logging.ERROR) as mock_logger_error: with pytest.raises(AttributeError) as err: pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', loader=__name__) assert str(err.value) == f"module '{__name__}' " \ "has no attribute 'get_pipeline_definition'" mock_logger_error.assert_called_once_with( f"The pipeline loader {current_module} doesn't have a " "get_pipeline_definition(pipeline_name, working_dir) function." ) @patch('pypyr.pipelinerunner.run_pipeline') @patch('pypyr.pypeloaders.fileloader.get_pipeline_definition', return_value='pipe def') def test_empty_loader_set_up_to_default(mock_get_pipeline_definition, mock_run_pipeline): """Default loader should be pypyr.pypeloaders.fileloader.""" pypyr.moduleloader.set_working_directory('arb/dir') pipeline_cache.clear() pypeloader_cache.clear() pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', ) mock_get_pipeline_definition.assert_called_once_with( pipeline_name='arb pipe', working_dir='arb/dir' ) mock_run_pipeline.assert_called_once_with( context={}, parse_input=True, pipeline='pipe def', pipeline_context_input='arb context input', groups=None, success_group=None, failure_group=None ) @patch('pypyr.pipelinerunner.run_pipeline') def test_arb_loader(mock_run_pipeline): """Test loader set up.""" pypyr.moduleloader.set_working_directory('tests') pipeline_cache.clear() pypyr.pipelinerunner.load_and_run_pipeline( pipeline_name='arb pipe', pipeline_context_input='arb context input', loader='arbpack.arbloader', groups=None, success_group=None, failure_group=None ) mock_run_pipeline.assert_called_once_with( context={}, parse_input=True, pipeline={'pipeline_name': 'arb pipe', 'working_dir': 'tests'}, pipeline_context_input='arb context input', groups=None, success_group=None, failure_group=None ) # ------------------------- loader -------------------------------------------# # ------------------------- Stop & StopPipeline ------------------------------# def get_step_pipeline(): """Test pipeline for jump.""" return { 'sg1': [ 'sg1.step1', 'sg1.step2' ], 'sg2': [ 'sg2.step1', 'sg2.step2' ], 'sg3': [ 'sg3.step1', 'sg3.step2' ], 'sg4': [ 'sg4.step1', 'sg4.step2' ], 'sg5': [ 'sg5.step1' ], 'sg6': [ 'sg6.step1', 'sg6.step2' ] } def nothing_step(context): """Mock step.""" pass def stop_pipe_step(context): """Mock stop pipeline step.""" raise StopPipeline() def stop_all_step(context): """Mock stop all step.""" raise Stop() @patch('pypyr.cache.stepcache.step_cache.get_step') def test_stop_pipeline(mock_step_cache): """When StopPipeline stop pipeline execution.""" # Sequence: sg2 - sg2.1, 2.2 # sg3 - sg3.1 (StopPipeline) mock_step_cache.side_effect = [ nothing_step, # 2.1 nothing_step, # 2.2 stop_pipe_step, # 3.1 ] context = Context() context.pipeline_name = 'arb' pypyr.pipelinerunner.run_pipeline( pipeline=get_step_pipeline(), context=context, pipeline_context_input='arb context input', groups=['sg2', 'sg3', 'sg4', 'sg1'], success_group='sg5', failure_group=None ) assert mock_step_cache.mock_calls == [call('sg2.step1'), call('sg2.step2'), call('sg3.step1') ] @patch('pypyr.cache.stepcache.step_cache.get_step') def test_stop_pipeline_for(mock_step_cache): """When StopPipeline stop pipeline execution in for loop.""" # Sequence: sg2 - sg2.1, 2.2 # sg3 - sg3.1 x2 (StopPipeline) nothing_mock = DeepCopyMagicMock() mock312 = DeepCopyMagicMock() def step31(context): mock312(context) if context['i'] == 'two': raise StopPipeline() mock_step_cache.side_effect = [ nothing_mock, # 2.1 nothing_mock, # 2.2 step31, # 3.1 ] context = Context() context.pipeline_name = 'arb' pypyr.pipelinerunner.run_pipeline( pipeline=get_for_step_pipeline(), context=context, pipeline_context_input='arb context input', groups=['sg2', 'sg3', 'sg4', 'sg1'], success_group='sg5', failure_group=None ) assert nothing_mock.mock_calls == [call({}), call({}) ] assert mock312.mock_calls == [call({'i': 'one'}), call({'i': 'two'})] assert mock_step_cache.mock_calls == [call('sg2.step1'), call('sg2.step2'), call('sg3.step1') ] def get_retry_step_pipeline(): """Test pipeline for retry loop.""" return { 'sg1': [ 'sg1.step1', 'sg1.step2' ], 'sg2': [ 'sg2.step1', 'sg2.step2' ], 'sg3': [ {'name': 'sg3.step1', 'retry': {'max': 3} }, 'sg3.step2' ], 'sg4': [ 'sg4.step1', 'sg4.step2' ], 'sg5': [ 'sg5.step1' ], 'sg6': [ 'sg6.step1', 'sg6.step2' ] } @patch('pypyr.cache.stepcache.step_cache.get_step') def test_stop_pipeline_retry(mock_step_cache): """When StopPipeline stop pipeline execution in retry loop.""" # Sequence: sg2 - sg2.1, 2.2 # sg3 - sg3.1 x2 (StopPipeline) nothing_mock = DeepCopyMagicMock() mock312 = DeepCopyMagicMock() def step31(context): mock312(context) if context['retryCounter'] == 2: raise StopPipeline() else: raise ValueError(context['retryCounter']) mock_step_cache.side_effect = [ nothing_mock, # 2.1 nothing_mock, # 2.2 step31, # 3.1 ] context = Context() context.pipeline_name = 'arb' pypyr.pipelinerunner.run_pipeline( pipeline=get_retry_step_pipeline(), context=context, pipeline_context_input='arb context input', groups=['sg2', 'sg3', 'sg4', 'sg1'], success_group='sg5', failure_group=None ) assert nothing_mock.mock_calls == [call({}), call({}) ] assert mock312.mock_calls == [call({'retryCounter': 1}), call({'retryCounter': 2})] assert mock_step_cache.mock_calls == [call('sg2.step1'), call('sg2.step2'), call('sg3.step1') ] @patch('pypyr.cache.stepcache.step_cache.get_step') @patch('pypyr.cache.pipelinecache.pipeline_cache.get_pipeline', return_value=get_step_pipeline()) def test_stop_all(mock_get_pipe_def, mock_step_cache): """Stop stops pipeline execution.""" # Sequence: sg2 - sg2.1, 2.2 # sg3 - sg3.1 (StopPipeline) mock_step_cache.side_effect = [ nothing_step, # 2.1 nothing_step, # 2.2 stop_all_step, # 3.1 ] pypyr.pipelinerunner.main( pipeline_name='arb', pipeline_context_input='arb context input', working_dir='/arb', groups=['sg2', 'sg3', 'sg4', 'sg1'], success_group='sg5', failure_group=None ) assert mock_step_cache.mock_calls == [call('sg2.step1'), call('sg2.step2'), call('sg3.step1') ] def get_while_step_pipeline(): """Test pipeline for while.""" return { 'sg1': [ 'sg1.step1', 'sg1.step2' ], 'sg2': [ 'sg2.step1', 'sg2.step2' ], 'sg3': [ {'name': 'sg3.step1', 'while': { 'max': 3}, }, 'sg3.step2' ], 'sg4': [ 'sg4.step1', 'sg4.step2' ], 'sg5': [ 'sg5.step1' ], 'sg6': [ 'sg6.step1', 'sg6.step2' ] } @patch('pypyr.cache.stepcache.step_cache.get_step') @patch('pypyr.cache.pipelinecache.pipeline_cache.get_pipeline', return_value=get_while_step_pipeline()) def test_stop_all_while(mock_get_pipe_def, mock_step_cache): """Stop stops pipeline execution inside a while.""" # Sequence: sg2 - sg2.1, 2.2 # sg3 - sg3.1 loop 3, StopPipeline on 2 nothing_mock = DeepCopyMagicMock() mock312 = DeepCopyMagicMock() def step31(context): mock312(context) if context['whileCounter'] == 2: raise Stop() mock_step_cache.side_effect = [ nothing_mock, # 2.1 nothing_mock, # 2.2 step31 # 3.1.2 ] pypyr.pipelinerunner.main( pipeline_name='arb', pipeline_context_input='arb context input', working_dir='/arb', groups=['sg2', 'sg3', 'sg4', 'sg1'], success_group='sg5', failure_group=None ) assert mock_step_cache.mock_calls == [call('sg2.step1'), call('sg2.step2'), call('sg3.step1') ] assert nothing_mock.mock_calls == [call({}), call({}) ] assert mock312.mock_calls == [call({'whileCounter': 1}), call({'whileCounter': 2})] def get_for_step_pipeline(): """Test pipeline for for loop.""" return { 'sg1': [ 'sg1.step1', 'sg1.step2' ], 'sg2': [ 'sg2.step1', 'sg2.step2' ], 'sg3': [ {'name': 'sg3.step1', 'foreach': ['one', 'two', 'three'] }, 'sg3.step2' ], 'sg4': [ 'sg4.step1', 'sg4.step2' ], 'sg5': [ 'sg5.step1' ], 'sg6': [ 'sg6.step1', 'sg6.step2' ] } @patch('pypyr.cache.stepcache.step_cache.get_step') @patch('pypyr.cache.pipelinecache.pipeline_cache.get_pipeline', return_value=get_for_step_pipeline()) def test_stop_all_for(mock_get_pipe_def, mock_step_cache): """Stop stops pipeline execution inside a for loop.""" # Sequence: sg2 - sg2.1, 2.2 # sg3 - sg3.1 loop 3, StopPipeline on 2 nothing_mock = DeepCopyMagicMock() mock312 = DeepCopyMagicMock() def step31(context): mock312(context) if context['i'] == 'two': raise Stop() mock_step_cache.side_effect = [ nothing_mock, # 2.1 nothing_mock, # 2.2 step31 # 3.1.2 ] pypyr.pipelinerunner.main( pipeline_name='arb', pipeline_context_input='arb context input', working_dir='/arb', groups=['sg2', 'sg3', 'sg4', 'sg1'], success_group='sg5', failure_group=None ) assert mock_step_cache.mock_calls == [call('sg2.step1'), call('sg2.step2'), call('sg3.step1') ] assert nothing_mock.mock_calls == [call({}), call({}) ] assert mock312.mock_calls == [call({'i': 'one'}), call({'i': 'two'})] # ------------------------- END Stop & StopPipeline --------------------------#
36.282258
79
0.60858
4,381
40,491
5.282356
0.052499
0.032409
0.046323
0.048397
0.861464
0.833549
0.808962
0.788739
0.773399
0.761645
0
0.014262
0.267492
40,491
1,115
80
36.314798
0.765981
0.096985
0
0.766204
0
0
0.185297
0.085691
0
0
0
0
0.125
1
0.050926
false
0.006944
0.015046
0
0.072917
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
183dd4a44b239ee0dae7efc25524fe3979f85833
8,069
py
Python
fireant/tests/queries/test_build_orderbys.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
2
2019-05-12T15:14:52.000Z
2020-05-28T07:13:34.000Z
fireant/tests/queries/test_build_orderbys.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
null
null
null
fireant/tests/queries/test_build_orderbys.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import fireant as f from fireant.tests.dataset.mocks import mock_dataset from pypika import Order timestamp_daily = f.day(mock_dataset.fields.timestamp) class QueryBuilderOrderTests(TestCase): maxDiff = None def test_build_query_order_by(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(timestamp_daily) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$timestamp"', str(queries[0])) def test_build_query_order_by_asc(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(timestamp_daily, orientation=Order.asc) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$timestamp" ASC', str(queries[0])) def test_build_query_order_by_desc(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(timestamp_daily, orientation=Order.desc) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$timestamp" DESC', str(queries[0])) def test_build_query_order_by_aggregate_field(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(mock_dataset.fields.votes) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$votes"', str(queries[0])) def test_build_query_order_by_aggregate_field_asc(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(mock_dataset.fields.votes, orientation=Order.asc) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$votes" ASC', str(queries[0])) def test_build_query_order_by_aggregate_field_desc(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(mock_dataset.fields.votes, orientation=Order.desc) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$votes" DESC', str(queries[0])) def test_build_query_order_by_multiple_dimensions(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily, mock_dataset.fields['candidate-name']) \ .orderby(timestamp_daily) \ .orderby(mock_dataset.fields['candidate-name']) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' '"candidate_name" "$candidate-name",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp","$candidate-name" ' 'ORDER BY "$timestamp","$candidate-name"', str(queries[0])) def test_build_query_order_by_multiple_dimensions_with_different_orientations(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily, mock_dataset.fields['candidate-name']) \ .orderby(timestamp_daily, orientation=Order.desc) \ .orderby(mock_dataset.fields['candidate-name'], orientation=Order.asc) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' '"candidate_name" "$candidate-name",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp","$candidate-name" ' 'ORDER BY "$timestamp" DESC,"$candidate-name" ASC', str(queries[0])) def test_build_query_order_by_aggregate_fields_and_fields(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(timestamp_daily) \ .orderby(mock_dataset.fields.votes) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$timestamp","$votes"', str(queries[0])) def test_build_query_order_by_aggregate_fields_and_fields_with_different_orientations(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(timestamp_daily, orientation=Order.asc) \ .orderby(mock_dataset.fields.votes, orientation=Order.desc) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$timestamp" ASC,"$votes" DESC', str(queries[0])) def test_build_query_order_by_field_not_selected_in_query_added_to_selects(self): queries = mock_dataset.query \ .widget(f.ReactTable(mock_dataset.fields.votes)) \ .dimension(timestamp_daily) \ .orderby(mock_dataset.fields.wins) \ .sql self.assertEqual(len(queries), 1) self.assertEqual('SELECT ' 'TRUNC("timestamp",\'DD\') "$timestamp",' 'SUM("votes") "$votes",' 'SUM("is_winner") "$wins" ' 'FROM "politics"."politician" ' 'GROUP BY "$timestamp" ' 'ORDER BY "$wins"', str(queries[0]))
41.379487
96
0.525096
735
8,069
5.579592
0.092517
0.091197
0.091197
0.085833
0.927091
0.927091
0.90417
0.898317
0.887345
0.87881
0
0.004171
0.346263
8,069
194
97
41.592784
0.77327
0
0
0.77707
0
0
0.21626
0.047837
0
0
0
0
0.140127
1
0.070064
false
0
0.025478
0
0.10828
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
185bd20d4f302507714238dfcb532edd28ffa04b
155
py
Python
src/scripts/__init__.py
arnabbiswas1/predict_future_sales
24447c7111ca286197a0a5cf7c982aad8e38e3c8
[ "MIT" ]
null
null
null
src/scripts/__init__.py
arnabbiswas1/predict_future_sales
24447c7111ca286197a0a5cf7c982aad8e38e3c8
[ "MIT" ]
null
null
null
src/scripts/__init__.py
arnabbiswas1/predict_future_sales
24447c7111ca286197a0a5cf7c982aad8e38e3c8
[ "MIT" ]
null
null
null
INPUT_DATA_DIR = '/home/jupyter/kaggle/predict_future_sales/data/read_only' PROCESSED_DATA_DIR = '/home/jupyter/kaggle/predict_future_sales/data/processed'
77.5
79
0.851613
23
155
5.347826
0.521739
0.113821
0.178862
0.292683
0.747967
0.747967
0.747967
0.747967
0.747967
0
0
0
0.032258
155
2
79
77.5
0.82
0
0
0
0
0
0.717949
0.717949
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
1
0
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
a186cf9d5ec94d40c4a4adede25bda48ff6e06e2
69,814
py
Python
mpf/tests/test_SegmentDisplay.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
null
null
null
mpf/tests/test_SegmentDisplay.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
null
null
null
mpf/tests/test_SegmentDisplay.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
null
null
null
from unittest.mock import patch, call, ANY, Mock from mpf.core.rgb_color import RGBColor from mpf.devices.segment_display.text_stack_entry import TextStackEntry from mpf.devices.segment_display.transitions import NoTransition, PushTransition, CoverTransition, UncoverTransition, \ WipeTransition, TransitionRunner, SplitTransition from mpf.devices.segment_display.segment_display_text import SegmentDisplayText from mpf.platforms.interfaces.segment_display_platform_interface import FlashingType, \ SegmentDisplaySoftwareFlashPlatformInterface from mpf.tests.MpfFakeGameTestCase import MpfFakeGameTestCase from mpf.tests.MpfTestCase import test_config class TestSegmentDisplay(MpfFakeGameTestCase): def get_config_file(self): return 'config.yaml' def get_machine_path(self): return 'tests/machine_files/segment_display/' @test_config("game.yaml") def test_game(self): """Test segment displays in a game for the documentation.""" display1 = self.machine.segment_displays["display1"] display2 = self.machine.segment_displays["display2"] display3 = self.machine.segment_displays["display3"] display4 = self.machine.segment_displays["display4"] display5 = self.machine.segment_displays["display5"] self.assertEqual("", display1.hw_display.text) self.assertEqual("", display2.hw_display.text) self.assertEqual("", display3.hw_display.text) self.assertEqual("", display4.hw_display.text) self.assertEqual("", display5.hw_display.text) self.start_game() self.assertEqual("0", display1.hw_display.text) self.assertEqual(FlashingType.FLASH_ALL, display1.hw_display.flashing) self.assertEqual("", display2.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display2.hw_display.flashing) self.assertEqual("", display3.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display3.hw_display.flashing) self.assertEqual("", display4.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display4.hw_display.flashing) self.assertEqual("1", display5.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display5.hw_display.flashing) self.add_player() self.assertEqual("0", display1.hw_display.text) self.assertEqual(FlashingType.FLASH_ALL, display1.hw_display.flashing) self.assertEqual("0", display2.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display2.hw_display.flashing) self.assertEqual("", display3.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display3.hw_display.flashing) self.assertEqual("", display4.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display4.hw_display.flashing) self.assertEqual("1", display5.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display5.hw_display.flashing) self.machine.game.player.score += 100 self.advance_time_and_run() self.assertEqual("100", display1.hw_display.text) self.drain_all_balls() self.assertEqual("100", display1.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display1.hw_display.flashing) self.assertEqual("0", display2.hw_display.text) self.assertEqual(FlashingType.FLASH_ALL, display2.hw_display.flashing) self.assertEqual("", display3.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display3.hw_display.flashing) self.assertEqual("", display4.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display4.hw_display.flashing) self.assertEqual("1", display5.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display5.hw_display.flashing) self.machine.game.player.score += 23 self.advance_time_and_run() self.assertEqual("100", display1.hw_display.text) self.assertEqual("23", display2.hw_display.text) self.drain_all_balls() self.assertEqual("100", display1.hw_display.text) self.assertEqual(FlashingType.FLASH_ALL, display1.hw_display.flashing) self.assertEqual("23", display2.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display2.hw_display.flashing) self.assertEqual("", display3.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display3.hw_display.flashing) self.assertEqual("", display4.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display4.hw_display.flashing) self.assertEqual("2", display5.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display5.hw_display.flashing) self.drain_all_balls() self.assertEqual("100", display1.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display1.hw_display.flashing) self.assertEqual("23", display2.hw_display.text) self.assertEqual(FlashingType.FLASH_ALL, display2.hw_display.flashing) self.assertEqual("", display3.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display3.hw_display.flashing) self.assertEqual("", display4.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display4.hw_display.flashing) self.assertEqual("2", display5.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display5.hw_display.flashing) self.drain_all_balls() self.assertEqual("100", display1.hw_display.text) self.assertEqual(FlashingType.FLASH_ALL, display1.hw_display.flashing) self.assertEqual("23", display2.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display2.hw_display.flashing) self.assertEqual("", display3.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display3.hw_display.flashing) self.assertEqual("", display4.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display4.hw_display.flashing) self.assertEqual("3", display5.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display5.hw_display.flashing) self.drain_all_balls() self.assertEqual("100", display1.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display1.hw_display.flashing) self.assertEqual("23", display2.hw_display.text) self.assertEqual(FlashingType.FLASH_ALL, display2.hw_display.flashing) self.assertEqual("", display3.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display3.hw_display.flashing) self.assertEqual("", display4.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display4.hw_display.flashing) self.assertEqual("3", display5.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display5.hw_display.flashing) # game ended self.drain_all_balls() self.assertGameIsNotRunning() self.assertEqual("100", display1.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display1.hw_display.flashing) self.assertEqual("23", display2.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display2.hw_display.flashing) self.assertEqual("", display3.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display3.hw_display.flashing) self.assertEqual("", display4.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display4.hw_display.flashing) self.assertEqual("", display5.hw_display.text) self.assertEqual(FlashingType.NO_FLASH, display5.hw_display.flashing) def test_player(self): display1 = self.machine.segment_displays["display1"] display2 = self.machine.segment_displays["display2"] self.post_event("test_event1") self.advance_time_and_run() self.assertEqual("HELLO1", display1.hw_display.text) self.assertEqual("HELLO2", display2.hw_display.text) self.post_event("test_event2") self.advance_time_and_run() self.assertEqual("", display1.hw_display.text) self.assertEqual("HELLO2", display2.hw_display.text) self.post_event("test_flashing") self.assertEqual(FlashingType.FLASH_ALL, display1.hw_display.flashing) self.post_event("test_no_flashing") self.assertEqual(FlashingType.NO_FLASH, display1.hw_display.flashing) self.post_event("test_event3") self.advance_time_and_run() self.assertEqual("", display1.hw_display.text) self.assertEqual("", display2.hw_display.text) self.post_event("test_score") self.advance_time_and_run() self.assertEqual("1: 0", display1.hw_display.text) self.assertEqual("2: 0", display2.hw_display.text) self.machine.variables.set_machine_var("test", 42) self.advance_time_and_run() self.assertEqual("1: 0", display1.hw_display.text) self.assertEqual("2: 42", display2.hw_display.text) self.start_game() self.machine.game.player.score += 100 self.advance_time_and_run() self.assertEqual("1: 100", display1.hw_display.text) self.assertEqual("2: 42", display2.hw_display.text) self.machine.game.player.score += 23 self.machine.variables.set_machine_var("test", 1337) self.advance_time_and_run() self.assertEqual("1: 123", display1.hw_display.text) self.assertEqual("2: 1337", display2.hw_display.text) self.post_event("test_flash") self.advance_time_and_run(.1) self.assertEqual("TEST", display1.hw_display.text) self.assertEqual("2: 1337", display2.hw_display.text) self.advance_time_and_run(2) self.assertEqual("1: 123", display1.hw_display.text) self.assertEqual("2: 1337", display2.hw_display.text) self.machine.modes["mode1"].start() self.advance_time_and_run(.1) self.assertEqual("MODE1", display1.hw_display.text) self.assertEqual("MODE1", display2.hw_display.text) self.machine.modes["mode1"].stop() self.advance_time_and_run(7) self.assertEqual("1: 123", display1.hw_display.text) self.assertEqual("2: 1337", display2.hw_display.text) self.machine.modes["mode1"].start() self.advance_time_and_run(5) self.assertEqual("MODE1", display1.hw_display.text) self.assertEqual("MODE1", display2.hw_display.text) self.advance_time_and_run(5) self.assertEqual("MODE1", display1.hw_display.text) self.assertEqual("2: 1337", display2.hw_display.text) def test_scoring(self): display1 = self.machine.segment_displays["display1"] display2 = self.machine.segment_displays["display2"] # default scoring self.post_event("test_score_two_player") # one player game self.start_game() # first display shows score. second empty self.assertEqual("0", display1.hw_display.text) self.assertEqual("0", display2.hw_display.text) # player scores self.machine.game.player.score += 42 self.advance_time_and_run(.01) self.assertEqual("42", display1.hw_display.text) self.assertEqual("0", display2.hw_display.text) # add player self.add_player() self.advance_time_and_run(.01) self.assertEqual("42", display1.hw_display.text) self.assertEqual("0", display2.hw_display.text) @patch("mpf.platforms.interfaces.segment_display_platform_interface.SegmentDisplaySoftwareFlashPlatformInterface.__abstractmethods__", set()) @patch("mpf.platforms.interfaces.segment_display_platform_interface.SegmentDisplaySoftwareFlashPlatformInterface._set_text") def test_software_flash_platform_interface(self, mock_set_text): display = SegmentDisplaySoftwareFlashPlatformInterface("1") display.set_text("12345 ABCDE", FlashingType.NO_FLASH) display.set_software_flash(False) self.assertTrue(mock_set_text.called) mock_set_text.assert_has_calls([call("12345 ABCDE")]) display.set_software_flash(True) mock_set_text.reset_mock() display.set_text("12345 ABCDE", FlashingType.FLASH_ALL) display.set_software_flash(False) self.assertTrue(mock_set_text.called) mock_set_text.assert_has_calls([call("12345 ABCDE"), call("")]) display.set_software_flash(True) mock_set_text.reset_mock() display.set_text("12345 ABCDE", FlashingType.FLASH_MATCH) display.set_software_flash(False) self.assertTrue(mock_set_text.called) mock_set_text.assert_has_calls([call("12345 ABCDE"), call("12345 ABC ")]) display.set_software_flash(True) mock_set_text.reset_mock() display.set_text("12345 ABCDE", FlashingType.FLASH_MASK, "FFFFF______") display.set_software_flash(False) self.assertTrue(mock_set_text.called) mock_set_text.assert_has_calls([call("12345 ABCDE"), call(" ABCDE")]) display.set_software_flash(True) mock_set_text.reset_mock() def test_segment_display_text(self): """Test the SegmentDisplayText class.""" # text equal to display length test_text = SegmentDisplayText("test", 4, False, False) self.assertTrue(isinstance(test_text, list)) self.assertEqual(4, len(test_text)) self.assertEqual("test", SegmentDisplayText.convert_to_str(test_text)) # text longer than display test_text = SegmentDisplayText("testing", 4, False, False) self.assertTrue(isinstance(test_text, list)) self.assertEqual(4, len(test_text)) self.assertEqual("ting", SegmentDisplayText.convert_to_str(test_text)) # text shorter than display test_text = SegmentDisplayText("test", 7, False, False) self.assertTrue(isinstance(test_text, list)) self.assertEqual(7, len(test_text)) self.assertEqual(" test", SegmentDisplayText.convert_to_str(test_text)) # collapse commas test_text = SegmentDisplayText("25,000", 7, False, True) self.assertTrue(isinstance(test_text, list)) self.assertEqual(7, len(test_text)) self.assertTrue(test_text[3].comma) self.assertEqual(ord("5"), test_text[3].char_code) self.assertFalse(test_text[4].comma) self.assertEqual(ord("0"), test_text[4].char_code) self.assertEqual(" 25,000", SegmentDisplayText.convert_to_str(test_text)) # do not collapse commas test_text = SegmentDisplayText("25,000", 7, False, False) self.assertTrue(isinstance(test_text, list)) self.assertEqual(7, len(test_text)) self.assertFalse(test_text[2].comma) self.assertEqual(ord("5"), test_text[2].char_code) self.assertFalse(test_text[3].comma) self.assertEqual(ord(","), test_text[3].char_code) self.assertEqual(" 25,000", SegmentDisplayText.convert_to_str(test_text)) # collapse dots test_text = SegmentDisplayText("25.000", 7, True, False) self.assertTrue(isinstance(test_text, list)) self.assertEqual(7, len(test_text)) self.assertTrue(test_text[3].dot) self.assertEqual(ord("5"), test_text[3].char_code) self.assertFalse(test_text[4].dot) self.assertEqual(ord("0"), test_text[4].char_code) self.assertEqual(" 25.000", SegmentDisplayText.convert_to_str(test_text)) # do not collapse dots test_text = SegmentDisplayText("25.000", 7, False, False) self.assertTrue(isinstance(test_text, list)) self.assertEqual(7, len(test_text)) self.assertFalse(test_text[2].dot) self.assertEqual(ord("5"), test_text[2].char_code) self.assertFalse(test_text[3].dot) self.assertEqual(ord("."), test_text[3].char_code) self.assertEqual(" 25.000", SegmentDisplayText.convert_to_str(test_text)) # no colors test_text = SegmentDisplayText("COLOR", 5, False, False) self.assertTrue(isinstance(test_text, list)) self.assertEqual(5, len(test_text)) colors = SegmentDisplayText.get_colors(test_text) self.assertIsNone(colors) # single color test_text = SegmentDisplayText("COLOR", 5, False, False, [RGBColor("ffffff")]) self.assertTrue(isinstance(test_text, list)) self.assertEqual(5, len(test_text)) colors = SegmentDisplayText.get_colors(test_text) self.assertEqual(5, len(colors)) self.assertEqual(5, colors.count(RGBColor("ffffff"))) # multiple colors test_text = SegmentDisplayText("COLOR", 5, False, False, [RGBColor("white"), RGBColor("red"), RGBColor("green"), RGBColor("blue"), RGBColor("cyan")]) self.assertTrue(isinstance(test_text, list)) self.assertEqual(5, len(test_text)) colors = SegmentDisplayText.get_colors(test_text) self.assertEqual(5, len(colors)) self.assertEqual([RGBColor("white"), RGBColor("red"), RGBColor("green"), RGBColor("blue"), RGBColor("cyan")], colors) # multiple colors (fewer colors than letters) test_text = SegmentDisplayText("COLOR", 5, False, False, [RGBColor("white"), RGBColor("red")]) self.assertTrue(isinstance(test_text, list)) self.assertEqual(5, len(test_text)) colors = SegmentDisplayText.get_colors(test_text) self.assertEqual(5, len(colors)) self.assertEqual([RGBColor("white"), RGBColor("red"), RGBColor("red"), RGBColor("red"), RGBColor("red")], colors) # multiple colors (fewer colors than letters and fewer letters than characters) test_text = SegmentDisplayText("COLOR", 8, False, False, [RGBColor("white"), RGBColor("red")]) self.assertTrue(isinstance(test_text, list)) self.assertEqual(8, len(test_text)) colors = SegmentDisplayText.get_colors(test_text) self.assertEqual(8, len(colors)) self.assertEqual([RGBColor("white"), RGBColor("white"), RGBColor("white"), RGBColor("white"), RGBColor("red"), RGBColor("red"), RGBColor("red"), RGBColor("red")], colors) def test_transitions(self): """Test segment display text transitions.""" self._test_no_transition() self._test_push_transition() self._test_cover_transition() self._test_uncover_transition() self._test_wipe_transition() self._test_split_transition() def _test_no_transition(self): """Test no transition.""" # no transition (with colors) transition = NoTransition(5, False, False, {'direction': 'right'}) self.assertEqual(1, transition.get_step_count()) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green")], SegmentDisplayText.get_colors(transition.get_transition_step(0, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) with self.assertRaises(AssertionError): transition.get_transition_step(1, "12345", "ABCDE") def _test_push_transition(self): """Test push transition.""" # push right (with colors) transition = PushTransition(5, False, False, {'direction': 'right'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("E1234", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("red"), RGBColor("red"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(0, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("DE123", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("red"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(1, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("CDE12", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(2, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("BCDE1", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(3, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green")], SegmentDisplayText.get_colors(transition.get_transition_step(4, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) # push left transition = PushTransition(5, False, False, {'direction': 'left'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("2345A", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("345AB", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("45ABC", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("5ABCD", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) # push right (display larger than text) transition = PushTransition(8, False, False, {'direction': 'right'}) self.assertEqual(8, transition.get_step_count()) self.assertEqual("E 1234", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("DE 123", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("CDE 12", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("BCDE 1", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("ABCDE ", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual(" ABCDE ", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual(" ABCDE ", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual(" ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) # push left (display larger than text) transition = PushTransition(8, False, False, {'direction': 'left'}) self.assertEqual(8, transition.get_step_count()) self.assertEqual(" 12345 ", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual(" 12345 ", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("12345 ", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("2345 A", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("345 AB", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual("45 ABC", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual("5 ABCD", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual(" ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) # push right (collapse commas) transition = PushTransition(5, False, True, {'direction': 'right'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("0 1,00", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "1,000", "25,000"))) self.assertEqual("00 1,0", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "1,000", "25,000"))) self.assertEqual("000 1,", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "1,000", "25,000"))) self.assertEqual("5,000 ", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "1,000", "25,000"))) self.assertEqual("25,000", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "1,000", "25,000"))) # push left (collapse commas) transition = PushTransition(5, False, True, {'direction': 'left'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("1,0002", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "1,000", "25,000"))) self.assertEqual("00025,", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "1,000", "25,000"))) self.assertEqual("0025,0", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "1,000", "25,000"))) self.assertEqual("025,00", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "1,000", "25,000"))) self.assertEqual("25,000", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "1,000", "25,000"))) # push right (with text and colors) transition = PushTransition(5, False, False, {'direction': 'right', 'text': '-->', 'text_color': [RGBColor("yellow")]}) self.assertEqual(8, transition.get_step_count()) self.assertEqual(">1234", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual([RGBColor("yellow"), RGBColor("red"), RGBColor("red"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(0, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("->123", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual([RGBColor("yellow"), RGBColor("yellow"), RGBColor("red"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(1, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("-->12", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual([RGBColor("yellow"), RGBColor("yellow"), RGBColor("yellow"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(2, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("E-->1", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("yellow"), RGBColor("yellow"), RGBColor("yellow"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(3, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("DE-->", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("yellow"), RGBColor("yellow"), RGBColor("yellow")], SegmentDisplayText.get_colors(transition.get_transition_step(4, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("CDE--", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("yellow"), RGBColor("yellow")], SegmentDisplayText.get_colors(transition.get_transition_step(5, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("BCDE-", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("yellow")], SegmentDisplayText.get_colors(transition.get_transition_step(6, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green")], SegmentDisplayText.get_colors(transition.get_transition_step(7, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) # push right (with text that has color = None and colors) transition = PushTransition(5, False, False, {'direction': 'right', 'text': '-->', 'text_color': None}) self.assertEqual(8, transition.get_step_count()) self.assertEqual(">1234", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("red"), RGBColor("red"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(0, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("->123", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("red"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(1, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("-->12", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("red"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(2, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("E-->1", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("red")], SegmentDisplayText.get_colors(transition.get_transition_step(3, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("DE-->", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green")], SegmentDisplayText.get_colors(transition.get_transition_step(4, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("CDE--", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green")], SegmentDisplayText.get_colors(transition.get_transition_step(5, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("BCDE-", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green")], SegmentDisplayText.get_colors(transition.get_transition_step(6, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) self.assertEqual([RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green"), RGBColor("green")], SegmentDisplayText.get_colors(transition.get_transition_step(7, "12345", "ABCDE", [RGBColor("red")], [RGBColor("green")]))) # push left (with text) transition = PushTransition(5, False, False, {'direction': 'left', 'text': "<--"}) self.assertEqual(8, transition.get_step_count()) self.assertEqual("2345<", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("345<-", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("45<--", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("5<--A", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("<--AB", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual("--ABC", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual("-ABCD", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) def _test_cover_transition(self): """Test cover transition.""" # cover right transition = CoverTransition(5, False, False, {'direction': 'right'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("E2345", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("DE345", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("CDE45", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("BCDE5", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) # cover right (with text) transition = CoverTransition(5, False, False, {'direction': 'right', 'text': '-->'}) self.assertEqual(8, transition.get_step_count()) self.assertEqual(">2345", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("->345", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("-->45", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("E-->5", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("DE-->", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual("CDE--", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual("BCDE-", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) # cover left transition = CoverTransition(5, False, False, {'direction': 'left'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("1234A", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("123AB", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("12ABC", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("1ABCD", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) # cover left (with text) transition = CoverTransition(5, False, False, {'direction': 'left', 'text': '<--'}) self.assertEqual(8, transition.get_step_count()) self.assertEqual("1234<", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("123<-", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("12<--", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("1<--A", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("<--AB", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual("--ABC", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual("-ABCD", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) def _test_uncover_transition(self): """Test uncover transition.""" # uncover right transition = UncoverTransition(5, False, False, {'direction': 'right'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("A1234", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("AB123", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("ABC12", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("ABCD1", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) # uncover right (with text) transition = UncoverTransition(5, False, False, {'direction': 'right', 'text': '-->'}) self.assertEqual(8, transition.get_step_count()) self.assertEqual(">1234", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("->123", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("-->12", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("A-->1", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("AB-->", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual("ABC--", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual("ABCD-", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) # uncover left transition = UncoverTransition(5, False, False, {'direction': 'left'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("2345E", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("345DE", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("45CDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("5BCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) # uncover left (with text) transition = UncoverTransition(5, False, False, {'direction': 'left', 'text': '<--'}) self.assertEqual(8, transition.get_step_count()) self.assertEqual("2345<", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("345<-", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("45<--", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("5<--E", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("<--DE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual("--CDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual("-BCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) def _test_wipe_transition(self): """Test wipe transition.""" # wipe right transition = WipeTransition(5, False, False, {'direction': 'right'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("A2345", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("AB345", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("ABC45", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("ABCD5", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) # wipe right (with text) transition = WipeTransition(5, False, False, {'direction': 'right', 'text': '-->'}) self.assertEqual(8, transition.get_step_count()) self.assertEqual(">2345", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("->345", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("-->45", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("A-->5", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("AB-->", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual("ABC--", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual("ABCD-", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) # wipe left transition = WipeTransition(5, False, False, {'direction': 'left'}) self.assertEqual(5, transition.get_step_count()) self.assertEqual("1234E", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("123DE", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("12CDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("1BCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) # wipe left (with text) transition = WipeTransition(5, False, False, {'direction': 'left', 'text': '<--'}) self.assertEqual(8, transition.get_step_count()) self.assertEqual("1234<", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("123<-", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("12<--", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) self.assertEqual("1<--E", SegmentDisplayText.convert_to_str(transition.get_transition_step(3, "12345", "ABCDE"))) self.assertEqual("<--DE", SegmentDisplayText.convert_to_str(transition.get_transition_step(4, "12345", "ABCDE"))) self.assertEqual("--CDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(5, "12345", "ABCDE"))) self.assertEqual("-BCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(6, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(7, "12345", "ABCDE"))) def _test_split_transition(self): # split push out (odd display length) transition = SplitTransition(5, False, False, {'direction': 'out', 'mode': 'push'}) self.assertEqual(3, transition.get_step_count()) self.assertEqual("23C45", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("3BCD4", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) # split push out (even display length) transition = SplitTransition(6, False, False, {'direction': 'out', 'mode': 'push'}) self.assertEqual(3, transition.get_step_count()) self.assertEqual("23CD45", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "123456", "ABCDEF"))) self.assertEqual("3BCDE4", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "123456", "ABCDEF"))) self.assertEqual("ABCDEF", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "123456", "ABCDEF"))) # split push in (odd display length) transition = SplitTransition(5, False, False, {'direction': 'in', 'mode': 'push'}) self.assertEqual(3, transition.get_step_count()) self.assertEqual("C234D", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("BC3DE", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) # split push in (even display length) transition = SplitTransition(6, False, False, {'direction': 'in', 'mode': 'push'}) self.assertEqual(3, transition.get_step_count()) self.assertEqual("C2345D", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "123456", "ABCDEF"))) self.assertEqual("BC34DE", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "123456", "ABCDEF"))) self.assertEqual("ABCDEF", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "123456", "ABCDEF"))) # split wipe out (odd output length) transition = SplitTransition(5, False, False, {'direction': 'out', 'mode': 'wipe'}) self.assertEqual(3, transition.get_step_count()) self.assertEqual("12C45", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("1BCD5", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) # split wipe out (even output length) transition = SplitTransition(6, False, False, {'direction': 'out', 'mode': 'wipe'}) self.assertEqual(3, transition.get_step_count()) self.assertEqual("12CD56", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "123456", "ABCDEF"))) self.assertEqual("1BCDE6", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "123456", "ABCDEF"))) self.assertEqual("ABCDEF", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "123456", "ABCDEF"))) # split wipe in (odd output length) transition = SplitTransition(5, False, False, {'direction': 'in', 'mode': 'wipe'}) self.assertEqual(3, transition.get_step_count()) self.assertEqual("A234E", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "12345", "ABCDE"))) self.assertEqual("AB3DE", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "12345", "ABCDE"))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "12345", "ABCDE"))) # split wipe in (even output length) transition = SplitTransition(6, False, False, {'direction': 'in', 'mode': 'wipe'}) self.assertEqual(3, transition.get_step_count()) self.assertEqual("A2345F", SegmentDisplayText.convert_to_str(transition.get_transition_step(0, "123456", "ABCDEF"))) self.assertEqual("AB34EF", SegmentDisplayText.convert_to_str(transition.get_transition_step(1, "123456", "ABCDEF"))) self.assertEqual("ABCDEF", SegmentDisplayText.convert_to_str(transition.get_transition_step(2, "123456", "ABCDEF"))) def test_transition_runner(self): """Test the transition runner using an iterator.""" transition_iterator = iter(TransitionRunner(self.machine, PushTransition(5, False, False, {'direction': 'right'}), "12345", "ABCDE")) self.assertEqual("E1234", SegmentDisplayText.convert_to_str(next(transition_iterator))) self.assertEqual("DE123", SegmentDisplayText.convert_to_str(next(transition_iterator))) self.assertEqual("CDE12", SegmentDisplayText.convert_to_str(next(transition_iterator))) self.assertEqual("BCDE1", SegmentDisplayText.convert_to_str(next(transition_iterator))) self.assertEqual("ABCDE", SegmentDisplayText.convert_to_str(next(transition_iterator))) with self.assertRaises(StopIteration): next(transition_iterator) @patch("mpf.platforms.virtual.VirtualSegmentDisplay.set_color") @patch("mpf.platforms.virtual.VirtualSegmentDisplay.set_text") def test_transitions_with_player(self, mock_set_text, mock_set_color): self.post_event("test_set_color_to_white") self.advance_time_and_run(1) self.assertTrue(mock_set_color.called) self.assertEqual(1, mock_set_color.call_count) mock_set_color.assert_has_calls([call([(255, 255, 255)])]) mock_set_color.reset_mock() self.post_event("test_transition") self.advance_time_and_run(3) self.assertTrue(mock_set_text.called) self.assertEqual(21, mock_set_text.call_count) red = RGBColor("red") wht = RGBColor("white") mock_set_text.assert_has_calls([call(' ', colors=[red, wht, wht, wht, wht, wht, wht, wht, wht, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call(' ', colors=[red, red, wht, wht, wht, wht, wht, wht, wht, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call('L ', colors=[red, red, red, wht, wht, wht, wht, wht, wht, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call('LL ', colors=[red, red, red, red, wht, wht, wht, wht, wht, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call('OLL ', colors=[red, red, red, red, red, wht, wht, wht, wht, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call('ROLL ', colors=[red, red, red, red, red, red, wht, wht, wht, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call('CROLL ', colors=[red, red, red, red, red, red, red, wht, wht, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call('SCROLL ', colors=[red, red, red, red, red, red, red, red, wht, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call(' SCROLL ', colors=[red, red, red, red, red, red, red, red, red, wht], flash_mask='', flashing=FlashingType.NO_FLASH), call(' SCROLL ', colors=[red, red, red, red, red, red, red, red, red, red], flash_mask='', flashing=FlashingType.NO_FLASH), call(' SCROLL ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call(' SCROLL ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('SCROLL ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('CROLL ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ROLL ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('OLL ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('LL ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('L ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call(' ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call(' ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call(' ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH)]) mock_set_text.reset_mock() self.post_event("test_transition_2") self.advance_time_and_run(1) self.assertTrue(mock_set_text.called) self.assertEqual(6, mock_set_text.call_count) mock_set_text.assert_has_calls([call(' 45 ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call(' 3456 ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call(' 234567 ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call(' 12345678 ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('0123456789', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('0123456789', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH)]) mock_set_text.reset_mock() self.post_event("test_transition_3") self.advance_time_and_run(1) self.assertTrue(mock_set_text.called) self.assertEqual(11, mock_set_text.call_count) mock_set_text.assert_has_calls([call('A012345678', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('AB01234567', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABC0123456', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABCD012345', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABCDE01234', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABCDEF0123', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABCDEFG012', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABCDEFGH01', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABCDEFGHI0', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABCDEFGHIJ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH), call('ABCDEFGHIJ', colors=None, flash_mask='', flashing=FlashingType.NO_FLASH)]) mock_set_text.reset_mock() def test_text_stack(self): """Test the segment display text stack functionality.""" display1 = self.machine.segment_displays["display1"] display1.add_text("FIRST") self.assertEqual("FIRST", display1.text) self.assertEqual([RGBColor("white")], display1.colors) self.assertEqual(FlashingType.NO_FLASH, display1.flashing) # higher priority and with colors, flashing display1.add_text_entry( TextStackEntry("SECOND", [RGBColor("red")], FlashingType.FLASH_ALL, "", None, None, 10, "2nd")) self.assertEqual("SECOND", display1.text) self.assertEqual([RGBColor("red")], display1.colors) self.assertEqual(FlashingType.FLASH_ALL, display1.flashing) # lower priority display1.add_text_entry( TextStackEntry("THIRD", [RGBColor("yellow")], FlashingType.FLASH_MASK, "F F F ", None, None, 5, "3rd")) self.assertEqual("SECOND", display1.text) self.assertEqual([RGBColor("red")], display1.colors) self.assertEqual(FlashingType.FLASH_ALL, display1.flashing) # remove highest priority item from stack display1.remove_text_by_key("2nd") self.assertEqual("THIRD", display1.text) self.assertEqual([RGBColor("yellow")], display1.colors) self.assertEqual(FlashingType.FLASH_MASK, display1.flashing) self.assertEqual("F F F ", display1.flash_mask) # replace current top text display1.add_text("3rd", 5, "3rd") self.assertEqual("3rd", display1.text) self.assertEqual([RGBColor("yellow")], display1.colors) self.assertEqual(FlashingType.FLASH_MASK, display1.flashing) self.assertEqual("F F F ", display1.flash_mask) # change text of lowest item display1.add_text("1st") self.assertEqual("3rd", display1.text) self.assertEqual([RGBColor("yellow")], display1.colors) self.assertEqual(FlashingType.FLASH_MASK, display1.flashing) self.assertEqual("F F F ", display1.flash_mask) # change text, color, and flashing of lowest item and raise its priority display1.add_text_entry( TextStackEntry("FIRST", [RGBColor("blue")], FlashingType.NO_FLASH, "", None, None, 20)) self.assertEqual("FIRST", display1.text) self.assertEqual([RGBColor("blue")], display1.colors) # remove "FIRST" entry display1.remove_text_by_key() self.assertEqual("3rd", display1.text) self.assertEqual([RGBColor("blue")], display1.colors) self.assertEqual(FlashingType.NO_FLASH, display1.flashing) # set flashing display1.set_flashing(FlashingType.FLASH_MASK, "FFF ") self.assertEqual([RGBColor("blue")], display1.colors) self.assertEqual(FlashingType.FLASH_MASK, display1.flashing) self.assertEqual("FFF ", display1.flash_mask) # set color display1.set_color([RGBColor("cyan")]) self.assertEqual([RGBColor("cyan")], display1.colors) self.assertEqual(FlashingType.FLASH_MASK, display1.flashing) self.assertEqual("FFF ", display1.flash_mask) # remove last remaining entry display1.remove_text_by_key("3rd") self.assertEqual("", display1.text) self.assertEqual([RGBColor("cyan")], display1.colors) self.assertEqual(FlashingType.NO_FLASH, display1.flashing) self.assertEqual("", display1.flash_mask)
61.782301
165
0.59564
6,834
69,814
5.86494
0.046971
0.156059
0.106734
0.125296
0.918041
0.901225
0.890996
0.868167
0.844116
0.78763
0
0.042488
0.279557
69,814
1,129
166
61.837024
0.754399
0.026614
0
0.719243
0
0
0.086134
0.006235
0
0
0
0
0.480547
1
0.017876
false
0
0.008412
0.002103
0.029443
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
8
a1bbe36dee1e9dbf408fac6f1fe44b95ea795144
19,713
py
Python
sdk/python/pulumi_aiven/transit_gateway_vpc_attachment.py
pulumi/pulumi-aiven
0d330ef43c17ce2d2a77588c1d9754de6c8ca736
[ "ECL-2.0", "Apache-2.0" ]
7
2019-11-28T22:30:11.000Z
2021-12-27T16:40:54.000Z
sdk/python/pulumi_aiven/transit_gateway_vpc_attachment.py
pulumi/pulumi-aiven
0d330ef43c17ce2d2a77588c1d9754de6c8ca736
[ "ECL-2.0", "Apache-2.0" ]
97
2019-12-17T09:58:57.000Z
2022-03-31T15:19:02.000Z
sdk/python/pulumi_aiven/transit_gateway_vpc_attachment.py
pulumi/pulumi-aiven
0d330ef43c17ce2d2a77588c1d9754de6c8ca736
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-24T12:22:38.000Z
2020-11-24T12:22:38.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['TransitGatewayVpcAttachmentArgs', 'TransitGatewayVpcAttachment'] @pulumi.input_type class TransitGatewayVpcAttachmentArgs: def __init__(__self__, *, peer_cloud_account: pulumi.Input[str], peer_region: pulumi.Input[str], peer_vpc: pulumi.Input[str], user_peer_network_cidrs: pulumi.Input[Sequence[pulumi.Input[str]]], vpc_id: pulumi.Input[str]): """ The set of arguments for constructing a TransitGatewayVpcAttachment resource. :param pulumi.Input[str] peer_cloud_account: AWS account ID of the peered VPC. :param pulumi.Input[str] peer_region: AWS region of the peered VPC (if not in the same region as Aiven VPC). :param pulumi.Input[str] peer_vpc: Transit gateway ID :param pulumi.Input[Sequence[pulumi.Input[str]]] user_peer_network_cidrs: List of private IPv4 ranges to route through the peering connection. :param pulumi.Input[str] vpc_id: is the Aiven VPC the peering connection is associated with. """ pulumi.set(__self__, "peer_cloud_account", peer_cloud_account) pulumi.set(__self__, "peer_region", peer_region) pulumi.set(__self__, "peer_vpc", peer_vpc) pulumi.set(__self__, "user_peer_network_cidrs", user_peer_network_cidrs) pulumi.set(__self__, "vpc_id", vpc_id) @property @pulumi.getter(name="peerCloudAccount") def peer_cloud_account(self) -> pulumi.Input[str]: """ AWS account ID of the peered VPC. """ return pulumi.get(self, "peer_cloud_account") @peer_cloud_account.setter def peer_cloud_account(self, value: pulumi.Input[str]): pulumi.set(self, "peer_cloud_account", value) @property @pulumi.getter(name="peerRegion") def peer_region(self) -> pulumi.Input[str]: """ AWS region of the peered VPC (if not in the same region as Aiven VPC). """ return pulumi.get(self, "peer_region") @peer_region.setter def peer_region(self, value: pulumi.Input[str]): pulumi.set(self, "peer_region", value) @property @pulumi.getter(name="peerVpc") def peer_vpc(self) -> pulumi.Input[str]: """ Transit gateway ID """ return pulumi.get(self, "peer_vpc") @peer_vpc.setter def peer_vpc(self, value: pulumi.Input[str]): pulumi.set(self, "peer_vpc", value) @property @pulumi.getter(name="userPeerNetworkCidrs") def user_peer_network_cidrs(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: """ List of private IPv4 ranges to route through the peering connection. """ return pulumi.get(self, "user_peer_network_cidrs") @user_peer_network_cidrs.setter def user_peer_network_cidrs(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): pulumi.set(self, "user_peer_network_cidrs", value) @property @pulumi.getter(name="vpcId") def vpc_id(self) -> pulumi.Input[str]: """ is the Aiven VPC the peering connection is associated with. """ return pulumi.get(self, "vpc_id") @vpc_id.setter def vpc_id(self, value: pulumi.Input[str]): pulumi.set(self, "vpc_id", value) @pulumi.input_type class _TransitGatewayVpcAttachmentState: def __init__(__self__, *, peer_cloud_account: Optional[pulumi.Input[str]] = None, peer_region: Optional[pulumi.Input[str]] = None, peer_vpc: Optional[pulumi.Input[str]] = None, peering_connection_id: Optional[pulumi.Input[str]] = None, state: Optional[pulumi.Input[str]] = None, state_info: Optional[pulumi.Input[Mapping[str, Any]]] = None, user_peer_network_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, vpc_id: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering TransitGatewayVpcAttachment resources. :param pulumi.Input[str] peer_cloud_account: AWS account ID of the peered VPC. :param pulumi.Input[str] peer_region: AWS region of the peered VPC (if not in the same region as Aiven VPC). :param pulumi.Input[str] peer_vpc: Transit gateway ID :param pulumi.Input[str] peering_connection_id: Cloud provider identifier for the peering connection if available :param pulumi.Input[str] state: State of the peering connection :param pulumi.Input[Mapping[str, Any]] state_info: State-specific help or error information :param pulumi.Input[Sequence[pulumi.Input[str]]] user_peer_network_cidrs: List of private IPv4 ranges to route through the peering connection. :param pulumi.Input[str] vpc_id: is the Aiven VPC the peering connection is associated with. """ if peer_cloud_account is not None: pulumi.set(__self__, "peer_cloud_account", peer_cloud_account) if peer_region is not None: pulumi.set(__self__, "peer_region", peer_region) if peer_vpc is not None: pulumi.set(__self__, "peer_vpc", peer_vpc) if peering_connection_id is not None: pulumi.set(__self__, "peering_connection_id", peering_connection_id) if state is not None: pulumi.set(__self__, "state", state) if state_info is not None: pulumi.set(__self__, "state_info", state_info) if user_peer_network_cidrs is not None: pulumi.set(__self__, "user_peer_network_cidrs", user_peer_network_cidrs) if vpc_id is not None: pulumi.set(__self__, "vpc_id", vpc_id) @property @pulumi.getter(name="peerCloudAccount") def peer_cloud_account(self) -> Optional[pulumi.Input[str]]: """ AWS account ID of the peered VPC. """ return pulumi.get(self, "peer_cloud_account") @peer_cloud_account.setter def peer_cloud_account(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "peer_cloud_account", value) @property @pulumi.getter(name="peerRegion") def peer_region(self) -> Optional[pulumi.Input[str]]: """ AWS region of the peered VPC (if not in the same region as Aiven VPC). """ return pulumi.get(self, "peer_region") @peer_region.setter def peer_region(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "peer_region", value) @property @pulumi.getter(name="peerVpc") def peer_vpc(self) -> Optional[pulumi.Input[str]]: """ Transit gateway ID """ return pulumi.get(self, "peer_vpc") @peer_vpc.setter def peer_vpc(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "peer_vpc", value) @property @pulumi.getter(name="peeringConnectionId") def peering_connection_id(self) -> Optional[pulumi.Input[str]]: """ Cloud provider identifier for the peering connection if available """ return pulumi.get(self, "peering_connection_id") @peering_connection_id.setter def peering_connection_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "peering_connection_id", value) @property @pulumi.getter def state(self) -> Optional[pulumi.Input[str]]: """ State of the peering connection """ return pulumi.get(self, "state") @state.setter def state(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "state", value) @property @pulumi.getter(name="stateInfo") def state_info(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ State-specific help or error information """ return pulumi.get(self, "state_info") @state_info.setter def state_info(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "state_info", value) @property @pulumi.getter(name="userPeerNetworkCidrs") def user_peer_network_cidrs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ List of private IPv4 ranges to route through the peering connection. """ return pulumi.get(self, "user_peer_network_cidrs") @user_peer_network_cidrs.setter def user_peer_network_cidrs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "user_peer_network_cidrs", value) @property @pulumi.getter(name="vpcId") def vpc_id(self) -> Optional[pulumi.Input[str]]: """ is the Aiven VPC the peering connection is associated with. """ return pulumi.get(self, "vpc_id") @vpc_id.setter def vpc_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "vpc_id", value) class TransitGatewayVpcAttachment(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, peer_cloud_account: Optional[pulumi.Input[str]] = None, peer_region: Optional[pulumi.Input[str]] = None, peer_vpc: Optional[pulumi.Input[str]] = None, user_peer_network_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, vpc_id: Optional[pulumi.Input[str]] = None, __props__=None): """ ## # Transit Gateway VPC Attachment Resource The Transit Gateway VPC Attachment resource allows the creation and management Transit Gateway VPC Attachment VPC peering connection between Aiven and AWS. ## Example Usage ```python import pulumi import pulumi_aiven as aiven attachment = aiven.TransitGatewayVpcAttachment("attachment", vpc_id=aiven_project_vpc["bar"]["id"], peer_cloud_account="<PEER_ACCOUNT_ID>", peer_vpc="google-project1", peer_region="aws-eu-west-1", user_peer_network_cidrs=["10.0.0.0/24"]) ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] peer_cloud_account: AWS account ID of the peered VPC. :param pulumi.Input[str] peer_region: AWS region of the peered VPC (if not in the same region as Aiven VPC). :param pulumi.Input[str] peer_vpc: Transit gateway ID :param pulumi.Input[Sequence[pulumi.Input[str]]] user_peer_network_cidrs: List of private IPv4 ranges to route through the peering connection. :param pulumi.Input[str] vpc_id: is the Aiven VPC the peering connection is associated with. """ ... @overload def __init__(__self__, resource_name: str, args: TransitGatewayVpcAttachmentArgs, opts: Optional[pulumi.ResourceOptions] = None): """ ## # Transit Gateway VPC Attachment Resource The Transit Gateway VPC Attachment resource allows the creation and management Transit Gateway VPC Attachment VPC peering connection between Aiven and AWS. ## Example Usage ```python import pulumi import pulumi_aiven as aiven attachment = aiven.TransitGatewayVpcAttachment("attachment", vpc_id=aiven_project_vpc["bar"]["id"], peer_cloud_account="<PEER_ACCOUNT_ID>", peer_vpc="google-project1", peer_region="aws-eu-west-1", user_peer_network_cidrs=["10.0.0.0/24"]) ``` :param str resource_name: The name of the resource. :param TransitGatewayVpcAttachmentArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): resource_args, opts = _utilities.get_resource_args_opts(TransitGatewayVpcAttachmentArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, peer_cloud_account: Optional[pulumi.Input[str]] = None, peer_region: Optional[pulumi.Input[str]] = None, peer_vpc: Optional[pulumi.Input[str]] = None, user_peer_network_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, vpc_id: Optional[pulumi.Input[str]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = TransitGatewayVpcAttachmentArgs.__new__(TransitGatewayVpcAttachmentArgs) if peer_cloud_account is None and not opts.urn: raise TypeError("Missing required property 'peer_cloud_account'") __props__.__dict__["peer_cloud_account"] = peer_cloud_account if peer_region is None and not opts.urn: raise TypeError("Missing required property 'peer_region'") __props__.__dict__["peer_region"] = peer_region if peer_vpc is None and not opts.urn: raise TypeError("Missing required property 'peer_vpc'") __props__.__dict__["peer_vpc"] = peer_vpc if user_peer_network_cidrs is None and not opts.urn: raise TypeError("Missing required property 'user_peer_network_cidrs'") __props__.__dict__["user_peer_network_cidrs"] = user_peer_network_cidrs if vpc_id is None and not opts.urn: raise TypeError("Missing required property 'vpc_id'") __props__.__dict__["vpc_id"] = vpc_id __props__.__dict__["peering_connection_id"] = None __props__.__dict__["state"] = None __props__.__dict__["state_info"] = None super(TransitGatewayVpcAttachment, __self__).__init__( 'aiven:index/transitGatewayVpcAttachment:TransitGatewayVpcAttachment', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, peer_cloud_account: Optional[pulumi.Input[str]] = None, peer_region: Optional[pulumi.Input[str]] = None, peer_vpc: Optional[pulumi.Input[str]] = None, peering_connection_id: Optional[pulumi.Input[str]] = None, state: Optional[pulumi.Input[str]] = None, state_info: Optional[pulumi.Input[Mapping[str, Any]]] = None, user_peer_network_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, vpc_id: Optional[pulumi.Input[str]] = None) -> 'TransitGatewayVpcAttachment': """ Get an existing TransitGatewayVpcAttachment resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] peer_cloud_account: AWS account ID of the peered VPC. :param pulumi.Input[str] peer_region: AWS region of the peered VPC (if not in the same region as Aiven VPC). :param pulumi.Input[str] peer_vpc: Transit gateway ID :param pulumi.Input[str] peering_connection_id: Cloud provider identifier for the peering connection if available :param pulumi.Input[str] state: State of the peering connection :param pulumi.Input[Mapping[str, Any]] state_info: State-specific help or error information :param pulumi.Input[Sequence[pulumi.Input[str]]] user_peer_network_cidrs: List of private IPv4 ranges to route through the peering connection. :param pulumi.Input[str] vpc_id: is the Aiven VPC the peering connection is associated with. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _TransitGatewayVpcAttachmentState.__new__(_TransitGatewayVpcAttachmentState) __props__.__dict__["peer_cloud_account"] = peer_cloud_account __props__.__dict__["peer_region"] = peer_region __props__.__dict__["peer_vpc"] = peer_vpc __props__.__dict__["peering_connection_id"] = peering_connection_id __props__.__dict__["state"] = state __props__.__dict__["state_info"] = state_info __props__.__dict__["user_peer_network_cidrs"] = user_peer_network_cidrs __props__.__dict__["vpc_id"] = vpc_id return TransitGatewayVpcAttachment(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="peerCloudAccount") def peer_cloud_account(self) -> pulumi.Output[str]: """ AWS account ID of the peered VPC. """ return pulumi.get(self, "peer_cloud_account") @property @pulumi.getter(name="peerRegion") def peer_region(self) -> pulumi.Output[str]: """ AWS region of the peered VPC (if not in the same region as Aiven VPC). """ return pulumi.get(self, "peer_region") @property @pulumi.getter(name="peerVpc") def peer_vpc(self) -> pulumi.Output[str]: """ Transit gateway ID """ return pulumi.get(self, "peer_vpc") @property @pulumi.getter(name="peeringConnectionId") def peering_connection_id(self) -> pulumi.Output[str]: """ Cloud provider identifier for the peering connection if available """ return pulumi.get(self, "peering_connection_id") @property @pulumi.getter def state(self) -> pulumi.Output[str]: """ State of the peering connection """ return pulumi.get(self, "state") @property @pulumi.getter(name="stateInfo") def state_info(self) -> pulumi.Output[Mapping[str, Any]]: """ State-specific help or error information """ return pulumi.get(self, "state_info") @property @pulumi.getter(name="userPeerNetworkCidrs") def user_peer_network_cidrs(self) -> pulumi.Output[Sequence[str]]: """ List of private IPv4 ranges to route through the peering connection. """ return pulumi.get(self, "user_peer_network_cidrs") @property @pulumi.getter(name="vpcId") def vpc_id(self) -> pulumi.Output[str]: """ is the Aiven VPC the peering connection is associated with. """ return pulumi.get(self, "vpc_id")
42.947712
150
0.654188
2,378
19,713
5.146341
0.075694
0.089884
0.090374
0.055565
0.827831
0.794738
0.754453
0.722259
0.709103
0.68892
0
0.001748
0.245675
19,713
458
151
43.041485
0.821251
0.284077
0
0.562016
1
0
0.119404
0.039161
0
0
0
0
0
1
0.158915
false
0.003876
0.01938
0
0.275194
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
a1bfaa193bc912545c0fd5e55019b9a6827a9f1d
148
py
Python
myvenv/lib/python3.5/site-packages/IPython/utils/daemonize.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
myvenv/lib/python3.5/site-packages/IPython/utils/daemonize.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
myvenv/lib/python3.5/site-packages/IPython/utils/daemonize.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
from warnings import warn warn("IPython.utils.daemonize has moved to ipyparallel.apps.daemonize") from ipyparallel.apps.daemonize import daemonize
29.6
71
0.837838
20
148
6.2
0.6
0.241935
0.387097
0
0
0
0
0
0
0
0
0
0.094595
148
4
72
37
0.925373
0
0
0
0
0
0.425676
0.331081
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
c5620bfb270c629adfc67c3da28697ba55ddd514
160
py
Python
glue/io/formats/fits/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
550
2015-01-08T13:51:06.000Z
2022-03-31T11:54:47.000Z
glue/io/formats/fits/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
1,362
2015-01-03T19:15:52.000Z
2022-03-30T13:23:11.000Z
glue/io/formats/fits/__init__.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
142
2015-01-08T13:08:00.000Z
2022-03-18T13:25:57.000Z
# Data factories are already defined in glue.core.data_factories, but they will # be moved here in future. def setup(): from . import subset_mask # noqa
22.857143
79
0.73125
25
160
4.6
0.88
0.226087
0
0
0
0
0
0
0
0
0
0
0.2
160
6
80
26.666667
0.898438
0.66875
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0
0.5
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
3dc5004097993c64894de3c2383b631b06724217
2,965
py
Python
test/test_cli.py
maxdymond/confuse
0b076bf4fb67e1064f128a3f01bb356b7a6909b1
[ "MIT" ]
null
null
null
test/test_cli.py
maxdymond/confuse
0b076bf4fb67e1064f128a3f01bb356b7a6909b1
[ "MIT" ]
null
null
null
test/test_cli.py
maxdymond/confuse
0b076bf4fb67e1064f128a3f01bb356b7a6909b1
[ "MIT" ]
1
2019-05-26T13:34:27.000Z
2019-05-26T13:34:27.000Z
from __future__ import division, absolute_import, print_function import confuse import argparse import optparse import unittest class ArgparseTest(unittest.TestCase): def setUp(self): self.config = confuse.Configuration('test', read=False) self.parser = argparse.ArgumentParser() def _parse(self, args): args = self.parser.parse_args(args.split()) self.config.set_args(args) def test_text_argument_parsed(self): self.parser.add_argument('--foo', metavar='BAR') self._parse('--foo bar') self.assertEqual(self.config['foo'].get(), 'bar') def test_boolean_argument_parsed(self): self.parser.add_argument('--foo', action='store_true') self._parse('--foo') self.assertEqual(self.config['foo'].get(), True) def test_missing_optional_argument_not_included(self): self.parser.add_argument('--foo', metavar='BAR') self._parse('') with self.assertRaises(confuse.NotFoundError): self.config['foo'].get() def test_argument_overrides_default(self): self.config.add({'foo': 'baz'}) self.parser.add_argument('--foo', metavar='BAR') self._parse('--foo bar') self.assertEqual(self.config['foo'].get(), 'bar') class OptparseTest(unittest.TestCase): def setUp(self): self.config = confuse.Configuration('test', read=False) self.parser = optparse.OptionParser() def _parse(self, args): options, _ = self.parser.parse_args(args.split()) self.config.set_args(options) def test_text_argument_parsed(self): self.parser.add_option('--foo', metavar='BAR') self._parse('--foo bar') self.assertEqual(self.config['foo'].get(), 'bar') def test_boolean_argument_parsed(self): self.parser.add_option('--foo', action='store_true') self._parse('--foo') self.assertEqual(self.config['foo'].get(), True) def test_missing_optional_argument_not_included(self): self.parser.add_option('--foo', metavar='BAR') self._parse('') with self.assertRaises(confuse.NotFoundError): self.config['foo'].get() def test_argument_overrides_default(self): self.config.add({'foo': 'baz'}) self.parser.add_option('--foo', metavar='BAR') self._parse('--foo bar') self.assertEqual(self.config['foo'].get(), 'bar') class Namespace(object): def __init__(self, **kwargs): self.__dict__.update(kwargs) class GenericNamespaceTest(unittest.TestCase): def setUp(self): self.config = confuse.Configuration('test', read=False) def test_value_added_to_root(self): self.config.set_args(Namespace(foo='bar')) self.assertEqual(self.config['foo'].get(), 'bar') def test_value_added_to_subview(self): self.config['baz'].set_args(Namespace(foo='bar')) self.assertEqual(self.config['baz']['foo'].get(), 'bar')
32.582418
64
0.649916
359
2,965
5.153203
0.18663
0.102703
0.063243
0.077838
0.804324
0.787568
0.787568
0.787568
0.78
0.718919
0
0
0.192917
2,965
90
65
32.944444
0.773088
0
0
0.641791
0
0
0.070152
0
0
0
0
0
0.149254
1
0.238806
false
0
0.074627
0
0.373134
0.014925
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
7
3dee292e92658e796e5d703789d6faf28885aa40
7,716
py
Python
self_supervised_3d_tasks/data/segmentation_task_loader.py
HyeokjuJang/self-supervised-3d-tasks
83009a8a12074620a1723afb768bba8212e0e744
[ "Apache-2.0" ]
null
null
null
self_supervised_3d_tasks/data/segmentation_task_loader.py
HyeokjuJang/self-supervised-3d-tasks
83009a8a12074620a1723afb768bba8212e0e744
[ "Apache-2.0" ]
null
null
null
self_supervised_3d_tasks/data/segmentation_task_loader.py
HyeokjuJang/self-supervised-3d-tasks
83009a8a12074620a1723afb768bba8212e0e744
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import numpy as np from scipy import ndimage from self_supervised_3d_tasks.data.generator_base import DataGeneratorBase import os class SegmentationGenerator3D(DataGeneratorBase): def __init__( self, data_path, file_list, batch_size=8, pre_proc_func=None, shuffle=False, augment=False, label_stem="_label" ): self.augment_scans_train = augment self.label_stem = label_stem self.label_dir = data_path + "_labels" self.data_dir = data_path super(SegmentationGenerator3D, self).__init__(file_list, batch_size, shuffle, pre_proc_func) def load_image(self, index): file_name = self.input_images[index] path = "{}/{}".format(self.data_dir, file_name) path_label = "{}/{}".format(self.label_dir, file_name) return np.load(path), np.load(path_label) def augment_3d(self, x, y): def _distort_color(scan): # adjust brightness max_delta = 0.125 delta = np.random.uniform(-max_delta, max_delta) scan += delta # adjust contrast lower = 0.5 upper = 1.5 contrast_factor = np.random.uniform(lower, upper) scan_mean = np.mean(scan) scan = (contrast_factor * (scan - scan_mean)) + scan_mean return scan processed_image, processed_mask = x.copy(), y.copy() for i in range(3): if np.random.rand() < 0.5: processed_image = np.flip(processed_image, i) processed_mask = np.flip(processed_mask, i) # make rotation arbitrary instead of multiples of 90deg if np.random.rand() < 0.5: axis_choice = np.random.randint(0, 3) if axis_choice == 0: xy_angle = np.random.uniform(0, 360) processed_image = ndimage.rotate(processed_image, xy_angle, axes=(0, 1), reshape=False, order=1) processed_mask = ndimage.rotate(processed_mask, xy_angle, axes=(0, 1), reshape=False, order=0) elif axis_choice == 1: yz_angle = np.random.uniform(0, 360) processed_image = ndimage.rotate(processed_image, yz_angle, axes=(1, 2), reshape=False, order=1) processed_mask = ndimage.rotate(processed_mask, yz_angle, axes=(1, 2), reshape=False, order=0) else: xz_angle = np.random.uniform(0, 360) processed_image = ndimage.rotate(processed_image, xz_angle, axes=(0, 2), reshape=False, order=1) processed_mask = ndimage.rotate(processed_mask, xz_angle, axes=(0, 2), reshape=False, order=0) if np.random.rand() < 0.7: # color distortion (THIS DOESN'T CHANGE IN THE MASK) processed_image = _distort_color(processed_image) return processed_image, processed_mask def data_generation(self, list_files_temp): data_x = [] data_y = [] for file_name in list_files_temp: path = "{}/{}".format(self.data_dir, file_name) path_label = Path("{}/{}".format(self.label_dir, file_name)) path_label = path_label.with_name(path_label.stem + self.label_stem).with_suffix(path_label.suffix) mask = np.load(path_label) img = np.load(path) img = (img - img.min()) / (img.max() - img.min()) if self.augment_scans_train: img, mask = self.augment_3d(img, mask) data_x.append(img) data_y.append(mask) data_x = np.stack(data_x) data_y = np.stack(data_y) data_y = np.rint(data_y).astype(np.int) n_classes = np.max(data_y) + 1 data_y = np.eye(n_classes)[data_y] if data_y.shape[-2] == 1: data_y = np.squeeze(data_y, axis=-2) # remove second last axis, which is still 1 return data_x, data_y class PatchSegmentationGenerator3D(DataGeneratorBase): def __init__( self, data_path, file_list, batch_size=8, patch_size=(128, 128, 128), patches_per_scan=3, pre_proc_func=None, shuffle=False, augment=False, label_stem="_label" ): self.augment_scans_train = augment self.label_stem = label_stem self.label_dir = data_path + "_labels" self.data_dir = data_path self.patch_size = patch_size self.patches_per_scan = patches_per_scan super(PatchSegmentationGenerator3D, self).__init__(file_list, batch_size, shuffle, pre_proc_func) def load_image(self, index): file_name = self.input_images[index] path = "{}/{}".format(self.data_dir, file_name) path_label = "{}/{}".format(self.label_dir, file_name) return np.load(path), np.load(path_label) def augment_3d(self, x, y): def _distort_color(scan): # adjust brightness max_delta = 0.125 delta = np.random.uniform(-max_delta, max_delta) scan += delta # adjust contrast lower = 0.5 upper = 1.5 contrast_factor = np.random.uniform(lower, upper) scan_mean = np.mean(scan) scan = (contrast_factor * (scan - scan_mean)) + scan_mean return scan processed_image, processed_mask = x.copy(), y.copy() for i in range(3): # arbitrary flipping along each axis if np.random.rand() < 0.5: processed_image = np.flip(processed_image, axis=i) processed_mask = np.flip(processed_mask, axis=i) if np.random.rand() < 0.7: # color distortion (THIS DOESN'T CHANGE IN THE MASK) processed_image = _distort_color(processed_image) return processed_image, processed_mask def data_generation(self, list_files_temp): data_x = [] data_y = [] for file_name in list_files_temp: path = "{}/{}".format(self.data_dir, file_name) path_label = Path("{}/{}".format(self.label_dir, file_name)) path_label = path_label.with_name(path_label.stem + self.label_stem).with_suffix(path_label.suffix) mask = np.load(path_label) img = np.load(path) img = (img - img.min()) / (img.max() - img.min()) origin_row = np.random.randint(0, img.shape[0] - self.patch_size[0], self.patches_per_scan) origin_col = np.random.randint(0, img.shape[1] - self.patch_size[1], self.patches_per_scan) origin_dep = np.random.randint(0, img.shape[2] - self.patch_size[2], self.patches_per_scan) for o_r, o_c, o_d in zip(origin_row, origin_col, origin_dep): patch = img[o_r:o_r + self.patch_size[0], o_c:o_c + self.patch_size[1], o_d:o_d + self.patch_size[2]] patch_mask = mask[o_r:o_r + self.patch_size[0], o_c:o_c + self.patch_size[1], o_d:o_d + self.patch_size[2]] if self.augment_scans_train: patch, patch_mask = self.augment_3d(patch, patch_mask) data_x.append(patch) data_y.append(patch_mask) # just to keep the dims right data_x = np.stack(data_x) data_y = np.stack(data_y) data_y = np.rint(data_y).astype(np.int) n_classes = np.max(data_y) + 1 data_y = np.eye(n_classes)[data_y] if data_y.shape[-2] == 1: data_y = np.squeeze(data_y, axis=-2) # remove second last axis, which is still 1 return data_x, data_y
39.979275
117
0.591369
1,035
7,716
4.137198
0.148792
0.03036
0.03036
0.021018
0.816207
0.793788
0.773237
0.757823
0.728164
0.728164
0
0.020378
0.300415
7,716
192
118
40.1875
0.772879
0.047952
0
0.720779
0
0
0.008999
0
0
0
0
0
0
1
0.064935
false
0
0.032468
0
0.162338
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9a847debe87c7b060fcafb2f453246990a45002d
147
py
Python
pyautofinance/common/observers/__init__.py
webclinic017/PyAutoFinance
532cb1c5418dd9eeb07f2f08646170cde1fe0303
[ "MIT" ]
null
null
null
pyautofinance/common/observers/__init__.py
webclinic017/PyAutoFinance
532cb1c5418dd9eeb07f2f08646170cde1fe0303
[ "MIT" ]
null
null
null
pyautofinance/common/observers/__init__.py
webclinic017/PyAutoFinance
532cb1c5418dd9eeb07f2f08646170cde1fe0303
[ "MIT" ]
1
2022-02-24T09:18:13.000Z
2022-02-24T09:18:13.000Z
from pyautofinance.common.observers.observer import Observer from pyautofinance.common.observers.average_gain_per_trade import AverageGainPerTrade
49
85
0.904762
17
147
7.647059
0.647059
0.261538
0.353846
0.492308
0
0
0
0
0
0
0
0
0.054422
147
2
86
73.5
0.935252
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
9aacbe236220433ef04da59ac69ace125482e5db
6,521
py
Python
bpe.py
bugii/atmt
f99ccc7a8dcd081ef6ed36313185cd6b785e9a32
[ "MIT" ]
null
null
null
bpe.py
bugii/atmt
f99ccc7a8dcd081ef6ed36313185cd6b785e9a32
[ "MIT" ]
null
null
null
bpe.py
bugii/atmt
f99ccc7a8dcd081ef6ed36313185cd6b785e9a32
[ "MIT" ]
null
null
null
import sentencepiece as spm import os def train_bpe(): spm.SentencePieceTrainer.Train( input='baseline/preprocessed_data/train.de', model_prefix='bpe_de', vocab_size=4000) spm.SentencePieceTrainer.Train( input='baseline/preprocessed_data/train.en', model_prefix='bpe_en', vocab_size=4000) def bpe(): os.makedirs("bpe/preprocessed_data", exist_ok=True) sp = spm.SentencePieceProcessor(model_file="bpe_de.model") with open('baseline/preprocessed_data/train.de', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str) with open('bpe/preprocessed_data/train.de', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") sp = spm.SentencePieceProcessor(model_file="bpe_en.model") with open('baseline/preprocessed_data/train.en', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str) with open('bpe/preprocessed_data/train.en', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") sp = spm.SentencePieceProcessor(model_file="bpe_de.model") with open('baseline/preprocessed_data/test.de', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str) with open('bpe/preprocessed_data/test.de', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") sp = spm.SentencePieceProcessor(model_file="bpe_en.model") with open('baseline/preprocessed_data/test.en', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str) with open('bpe/preprocessed_data/test.en', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") sp = spm.SentencePieceProcessor(model_file="bpe_de.model") with open('baseline/preprocessed_data/valid.de', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str) with open('bpe/preprocessed_data/valid.de', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") sp = spm.SentencePieceProcessor(model_file="bpe_en.model") with open('baseline/preprocessed_data/valid.en', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str) with open('bpe/preprocessed_data/valid.en', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") sp = spm.SentencePieceProcessor(model_file="bpe_de.model") with open('baseline/preprocessed_data/tiny_train.de', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str) with open('bpe/preprocessed_data/tiny_train.de', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") sp = spm.SentencePieceProcessor(model_file="bpe_en.model") with open('baseline/preprocessed_data/tiny_train.en', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str) with open('bpe/preprocessed_data/tiny_train.en', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") def bpe_dropout(p): # don't apply bpe to test sets, but both sides for training set (en and de, better results according to paper in case of small datasets) sp = spm.SentencePieceProcessor(model_file="bpe_de.model") with open('baseline/preprocessed_data/train.de', 'r') as f: data = f.read().split("\n") train_de = sp.Encode( input=data, out_type=str, enable_sampling=True, alpha=p) with open('bpe_dropout/preprocessed_data/train.de', 'w') as f2: for sentence in train_de: if sentence != []: f2.write(" ".join(sentence) + "\n") # with open('baseline/preprocessed_data/valid.de', 'r') as f: # data = f.read().split("\n") # valid_de = sp.Encode( # input=data, out_type=str, enable_sampling=True, alpha=p) # with open('bpe_dropout/preprocessed_data/valid.de', 'w') as f2: # for sentence in valid_de: # f2.write(" ".join(sentence) + "\n") # with open('baseline/preprocessed_data/tiny_train.de', 'r') as f: # data = f.read().split("\n") # tiny_train_de = sp.Encode( # input=data, out_type=str, enable_sampling=True, alpha=p) # with open('bpe_dropout/preprocessed_data/tiny_train.de', 'w') as f2: # for sentence in tiny_train_de: # f2.write(" ".join(sentence) + "\n") sp = spm.SentencePieceProcessor(model_file="bpe_en.model") with open('baseline/preprocessed_data/train.en', 'r') as f: data = f.read().split("\n") train_en = sp.Encode( input=data, out_type=str, enable_sampling=True, alpha=p) with open('bpe_dropout/preprocessed_data/train.en', 'w') as f2: for sentence in train_en: if sentence != []: f2.write(" ".join(sentence) + "\n") # with open('baseline/preprocessed_data/valid.en', 'r') as f: # data = f.read().split("\n") # valid_en = sp.Encode( # input=data, out_type=str, enable_sampling=True, alpha=p) # with open('bpe_dropout/preprocessed_data/valid.en', 'w') as f2: # for sentence in valid_en: # f2.write(" ".join(sentence) + "\n") # with open('baseline/preprocessed_data/tiny_train.en', 'r') as f: # data = f.read().split("\n") # tiny_train_en = sp.Encode( # input=data, out_type=str, enable_sampling=True, alpha=p) # with open('bpe_dropout/preprocessed_data/tiny_train.en', 'w') as f2: # for sentence in tiny_train_en: # f2.write(" ".join(sentence) + "\n") if __name__ == "__main__": train_bpe() bpe()
35.440217
140
0.572612
851
6,521
4.229142
0.088132
0.137816
0.106696
0.108919
0.9197
0.918589
0.910809
0.905807
0.866352
0.863573
0
0.007647
0.278025
6,521
183
141
35.63388
0.756797
0.230946
0
0.718447
0
0
0.197192
0.155065
0
0
0
0
0
1
0.029126
false
0
0.019417
0
0.048544
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9ab438a07ea64f68f37101a0ab18af688a4f582e
3,945
py
Python
tests/test_data.py
fontaine618/MTSGL
19dd7e540baf6519c7dd21cdfe5222339b851a06
[ "MIT" ]
1
2021-07-11T01:27:41.000Z
2021-07-11T01:27:41.000Z
tests/test_data.py
fontaine618/MTSGL
19dd7e540baf6519c7dd21cdfe5222339b851a06
[ "MIT" ]
null
null
null
tests/test_data.py
fontaine618/MTSGL
19dd7e540baf6519c7dd21cdfe5222339b851a06
[ "MIT" ]
1
2021-07-11T01:27:50.000Z
2021-07-11T01:27:50.000Z
import unittest import numpy as np import pandas as pd import MTSGL.data class TestDfToData(unittest.TestCase): def test_bad_y(self): n = 10 p = 5 df = pd.DataFrame(data={ "y": np.random.normal(0, 1, n), "w": np.random.uniform(0, 1, n), "task": np.random.choice([0, 1, 2], n) }) for i in range(p): df["var" + str(i + 1)] = np.random.normal(0, 1, n) self.assertRaises( TypeError, MTSGL.data.utils.df_to_data, df=df, y_cols=2, task_col="task", w_cols="w", x_cols=["var1", "var2", "var3"] ) def test_bad_col_name(self): n = 10 p = 5 df = pd.DataFrame(data={ "y": np.random.normal(0, 1, n), "w": np.random.uniform(0, 1, n), "task": np.random.choice([0, 1, 2], n) }) for i in range(p): df["var" + str(i + 1)] = np.random.normal(0, 1, n) self.assertRaises( TypeError, MTSGL.data.utils.df_to_data, df=df, y_cols=2, task_col="task", w_cols="w2", x_cols=["var1", "var2", "var3"] ) def test_one_y_no_task(self): n = 10 p = 5 df = pd.DataFrame(data={ "y": np.random.normal(0, 1, n), "w": np.random.uniform(0, 1, n), "task": np.random.choice([0, 1, 2], n) }) for i in range(p): df["var" + str(i + 1)] = np.random.normal(0, 1, n) data = MTSGL.data.utils.df_to_data( df=df, y_cols=["y"], w_cols="w", x_cols=["var1", "var2", "var3"] ) self.assertEqual(data.y("0").shape, (10, )) def test_Multivariate_single_w(self): n = 10 p = 5 df = pd.DataFrame(data={ "y1": np.random.normal(0, 1, n), "w": np.random.uniform(0, 1, n), "y2": np.random.choice([0, 1, 2], n), "task": np.random.choice([0, 1, 2], n) }) for i in range(p): df["var" + str(i + 1)] = np.random.normal(0, 1, n) data = MTSGL.data.utils.df_to_data( df=df, y_cols=["y1", "y2"], task_col="task", x_cols=["var1", "var2", "var3"] ) data.x("y") self.assertEqual(data._w.shape, (10, 1)) def test_Multivariate_multi_w(self): n = 10 p = 5 df = pd.DataFrame(data={ "y1": np.random.normal(0, 1, n), "w1": np.random.uniform(0, 1, n), "w2": np.random.uniform(0, 1, n), "y2": np.random.choice([0, 1, 2], n), "task": np.random.choice([0, 1, 2], n) }) for i in range(p): df["var" + str(i + 1)] = np.random.normal(i, i, n) data = MTSGL.data.utils.df_to_data( df=df, y_cols=["y1", "y2"], w_cols=["w1", "w2"], x_cols=["var1", "var2", "var3"] ) self.assertEqual(data._w.shape, (10, 2)) def test_Multivariate_no_x(self): n = 10 p = 5 df = pd.DataFrame(data={ "y1": np.random.normal(0, 1, n), "w": np.random.uniform(0, 1, n), "y2": np.random.choice([0, 1, 2], n), "task": np.random.choice([0, 1, 2], n) }) for i in range(p): df["var" + str(i + 1)] = np.random.normal(0, 1, n) data = MTSGL.data.utils.df_to_data( df=df, y_cols=["y1", "y2"], task_col="task", w_cols="w", intercept=False ) self.assertEqual(data._x.shape, (10, 6)) def test_MultiTask(self): n = 10 p = 30 df = pd.DataFrame(data={ "y": np.random.normal(0, 1, n), "w": np.random.uniform(0, 1, n), "task": [0, 1, 2, 0, 1, 2, 0, 1, 2, 0] }) for i in range(p): df["var" + str(i + 1)] = np.random.normal(i, i+1, n) data = MTSGL.data.utils.df_to_data( df=df, y_cols="y", task_col="task", w_cols="w", x_cols=["var"+str(i+1) for i in range(p)] ) self.assertEqual(data.n_obs, {"0": 4, "1": 3, "2": 3}) def test_MultiTask_no_x(self): n = 10 p = 5 df = pd.DataFrame(data={ "y": np.random.normal(0, 1, n), "w": np.random.uniform(0, 1, n), "task": [0, 1, 2, 0, 1, 2, 0, 1, 2, 0] }) for i in range(p): df["var" + str(i + 1)] = np.random.normal(0, 1, n) data = MTSGL.data.utils.df_to_data( df=df, y_cols="y", task_col="task", w_cols="w", intercept=False ) self.assertEqual( [data._x[task].shape for task in data.tasks], [(4, 5), (3, 5), (3, 5)] ) if __name__ == '__main__': unittest.main()
23.070175
56
0.556907
716
3,945
2.959497
0.099162
0.035866
0.032563
0.099103
0.829165
0.815479
0.78858
0.77395
0.726286
0.726286
0
0.060292
0.217997
3,945
170
57
23.205882
0.62658
0
0
0.734177
0
0
0.053232
0
0
0
0
0
0.050633
1
0.050633
false
0
0.025316
0
0.082278
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
9abea79ec6db101fe8b82b730eb7cc750a7ea38c
8,510
py
Python
tests/test_core/test_drawable_shapes/test_ellipse_drawable_shape.py
glipR/pygame_gui
0cbf7056518377b455d51a8d20167f4029756ad9
[ "MIT" ]
339
2019-10-30T01:42:23.000Z
2022-03-31T06:11:18.000Z
tests/test_core/test_drawable_shapes/test_ellipse_drawable_shape.py
glipR/pygame_gui
0cbf7056518377b455d51a8d20167f4029756ad9
[ "MIT" ]
236
2019-10-15T18:33:06.000Z
2022-03-03T19:18:09.000Z
tests/test_core/test_drawable_shapes/test_ellipse_drawable_shape.py
glipR/pygame_gui
0cbf7056518377b455d51a8d20167f4029756ad9
[ "MIT" ]
55
2019-11-02T09:19:56.000Z
2022-01-21T18:48:24.000Z
import pygame from tests.shared_fixtures import _init_pygame, default_ui_manager, default_display_surface, \ _display_surface_return_none from pygame_gui.core.drawable_shapes.ellipse_drawable_shape import EllipseDrawableShape from pygame_gui.ui_manager import UIManager from pygame_gui.core.colour_gradient import ColourGradient class TestEllipseDrawableShape: def test_creation(self, _init_pygame, default_ui_manager: UIManager): EllipseDrawableShape(containing_rect=pygame.Rect(0, 0, 100, 100), theming_parameters={'text': 'test', 'font': default_ui_manager.get_theme().get_font([]), 'shadow_width': 0, 'border_width': 0, 'normal_border': pygame.Color('#FFFFFF'), 'normal_bg': pygame.Color('#000000'), 'text_horiz_alignment': 'center', 'text_vert_alignment': 'center'}, states=['normal'], manager=default_ui_manager) def test_full_rebuild_on_size_change_negative_values(self, _init_pygame, default_ui_manager: UIManager): shape = EllipseDrawableShape(containing_rect=pygame.Rect(0, 0, 100, 100), theming_parameters={'text': 'test', 'font': default_ui_manager.ui_theme.get_font([]), 'shadow_width': -10, 'border_width': -10, 'normal_border': pygame.Color('#FFFFFF'), 'normal_bg': pygame.Color('#000000'), 'text_horiz_alignment': 'center', 'text_vert_alignment': 'center'}, states=['normal'], manager=default_ui_manager) shape.full_rebuild_on_size_change() def test_full_rebuild_on_size_change_large(self, _init_pygame, default_ui_manager: UIManager): shape = EllipseDrawableShape(containing_rect=pygame.Rect(0, 0, 25, 25), theming_parameters={'text': 'test', 'font': default_ui_manager.ui_theme.get_font([]), 'shadow_width': 20, 'border_width': 20, 'normal_border': pygame.Color('#FFFFFF'), 'normal_bg': pygame.Color('#000000'), 'text_horiz_alignment': 'center', 'text_vert_alignment': 'center'}, states=['normal'], manager=default_ui_manager) shape.full_rebuild_on_size_change() def test_full_rebuild_on_size_change_large_shadow(self, _init_pygame, default_ui_manager: UIManager): shape = EllipseDrawableShape(containing_rect=pygame.Rect(0, 0, 2, 2), theming_parameters={'text': 'test', 'font': default_ui_manager.ui_theme.get_font([]), 'shadow_width': 1, 'border_width': 0, 'normal_border': pygame.Color('#FFFFFF'), 'normal_bg': pygame.Color('#000000'), 'text_horiz_alignment': 'center', 'text_vert_alignment': 'center'}, states=['normal'], manager=default_ui_manager) shape.full_rebuild_on_size_change() def test_collide_point(self, _init_pygame, default_ui_manager: UIManager): shape = EllipseDrawableShape(containing_rect=pygame.Rect(0, 0, 100, 100), theming_parameters={'text': 'test', 'font': default_ui_manager.ui_theme.get_font([]), 'shadow_width': 0, 'border_width': 0, 'normal_border': pygame.Color('#FFFFFF'), 'normal_bg': pygame.Color('#000000'), 'text_horiz_alignment': 'center', 'text_vert_alignment': 'center'}, states=['normal'], manager=default_ui_manager) assert shape.collide_point((50, 50)) is True def test_set_position(self, _init_pygame, default_ui_manager: UIManager): shape = EllipseDrawableShape(containing_rect=pygame.Rect(0, 0, 100, 100), theming_parameters={'text': 'test', 'font': default_ui_manager.ui_theme.get_font([]), 'shadow_width': 0, 'border_width': 0, 'normal_border': pygame.Color('#FFFFFF'), 'normal_bg': pygame.Color('#000000'), 'text_horiz_alignment': 'center', 'text_vert_alignment': 'center'}, states=['normal'], manager=default_ui_manager) shape.set_position((50, 50)) def test_set_dimensions(self, _init_pygame, default_ui_manager: UIManager): shape = EllipseDrawableShape(containing_rect=pygame.Rect(0, 0, 100, 100), theming_parameters={'text': 'test', 'font': default_ui_manager.ui_theme.get_font([]), 'shadow_width': 0, 'border_width': 0, 'normal_border': pygame.Color('#FFFFFF'), 'normal_bg': pygame.Color('#000000'), 'text_horiz_alignment': 'center', 'text_vert_alignment': 'center'}, states=['normal'], manager=default_ui_manager) shape.set_dimensions((50, 50)) def test_creation_with_gradients(self, _init_pygame, default_ui_manager: UIManager): EllipseDrawableShape(containing_rect=pygame.Rect(0, 0, 100, 100), theming_parameters={'text': 'test', 'font': default_ui_manager.get_theme().get_font([]), 'shadow_width': 2, 'border_width': 2, 'normal_border': ColourGradient(0, pygame.Color('#000000'), pygame.Color('#FFFFFF')), 'normal_bg': ColourGradient(0, pygame.Color('#000000'), pygame.Color('#FFFFFF')), 'shape_corner_radius': 2, 'text_horiz_alignment': 'center', 'text_vert_alignment': 'center'}, states=['normal'], manager=default_ui_manager)
73.362069
108
0.411633
613
8,510
5.34584
0.130506
0.071407
0.122063
0.052182
0.837656
0.827281
0.827281
0.818126
0.788221
0.788221
0
0.034719
0.502468
8,510
115
109
74
0.739254
0
0
0.711538
0
0
0.125147
0
0
0
0
0
0.009615
1
0.076923
false
0
0.048077
0
0.134615
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
9ac56f080b3b9ef41ef3b9486124e9d878a12bff
204
py
Python
nodenet/python/nodenet/layers/__init__.py
NOOXY-research/NodeNet
8bf7e0c2fd0e4fae4a51b2900014004728f3c935
[ "Apache-2.0" ]
2
2018-01-31T05:52:23.000Z
2020-08-07T19:14:18.000Z
nodenet/python/nodenet/layers/__init__.py
NOOXY-research/NodeNet
8bf7e0c2fd0e4fae4a51b2900014004728f3c935
[ "Apache-2.0" ]
1
2017-11-22T09:39:50.000Z
2017-11-22T09:39:50.000Z
nodenet/python/nodenet/layers/__init__.py
magneticchen/NodeNet
8bf7e0c2fd0e4fae4a51b2900014004728f3c935
[ "Apache-2.0" ]
null
null
null
# Create alias from nodenet.layers.nodes import * from nodenet.layers.nets import * from nodenet.layers.convolutional import * from nodenet.layers.pooling import * from nodenet.layers.convertor import *
25.5
42
0.803922
27
204
6.074074
0.407407
0.335366
0.518293
0.560976
0
0
0
0
0
0
0
0
0.117647
204
7
43
29.142857
0.911111
0.058824
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
492b3cf477ea1d2e0e594989b096dd7dcd1bb9ec
357
py
Python
python/testData/inspections/PyTypeCheckerInspection/StringStartsWith.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyTypeCheckerInspection/StringStartsWith.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyTypeCheckerInspection/StringStartsWith.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
'foo'.startswith('bar') 'foo'.startswith(('bar', 'baz')) 'foo'.startswith(<warning descr="Expected type 'Union[unicode, Tuple[unicode, ...]]', got 'int' instead">2</warning>) u'foo'.startswith(u'bar') u'foo'.startswith((u'bar', u'baz')) u'foo'.startswith(<warning descr="Expected type 'Union[unicode, Tuple[unicode, ...]]', got 'int' instead">2</warning>)
44.625
118
0.672269
50
357
4.8
0.32
0.325
0.175
0.208333
0.8375
0.8375
0.683333
0.683333
0.683333
0.683333
0
0.006024
0.070028
357
7
119
51
0.716867
0
0
0
0
0
0.492997
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
1
0
1
1
1
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
495b4b7842190dcf406b113a9f2a2362e077637b
132
py
Python
dfs/datasheets/parsers/__init__.py
shoeberto/dfs-data-tooling
fe1be744b343f18d845ddc20f2303d1dbf0d90c5
[ "MIT" ]
null
null
null
dfs/datasheets/parsers/__init__.py
shoeberto/dfs-data-tooling
fe1be744b343f18d845ddc20f2303d1dbf0d90c5
[ "MIT" ]
null
null
null
dfs/datasheets/parsers/__init__.py
shoeberto/dfs-data-tooling
fe1be744b343f18d845ddc20f2303d1dbf0d90c5
[ "MIT" ]
null
null
null
from dfs.datasheets.parsers import plots from dfs.datasheets.parsers import treatments from dfs.datasheets.parsers import superplots
44
45
0.871212
18
132
6.388889
0.444444
0.182609
0.443478
0.626087
0.782609
0
0
0
0
0
0
0
0.083333
132
3
46
44
0.950413
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
b8cec39ee2f8f1d9dd50440299cb2bd66d300d13
2,149
py
Python
coreapp/migrations/0047_auto_20200329_1922.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
coreapp/migrations/0047_auto_20200329_1922.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
coreapp/migrations/0047_auto_20200329_1922.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-03-29 13:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coreapp', '0046_auto_20200327_2140'), ] operations = [ migrations.AlterField( model_name='projectbillingdaycost', name='disk_space_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillingdaycost', name='end_point_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillingdaycost', name='iqs_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillingdaycost', name='user_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillinghourlycost', name='disk_space_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillinghourlycost', name='end_point_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillinghourlycost', name='user_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillingmonthcost', name='disk_space_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillingmonthcost', name='end_point_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillingmonthcost', name='iqs_cost', field=models.FloatField(default=0.0), ), migrations.AlterField( model_name='projectbillingmonthcost', name='user_cost', field=models.FloatField(default=0.0), ), ]
31.144928
50
0.574221
188
2,149
6.398936
0.218085
0.182876
0.228595
0.26517
0.876143
0.876143
0.83458
0.83458
0.83458
0.802993
0
0.035422
0.316892
2,149
68
51
31.602941
0.78406
0.020009
0
0.887097
1
0
0.193916
0.128802
0
0
0
0
0
1
0
false
0
0.016129
0
0.064516
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
b8f101527b1dd3224c18cde6e9a5aa4c17e6f161
13,381
py
Python
tests/test_backoff.py
zexxonn/pynsq
c2b03879a0e088a5a93e5993cee835a9e36cdc13
[ "MIT" ]
null
null
null
tests/test_backoff.py
zexxonn/pynsq
c2b03879a0e088a5a93e5993cee835a9e36cdc13
[ "MIT" ]
null
null
null
tests/test_backoff.py
zexxonn/pynsq
c2b03879a0e088a5a93e5993cee835a9e36cdc13
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import os import sys import random import time from mock import call from .reader_unit_test_helpers import ( get_reader, get_ioloop, get_conn, send_message ) # shunt '..' into sys.path since we are in a 'tests' subdirectory base_dir = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) if base_dir not in sys.path: sys.path.insert(0, base_dir) from nsq import event def test_backoff_easy(): mock_ioloop = get_ioloop() r = get_reader(mock_ioloop) conn = get_conn(r) msg = send_message(conn) msg.trigger(event.FINISH, message=msg) assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 msg = send_message(conn) msg.trigger(event.REQUEUE, message=msg) assert r.backoff_block is True assert r.backoff_timer.get_interval() > 0 assert mock_ioloop.add_timeout.called timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args timeout_args[1]() assert r.backoff_block is False send_args, send_kwargs = conn.stream.write.call_args assert send_args[0] == b'RDY 1\n' msg = send_message(conn) msg.trigger(event.FINISH, message=msg) assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 expected_args = [ b'SUB test test\n', b'RDY 1\n', b'RDY 5\n', b'FIN 1234\n', b'RDY 0\n', b'REQ 1234 0\n', b'RDY 1\n', b'RDY 5\n', b'FIN 1234\n' ] assert conn.stream.write.call_args_list == [call(arg) for arg in expected_args] def test_backoff_out_of_order(): mock_ioloop = get_ioloop() r = get_reader(mock_ioloop, max_in_flight=4) conn1 = get_conn(r) conn2 = get_conn(r) msg = send_message(conn1) msg.trigger(event.FINISH, message=msg) assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 msg = send_message(conn1) msg.trigger(event.REQUEUE, message=msg) assert r.backoff_block is True assert r.backoff_timer.get_interval() > 0 assert mock_ioloop.add_timeout.called timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args msg = send_message(conn1) msg.trigger(event.FINISH, message=msg) assert r.backoff_block is True assert r.backoff_timer.get_interval() == 0 timeout_args[1]() assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 expected_args = [ b'SUB test test\n', b'RDY 1\n', b'RDY 2\n', b'FIN 1234\n', b'RDY 0\n', b'REQ 1234 0\n', b'FIN 1234\n', b'RDY 2\n', ] assert conn1.stream.write.call_args_list == [call(arg) for arg in expected_args] expected_args = [ b'SUB test test\n', b'RDY 1\n', b'RDY 0\n', b'RDY 2\n' ] assert conn2.stream.write.call_args_list == [call(arg) for arg in expected_args] def test_backoff_requeue_recovery(): mock_ioloop = get_ioloop() r = get_reader(mock_ioloop, max_in_flight=2) conn = get_conn(r) msg = send_message(conn) msg.trigger(event.FINISH, message=msg) assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 assert mock_ioloop.add_timeout.call_count == 1 msg = send_message(conn) # go into backoff msg.trigger(event.REQUEUE, message=msg) assert r.backoff_block is True assert r.backoff_timer.get_interval() > 0 assert mock_ioloop.add_timeout.call_count == 2 timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args # elapse time timeout_args[1]() assert r.backoff_block is False assert r.backoff_timer.get_interval() != 0 msg = send_message(conn) # This should not move out of backoff (since backoff=False) msg.trigger(event.REQUEUE, message=msg, backoff=False) assert r.backoff_block is True assert r.backoff_timer.get_interval() != 0 assert mock_ioloop.add_timeout.call_count == 3 timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args # elapse time timeout_args[1]() assert r.backoff_block is False assert r.backoff_timer.get_interval() != 0 # this should move out of backoff state msg = send_message(conn) msg.trigger(event.FINISH, message=msg) assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 print(conn.stream.write.call_args_list) expected_args = [ b'SUB test test\n', b'RDY 1\n', b'RDY 2\n', b'FIN 1234\n', b'RDY 0\n', b'REQ 1234 0\n', b'RDY 1\n', b'RDY 0\n', b'REQ 1234 0\n', b'RDY 1\n', b'RDY 2\n', b'FIN 1234\n' ] assert conn.stream.write.call_args_list == [call(arg) for arg in expected_args] def test_backoff_hard(): mock_ioloop = get_ioloop() r = get_reader(io_loop=mock_ioloop) conn = get_conn(r) expected_args = [b'SUB test test\n', b'RDY 1\n', b'RDY 5\n'] num_fails = 0 fail = True last_timeout_time = 0 for i in range(50): msg = send_message(conn) if fail: msg.trigger(event.REQUEUE, message=msg) num_fails += 1 expected_args.append(b'RDY 0\n') expected_args.append(b'REQ 1234 0\n') else: msg.trigger(event.FINISH, message=msg) num_fails -= 1 expected_args.append(b'RDY 0\n') expected_args.append(b'FIN 1234\n') assert r.backoff_block is True assert r.backoff_timer.get_interval() > 0 assert mock_ioloop.add_timeout.called timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args if timeout_args[0] != last_timeout_time: timeout_args[1]() last_timeout_time = timeout_args[0] assert r.backoff_block is False expected_args.append(b'RDY 1\n') fail = True if random.random() < 0.3 and num_fails > 1: fail = False for i in range(num_fails - 1): msg = send_message(conn) msg.trigger(event.FINISH, message=msg) expected_args.append(b'RDY 0\n') expected_args.append(b'FIN 1234\n') timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args if timeout_args[0] != last_timeout_time: timeout_args[1]() last_timeout_time = timeout_args[0] expected_args.append(b'RDY 1\n') msg = send_message(conn) msg.trigger(event.FINISH, message=msg) expected_args.append(b'RDY 5\n') expected_args.append(b'FIN 1234\n') assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 for i, f in enumerate(conn.stream.write.call_args_list): print("%d: %s" % (i, f)) assert conn.stream.write.call_args_list == [call(arg) for arg in expected_args] def test_backoff_many_conns(): mock_ioloop = get_ioloop() r = get_reader(io_loop=mock_ioloop) num_conns = 5 conns = [] for i in range(num_conns): conn = get_conn(r) conn.expected_args = [b'SUB test test\n', b'RDY 1\n'] conn.fails = 0 conns.append(conn) fail = True total_fails = 0 last_timeout_time = 0 conn = random.choice(conns) for i in range(50): msg = send_message(conn) if r.backoff_timer.get_interval() == 0: conn.expected_args.append(b'RDY 1\n') if fail or not conn.fails: msg.trigger(event.REQUEUE, message=msg) total_fails += 1 conn.fails += 1 for c in conns: c.expected_args.append(b'RDY 0\n') conn.expected_args.append(b'REQ 1234 0\n') else: msg.trigger(event.FINISH, message=msg) total_fails -= 1 conn.fails -= 1 for c in conns: c.expected_args.append(b'RDY 0\n') conn.expected_args.append(b'FIN 1234\n') assert r.backoff_block is True assert r.backoff_timer.get_interval() > 0 assert mock_ioloop.add_timeout.called timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args if timeout_args[0] != last_timeout_time: conn = timeout_args[1]() last_timeout_time = timeout_args[0] assert r.backoff_block is False conn.expected_args.append(b'RDY 1\n') fail = True if random.random() < 0.3 and total_fails > 1: fail = False while total_fails: print("%r: %d fails (%d total_fails)" % (conn, conn.fails, total_fails)) if not conn.fails: # force an idle connection for c in conns: if c.rdy > 0: c.last_msg_timestamp = time.time() - 60 c.expected_args.append(b'RDY 0\n') conn = r._redistribute_rdy_state() conn.expected_args.append(b'RDY 1\n') continue msg = send_message(conn) msg.trigger(event.FINISH, message=msg) total_fails -= 1 conn.fails -= 1 if total_fails > 0: for c in conns: c.expected_args.append(b'RDY 0\n') else: for c in conns: c.expected_args.append(b'RDY 1\n') conn.expected_args.append(b'FIN 1234\n') timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args if timeout_args[0] != last_timeout_time: conn = timeout_args[1]() last_timeout_time = timeout_args[0] if total_fails > 0: conn.expected_args.append(b'RDY 1\n') assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 for c in conns: for i, f in enumerate(c.stream.write.call_args_list): print("%d: %s" % (i, f)) assert c.stream.write.call_args_list == [call(arg) for arg in c.expected_args] def test_backoff_conns_disconnect(): mock_ioloop = get_ioloop() r = get_reader(io_loop=mock_ioloop) num_conns = 5 conns = [] for i in range(num_conns): conn = get_conn(r) conn.expected_args = [b'SUB test test\n', b'RDY 1\n'] conn.fails = 0 conns.append(conn) fail = True total_fails = 0 last_timeout_time = 0 conn = random.choice(conns) for i in range(50): if i % 5 == 0: if len(r.conns) == num_conns: conn.trigger(event.CLOSE, conn=conn) conns.remove(conn) if conn.rdy and r.backoff_timer.get_interval(): assert r.need_rdy_redistributed conn = r._redistribute_rdy_state() if not conn: conn = random.choice(conns) else: conn.expected_args.append(b'RDY 1\n') continue else: c = get_conn(r) c.expected_args = [b'SUB test test\n'] c.fails = 0 conns.append(c) msg = send_message(conn) if r.backoff_timer.get_interval() == 0: conn.expected_args.append(b'RDY 1\n') if fail or not conn.fails: msg.trigger(event.REQUEUE, message=msg) total_fails += 1 conn.fails += 1 for c in conns: c.expected_args.append(b'RDY 0\n') conn.expected_args.append(b'REQ 1234 0\n') else: msg.trigger(event.FINISH, message=msg) total_fails -= 1 conn.fails -= 1 for c in conns: c.expected_args.append(b'RDY 0\n') conn.expected_args.append(b'FIN 1234\n') assert r.backoff_block is True assert r.backoff_timer.get_interval() > 0 assert mock_ioloop.add_timeout.called timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args if timeout_args[0] != last_timeout_time: conn = timeout_args[1]() last_timeout_time = timeout_args[0] assert r.backoff_block is False conn.expected_args.append(b'RDY 1\n') fail = True if random.random() < 0.3 and total_fails > 1: fail = False while total_fails: print("%r: %d fails (%d total_fails)" % (conn, conn.fails, total_fails)) msg = send_message(conn) msg.trigger(event.FINISH, message=msg) total_fails -= 1 conn.fails -= 1 if total_fails > 0: for c in conns: c.expected_args.append(b'RDY 0\n') else: for c in conns: c.expected_args.append(b'RDY 1\n') conn.expected_args.append(b'FIN 1234\n') timeout_args, timeout_kwargs = mock_ioloop.add_timeout.call_args if timeout_args[0] != last_timeout_time: conn = timeout_args[1]() last_timeout_time = timeout_args[0] if total_fails > 0: conn.expected_args.append(b'RDY 1\n') assert r.backoff_block is False assert r.backoff_timer.get_interval() == 0 for c in conns: for i, f in enumerate(c.stream.write.call_args_list): print("%d: %s" % (i, f)) assert c.stream.write.call_args_list == [call(arg) for arg in c.expected_args]
29.280088
90
0.607354
1,960
13,381
3.940306
0.069388
0.074582
0.076136
0.081186
0.878545
0.858604
0.842548
0.834779
0.834779
0.811731
0
0.025336
0.289141
13,381
456
91
29.344298
0.786585
0.01674
0
0.810198
0
0
0.056354
0
0
0
0
0
0.167139
1
0.016997
false
0
0.028329
0
0.045326
0.01983
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
771c28b8d8940a0b49ff2bf79d70431322892135
19,466
py
Python
tests/app/main/views/test_user.py
alphagov/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
12
2015-10-06T08:58:28.000Z
2016-08-08T17:51:29.000Z
tests/app/main/views/test_user.py
gds-attic/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
1
2015-10-27T12:01:26.000Z
2015-10-27T12:01:26.000Z
tests/app/main/views/test_user.py
gds-attic/notify-api
16dbafbad69e5bb179ba4b2202a7afa299c88d61
[ "MIT" ]
3
2016-05-31T17:40:15.000Z
2021-04-10T20:03:33.000Z
from flask import json from app import db from app.models import User, Service from datetime import datetime def test_should_fetch_users_for_a_service(notify_api, notify_db, notify_db_session): response = notify_api.test_client().get( '/service/1234/users', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(response.get_data()) assert response.status_code == 200 assert 'users' in data assert len(data['users']) == 1 assert data['users'][0]['role'] == 'admin' assert data['users'][0]['emailAddress'] == 'test-user@example.org' assert not data['users'][0]['locked'] assert data['users'][0]['active'] assert data['users'][0]['failedLoginCount'] == 0 def test_should_fetch_all_users_for_a_service(notify_api, notify_db, notify_db_session): user = User( email_address="test@test.com", mobile_number="+441234123412", password="password", active=True, created_at=datetime.utcnow(), updated_at=datetime.utcnow(), password_changed_at=datetime.utcnow(), failed_login_count=0, role='admin' ) service = Service.query.get(1234) service.users.append(user) db.session.add(service) db.session.commit() response = notify_api.test_client().get( '/service/1234/users', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(response.get_data()) assert response.status_code == 200 assert 'users' in data assert len(data['users']) == 2 assert data['users'][0]['emailAddress'] == 'test-user@example.org' assert data['users'][1]['emailAddress'] == 'test@test.com' def test_should_add_user_to_service(notify_api, notify_db, notify_db_session): user = User( email_address="add-me@test.gov.uk", mobile_number="+441234999999", password="password", active=True, created_at=datetime.utcnow(), updated_at=datetime.utcnow(), password_changed_at=datetime.utcnow(), failed_login_count=0, role='admin' ) db.session.add(user) db.session.commit() response = notify_api.test_client().post( '/service/1234/add-user', data=json.dumps( { 'user': { 'emailAddress': 'add-me@test.gov.uk' } } ), headers={ 'Authorization': 'Bearer 1234' }, content_type='application/json') assert response.status_code == 200 fetch_response = notify_api.test_client().get( '/service/1234/users', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(fetch_response.get_data()) assert fetch_response.status_code == 200 assert 'users' in data assert len(data['users']) == 2 assert data['users'][0]['emailAddress'] == 'test-user@example.org' assert data['users'][1]['emailAddress'] == 'add-me@test.gov.uk' def test_cannot_add_user_twice_to_a_service(notify_api, notify_db, notify_db_session): user = User( email_address="add-me@test.gov.uk", mobile_number="+441234999999", password="password", active=True, created_at=datetime.utcnow(), updated_at=datetime.utcnow(), password_changed_at=datetime.utcnow(), failed_login_count=0, role='admin' ) db.session.add(user) db.session.commit() response_1 = notify_api.test_client().post( '/service/1234/add-user', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'add-me@test.gov.uk' } } ), content_type='application/json') assert response_1.status_code == 200 response_2 = notify_api.test_client().post( '/service/1234/add-user', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'add-me@test.gov.uk' } } ), content_type='application/json') assert response_2.status_code == 200 fetch_response = notify_api.test_client().get( '/service/1234/users', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(fetch_response.get_data()) assert fetch_response.status_code == 200 assert 'users' in data assert len(data['users']) == 2 assert data['users'][0]['emailAddress'] == 'test-user@example.org' assert data['users'][1]['emailAddress'] == 'add-me@test.gov.uk' def test_user_cannot_be_added_to_non_existant_service(notify_api, notify_db, notify_db_session): user = User( email_address="add-me@test.gov.uk", mobile_number="+441234999999", password="password", active=True, created_at=datetime.utcnow(), updated_at=datetime.utcnow(), password_changed_at=datetime.utcnow(), failed_login_count=0, role='admin' ) db.session.add(user) db.session.commit() response = notify_api.test_client().post( '/service/5656/add-user', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'add-me@test.gov.uk' } } ), content_type='application/json') assert response.status_code == 404 def test_user_cannot_be_add_non_existant_user_to_service(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/service/1234/add-user', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'missing@test.gov.uk' } } ), content_type='application/json') assert response.status_code == 404 def test_should_remove_user_from_a_service(notify_api, notify_db, notify_db_session): user = User( email_address="add-me@test.gov.uk", mobile_number="+441234999999", password="password", active=True, created_at=datetime.utcnow(), updated_at=datetime.utcnow(), password_changed_at=datetime.utcnow(), failed_login_count=0, role='admin' ) db.session.add(user) db.session.commit() post_1 = notify_api.test_client().post( '/service/1234/add-user', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'add-me@test.gov.uk' } } ), content_type='application/json') assert post_1.status_code == 200 fetch_1 = notify_api.test_client().get( '/service/1234/users', headers={ 'Authorization': 'Bearer 1234' }) data_1 = json.loads(fetch_1.get_data()) assert fetch_1.status_code == 200 assert len(data_1['users']) == 2 post_2 = notify_api.test_client().post( '/service/1234/remove-user', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'add-me@test.gov.uk' } } ), content_type='application/json') assert post_2.status_code == 200 fetch_2 = notify_api.test_client().get( '/service/1234/users', headers={ 'Authorization': 'Bearer 1234' }) data_2 = json.loads(fetch_2.get_data()) assert fetch_2.status_code == 200 assert 'users' in data_2 assert len(data_2['users']) == 1 assert data_2['users'][0]['emailAddress'] == 'test-user@example.org' def test_user_cannot_be_removed_from_a_non_existent_service(notify_api, notify_db, notify_db_session): user = User( email_address="add-me@test.gov.uk", mobile_number="+441234999999", password="password", active=True, created_at=datetime.utcnow(), updated_at=datetime.utcnow(), password_changed_at=datetime.utcnow(), failed_login_count=0, role='admin' ) db.session.add(user) db.session.commit() response = notify_api.test_client().post( '/service/5656/remove-user', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'add-me@test.gov.uk' } } ), content_type='application/json') assert response.status_code == 404 def test_user_cannot_be_remove_non_existent_user_from_a_service(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/service/1234/remove-user', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'missing@test.gov.uk' } } ), content_type='application/json') assert response.status_code == 404 def test_should_by_404_for_non_numeric_user_id(notify_api, notify_db, notify_db_session): response = notify_api.test_client().get( '/users/invalid', headers={ 'Authorization': 'Bearer 1234' }) assert response.status_code == 404 def test_should_fetch_user_if_can_find_by_id(notify_api, notify_db, notify_db_session): response = notify_api.test_client().get( '/users/1234', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(response.get_data()) assert response.status_code == 200 assert 'users' in data assert data['users']['role'] == 'admin' assert data['users']['emailAddress'] == 'test-user@example.org' assert not data['users']['locked'] assert data['users']['active'] def test_should_reject_fetch_user_request_with_no_email(notify_api, notify_db, notify_db_session): response = notify_api.test_client().get( '/users', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(response.get_data()) assert response.status_code == 400 assert data['error'] == 'No email address provided' def test_should_fetch_user_if_can_find_by_email(notify_api, notify_db, notify_db_session): response = notify_api.test_client().get( '/users?email_address=test-user@example.org', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(response.get_data()) assert response.status_code == 200 assert 'users' in data assert data['users']['role'] == 'admin' assert data['users']['emailAddress'] == 'test-user@example.org' assert not data['users']['locked'] assert data['users']['active'] assert data['users']['failedLoginCount'] == 0 def test_should_only_allow_valid_auth_requests(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/users/auth', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'userAuthentication': { 'password': 'valid-password' } } ), content_type='application/json') data = json.loads(response.get_data()) assert response.status_code == 400 assert 'error_details' in data assert {'required': ["'emailAddress' is a required property"]} in data['error_details'] def test_should_be_able_to_auth_user(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/users/auth', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'userAuthentication': { 'emailAddress': 'TEST-user@example.org', 'password': 'valid-password' } } ), content_type='application/json') data = json.loads(response.get_data()) assert response.status_code == 200 assert 'users' in data assert data['users']['role'] == 'admin' assert data['users']['emailAddress'] == 'test-user@example.org' assert not data['users']['locked'] assert data['users']['active'] def test_should_404_if_user_not_found_on_auth(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/users/auth', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'userAuthentication': { 'emailAddress': 'test-user123@example.org', 'password': 'valid-password' } } ), content_type='application/json') assert response.status_code == 404 def test_should_increment_failed_login_count(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/users/auth', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'userAuthentication': { 'emailAddress': 'test-user@example.org', 'password': 'invalid-password' } } ), content_type='application/json') assert response.status_code == 403 fetch_response = notify_api.test_client().get( '/users?email_address=test-user@example.org', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(fetch_response.get_data()) assert fetch_response.status_code == 200 assert data['users']['failedLoginCount'] == 1 def test_should_reset_failed_login_count_on_success(notify_api, notify_db, notify_db_session): response_1 = notify_api.test_client().post( '/users/auth', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'userAuthentication': { 'emailAddress': 'test-user@example.org', 'password': 'invalid-password' } } ), content_type='application/json') assert response_1.status_code == 403 fetch_response_1 = notify_api.test_client().get( '/users?email_address=test-user@example.org', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(fetch_response_1.get_data()) assert fetch_response_1.status_code == 200 assert data['users']['failedLoginCount'] == 1 response_2 = notify_api.test_client().post( '/users/auth', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'userAuthentication': { 'emailAddress': 'test-user@example.org', 'password': 'valid-password' } } ), content_type='application/json') assert response_2.status_code == 200 fetch_response_2 = notify_api.test_client().get( '/users?email_address=test-user@example.org', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(fetch_response_2.get_data()) assert fetch_response_2.status_code == 200 assert data['users']['failedLoginCount'] == 0 def test_should_prevent_login_when_too_many_failed_attempts(notify_api, notify_db, notify_db_session): for i in range(0, notify_api.config['MAX_FAILED_LOGIN_COUNT'] + 1): response = notify_api.test_client().post( '/users/auth', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'userAuthentication': { 'emailAddress': 'test-user@example.org', 'password': 'invalid-password' } } ), content_type='application/json') assert response.status_code == 403 fetch_response = notify_api.test_client().get( '/users?email_address=test-user@example.org', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(fetch_response.get_data()) assert fetch_response.status_code == 200 assert data['users']['failedLoginCount'] == 6 assert data['users']['locked'] response_2 = notify_api.test_client().post( '/users/auth', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'userAuthentication': { 'emailAddress': 'test-user@example.org', 'password': 'valid-password' } } ), content_type='application/json') assert response_2.status_code == 403 def test_should_be_able_to_create_users(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/users', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'TEST-user@example.gov.uk', 'mobileNumber': '+449999999999', 'password': 'validpassword' } } ), content_type='application/json') assert response.status_code == 201 fetch_response = notify_api.test_client().get( '/users?email_address=test-user@example.gov.uk', headers={ 'Authorization': 'Bearer 1234' }) data = json.loads(fetch_response.get_data()) assert fetch_response.status_code == 200 assert not data['users']['active'] def test_should_reject_invalid_user_request(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/users', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'test-user@example.gov.uk', 'password': 'validpassword' } } ), content_type='application/json') data = json.loads(response.get_data()) assert response.status_code == 400 assert data['error'] == 'Invalid JSON' assert data['error_details'][0]['required'][0] == "'mobileNumber' is a required property" def test_should_reject_non_gov_emailst(notify_api, notify_db, notify_db_session): response = notify_api.test_client().post( '/users', headers={ 'Authorization': 'Bearer 1234' }, data=json.dumps( { 'user': { 'emailAddress': 'test-user@example.com', 'mobileNumber': '+449999999999', 'password': 'validpassword' } } ), content_type='application/json') data = json.loads(response.get_data()) assert response.status_code == 400 assert data['error'] == 'Invalid JSON'
31.245586
106
0.570739
2,051
19,466
5.173086
0.067284
0.049199
0.042884
0.062677
0.899152
0.878888
0.8705
0.855419
0.819698
0.810273
0
0.035578
0.30114
19,466
622
107
31.29582
0.74434
0
0
0.704301
0
0
0.216326
0.044745
0
0
0
0
0.154122
1
0.039427
false
0.041219
0.007168
0
0.046595
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
622cfad17f6fe7c30cbbb16d776ca989279cfc37
70,493
py
Python
View/gui_module.py
wilcer1/STMP
71cd1c5ec33017db32abbd4482ea524f9d3988d4
[ "MIT" ]
null
null
null
View/gui_module.py
wilcer1/STMP
71cd1c5ec33017db32abbd4482ea524f9d3988d4
[ "MIT" ]
null
null
null
View/gui_module.py
wilcer1/STMP
71cd1c5ec33017db32abbd4482ea524f9d3988d4
[ "MIT" ]
null
null
null
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import * from account import Account class Ui_LoginScreen(object): """Main Login Window.""" def setupUi(self, MainWindow): self.customer = Account.getInstance() MainWindow.setObjectName("MainWindow") MainWindow.resize(1917, 1010) MainWindow.setStyleSheet("background-color: rgb(3, 130, 168);") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(850, 360, 111, 31)) self.label.setMinimumSize(QtCore.QSize(71, 0)) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(850, 490, 111, 31)) self.label_2.setObjectName("label_2") self.lineEdit = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit.setGeometry(QtCore.QRect(850, 400, 171, 31)) self.lineEdit.setStyleSheet("background-color: rgb(255, 255, 255);") self.lineEdit.setObjectName("lineEdit") self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_2.setGeometry(QtCore.QRect(850, 530, 171, 31)) self.lineEdit_2.setStyleSheet("background-color: rgb(255, 255, 255);") self.lineEdit_2.setEchoMode(QtWidgets.QLineEdit.Password) self.lineEdit_2.setObjectName("lineEdit_2") self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(860, 690, 151, 41)) self.pushButton.setStyleSheet("font: 75 14pt \"MS Shell Dlg 2\";\n" "background-color: rgb(255, 255, 255);") self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(40, 880, 291, 91)) font = QtGui.QFont() font.setPointSize(16) self.pushButton_2.setFont(font) self.pushButton_2.setStyleSheet("background-color: rgb(255, 255, 255);") self.pushButton_2.setObjectName("pushButton_2") self.STMPlogo = QtWidgets.QLabel(self.centralwidget) self.STMPlogo.setGeometry(QtCore.QRect(0, 0, 450, 200)) self.STMPlogo.setText("") self.STMPlogo.setPixmap(QtGui.QPixmap("STMP-Logo.png")) self.STMPlogo.setScaledContents(True) self.STMPlogo.setObjectName("STMPlogo") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1917, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.popUp = QMessageBox() self.popUp.setWindowTitle("Error") self.popUp.setText("Username/Password incorrect. Please try again") self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "STMP")) self.label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:16pt;\">Username</span></p></body></html>")) self.label_2.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-size:16pt;\">Password</span></p></body></html>")) self.pushButton.setText(_translate("MainWindow", "Log in")) self.pushButton_2.setText(_translate("MainWindow", "Not Registered? Click here") ) class Ui_FirstLoginScreen(object): def setupUi(self, MainWindow): self.customer = Account.getInstance() MainWindow.setObjectName("MainWindow") MainWindow.resize(800, 572) MainWindow.setStyleSheet("background-color: rgb(3, 130, 168);") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(80, 20, 47, 21)) self.label.setStyleSheet("background-color: rgb(255, 255, 255);") self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(450, 20, 51, 21)) self.label_2.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.popUp = QMessageBox() self.popUp.setWindowTitle("Error") self.popUp.setText("Bad input, please only enter integers") self.listOfIncome = QtWidgets.QListWidget(self.centralwidget) self.listOfIncome.setGeometry(QtCore.QRect(80, 50, 121, 391)) self.listOfIncome.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.listOfIncome.setObjectName("listOfIncome") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfIncome.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncome.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncome.addItem(item) self.listOfExpenses = QtWidgets.QListWidget(self.centralwidget) self.listOfExpenses.setGeometry(QtCore.QRect(450, 50, 131, 391)) self.listOfExpenses.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.listOfExpenses.setObjectName("listOfExpenses") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) self.saveButton = QtWidgets.QPushButton(self.centralwidget) self.saveButton.setGeometry(QtCore.QRect(700, 480, 75, 23)) self.saveButton.setStyleSheet("background-color: rgb(255, 255, 255);") self.saveButton.setObjectName("saveButton") self.listOfIncomeSEK = QtWidgets.QListWidget(self.centralwidget) self.listOfIncomeSEK.setGeometry(QtCore.QRect(200, 50, 141, 391)) self.listOfIncomeSEK.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.listOfIncomeSEK.setObjectName("listOfIncomeSEK") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfIncomeSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags( QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled ) self.listOfIncomeSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncomeSEK.addItem(item) self.listOfExpensesSEK = QtWidgets.QListWidget(self.centralwidget) self.listOfExpensesSEK.setGeometry(QtCore.QRect(580, 50, 131, 391)) self.listOfExpensesSEK.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.listOfExpensesSEK.setObjectName("listOfExpensesSEK") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(20, 480, 75, 23)) self.pushButton.setStyleSheet("background-color: rgb(255, 255, 255);") self.pushButton.setObjectName("pushButton") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(160, 0, 211, 21)) self.label_3.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName("label_3") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "STMP")) self.label.setText(_translate("MainWindow", "Income")) self.label_2.setText(_translate("MainWindow", "Expenses")) __sortingEnabled = self.listOfIncome.isSortingEnabled() self.listOfIncome.setSortingEnabled(False) item = self.listOfIncome.item(0) item.setText(_translate("MainWindow", "Type:")) item = self.listOfIncome.item(1) item.setText(_translate("MainWindow", "Total Income")) self.listOfIncome.setSortingEnabled(__sortingEnabled) __sortingEnabled = self.listOfExpenses.isSortingEnabled() self.listOfExpenses.setSortingEnabled(False) item = self.listOfExpenses.item(0) item.setText(_translate("MainWindow", "Type:")) item = self.listOfExpenses.item(1) item.setText(_translate("MainWindow", "Fixed expenses:")) item = self.listOfExpenses.item(2) item.setText(_translate("MainWindow", "Subscriptions")) item = self.listOfExpenses.item(3) item.setText(_translate("MainWindow", "Insurance")) item = self.listOfExpenses.item(4) item.setText(_translate("MainWindow", "Rent")) item = self.listOfExpenses.item(5) item.setText(_translate("MainWindow", "Others")) item = self.listOfExpenses.item(10) item.setText(_translate("MainWindow", "Variable expenses:")) item = self.listOfExpenses.item(11) item.setText(_translate("MainWindow", "Transportation")) item = self.listOfExpenses.item(12) item.setText(_translate("MainWindow", "Entertainment")) item = self.listOfExpenses.item(13) item.setText(_translate("MainWindow", "Clothes")) item = self.listOfExpenses.item(14) item.setText(_translate("MainWindow", "Hygien")) item = self.listOfExpenses.item(15) item.setText(_translate("MainWindow", "Food")) item = self.listOfExpenses.item(16) item.setText(_translate("MainWindow", "Bills")) item = self.listOfExpenses.item(17) item.setText(_translate("MainWindow", "Others")) self.listOfExpenses.setSortingEnabled(__sortingEnabled) self.saveButton.setText(_translate("MainWindow", "Save")) __sortingEnabled = self.listOfIncomeSEK.isSortingEnabled() self.listOfIncomeSEK.setSortingEnabled(False) item = self.listOfIncomeSEK.item(0) item.setText(_translate("MainWindow", "Amount:")) item = self.listOfIncomeSEK.item(1) item.setText(_translate("MainWindow", "0")) self.listOfIncomeSEK.setSortingEnabled(__sortingEnabled) __sortingEnabled = self.listOfExpensesSEK.isSortingEnabled() self.listOfExpensesSEK.setSortingEnabled(False) item = self.listOfExpensesSEK.item(0) item.setText(_translate("MainWindow", "Amount:")) item = self.listOfExpensesSEK.item(2) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(3) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(4) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(5) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(11) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(12) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(13) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(14) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(15) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(16) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(17) item.setText(_translate("MainWindow", "0")) self.listOfExpensesSEK.setSortingEnabled(__sortingEnabled) self.pushButton.setText(_translate("MainWindow", "Back")) self.label_3.setText(_translate("MainWindow", "Set your income and expenses")) class Ui_MenuScreen(object): """Menu Window""" def setupUi(self, MainWindow): self.customer = Account.getInstance() MainWindow.setObjectName("MainWindow") MainWindow.resize(1917, 1010) MainWindow.setStyleSheet("background-color: rgb(3, 130, 168);") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(880, 430, 171, 41)) self.pushButton.setStyleSheet("background-color: rgb(255, 255, 255);\n" "font: 10pt \"MS Shell Dlg 2\";") self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(880, 500, 171, 41)) self.pushButton_2.setStyleSheet("background-color: rgb(255, 255, 255);\n" "font: 10pt \"MS Shell Dlg 2\";") self.pushButton_2.setObjectName("pushButton_2") self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_3.setGeometry(QtCore.QRect(880, 570, 171, 41)) self.pushButton_3.setStyleSheet("background-color: rgb(255, 255, 255);\n" "font: 10pt \"MS Shell Dlg 2\";") self.pushButton_3.setObjectName("pushButton_3") self.pushButton_4 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_4.setGeometry(QtCore.QRect(880, 640, 171, 41)) self.pushButton_4.setStyleSheet("background-color: rgb(255, 255, 255);\n" "font: 10pt \"MS Shell Dlg 2\";") self.pushButton_4.setObjectName("pushButton_4") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(0, 0, 450, 200)) self.label_2.setText("") self.label_2.setPixmap(QtGui.QPixmap("STMP-Logo.png")) self.label_2.setScaledContents(True) self.label_2.setObjectName("label_2") self.pushButton_5 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_5.setGeometry(QtCore.QRect(60, 900, 171, 61)) self.pushButton_5.setStyleSheet("background-color: rgb(255, 255, 255);\n" "font: 12pt \"MS Shell Dlg 2\";") self.pushButton_5.setObjectName("pushButton_5") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(880, 320, 291, 41)) self.label.setStyleSheet("font: 14pt \"MS Shell Dlg 2\";") self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) self.label.setObjectName("label") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1917, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "STMP")) self.pushButton.setText(_translate("MainWindow", "Make a budget")) self.pushButton_2.setText(_translate("MainWindow", "Create long-term savings")) self.pushButton_3.setText(_translate("MainWindow", "Set your buffert")) self.pushButton_4.setText(_translate("MainWindow", "Economic overview")) self.pushButton_5.setText(_translate("MainWindow", "Log out")) self.label.setText(_translate("MainWindow", f"Welcome, {self.customer.first_name}")) class Ui_RegisterScreen(object): """Register window.""" def setupUi(self, MainWindow): self.customer = Account.getInstance() MainWindow.setObjectName("MainWindow") MainWindow.resize(1917, 1010) MainWindow.setStyleSheet("background-color: rgb(3, 130, 168);") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(920, 340, 91, 51)) self.label.setStyleSheet("font: 75 18pt \"MS Shell Dlg 2\";\n" "text-decoration: underline;\n" "") self.label.setObjectName("label") self.username = QtWidgets.QLineEdit(self.centralwidget) self.username.setGeometry(QtCore.QRect(910, 430, 111, 21)) self.username.setStyleSheet("background-color: rgb(255, 255, 255);") self.username.setObjectName("lineEdit") self.password = QtWidgets.QLineEdit(self.centralwidget) self.password.setEchoMode(QtWidgets.QLineEdit.Password) self.password.setGeometry(QtCore.QRect(910, 490, 111, 21)) self.password.setStyleSheet("background-color: rgb(255, 255, 255);") self.password.setObjectName("lineEdit_2") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(910, 410, 111, 16)) self.label_2.setStyleSheet("font: 12pt \"MS Shell Dlg 2\";") self.label_2.setObjectName("label_2") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(910, 470, 91, 16)) self.label_3.setStyleSheet("font: 12pt \"MS Shell Dlg 2\";") self.label_3.setObjectName("label_3") self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(920, 690, 81, 41)) self.pushButton.setStyleSheet("background-color: rgb(255, 255, 255);\n" "font: 75 12pt \"MS Shell Dlg 2\";\n" "") self.pushButton.setObjectName("pushButton") self.lastname = QtWidgets.QLineEdit(self.centralwidget) self.lastname.setGeometry(QtCore.QRect(910, 610, 111, 21)) self.lastname.setStyleSheet("background-color: rgb(255, 255, 255);") self.lastname.setObjectName("lineEdit_3") self.firstname = QtWidgets.QLineEdit(self.centralwidget) self.firstname.setGeometry(QtCore.QRect(910, 550, 111, 21)) self.firstname.setStyleSheet("background-color: rgb(255, 255, 255);") self.firstname.setObjectName("lineEdit_4") self.label_5 = QtWidgets.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(910, 530, 111, 16)) self.label_5.setStyleSheet("font: 12pt \"MS Shell Dlg 2\";") self.label_5.setObjectName("label_5") self.label_6 = QtWidgets.QLabel(self.centralwidget) self.label_6.setGeometry(QtCore.QRect(910, 590, 91, 16)) self.label_6.setStyleSheet("font: 12pt \"MS Shell Dlg 2\";") self.label_6.setObjectName("label_6") self.STMPlogo = QtWidgets.QLabel(self.centralwidget) self.STMPlogo.setGeometry(QtCore.QRect(0, 0, 450, 200)) self.STMPlogo.setText("") self.STMPlogo.setPixmap(QtGui.QPixmap("STMP-Logo.png")) self.STMPlogo.setScaledContents(True) self.STMPlogo.setObjectName("STMPlogo") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(30, 920, 121, 61)) self.pushButton_2.setStyleSheet("font: 12pt \"MS Shell Dlg 2\";\n" "background-color: rgb(255, 255, 255);") self.pushButton_2.setObjectName("pushButton_2") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1917, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.popUp = QMessageBox() self.popUp.setWindowTitle("") self.popUp.setText("Incorrect email, please try again") self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "STMP")) self.label.setText(_translate("MainWindow", "Register")) self.label_2.setText(_translate("MainWindow", "Email")) self.label_3.setText(_translate("MainWindow", "Password")) self.pushButton.setText(_translate("MainWindow", "Register")) self.label_5.setText(_translate("MainWindow", "First name")) self.label_6.setText(_translate("MainWindow", "Last name")) self.pushButton_2.setText(_translate("MainWindow", "Back")) class Ui_BudgetScreen(object): def setupUi(self, MainWindow): self.customer = Account.getInstance() MainWindow.setObjectName("MainWindow") MainWindow.resize(800, 572) MainWindow.setStyleSheet("background-color: rgb(3, 130, 168);") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(80, 20, 47, 21)) self.label.setStyleSheet("background-color: rgb(255, 255, 255);") self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(450, 20, 51, 21)) self.label_2.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.listOfIncome = QtWidgets.QListWidget(self.centralwidget) self.listOfIncome.setGeometry(QtCore.QRect(80, 50, 121, 391)) self.listOfIncome.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.listOfIncome.setObjectName("listOfIncome") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfIncome.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncome.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncome.addItem(item) self.listOfExpenses = QtWidgets.QListWidget(self.centralwidget) self.listOfExpenses.setGeometry(QtCore.QRect(450, 50, 131, 391)) self.listOfExpenses.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.listOfExpenses.setObjectName("listOfExpenses") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfExpenses.addItem(item) self.moneyleftLabel = QtWidgets.QLabel(self.centralwidget) self.moneyleftLabel.setGeometry(QtCore.QRect(260, 450, 131, 41)) self.moneyleftLabel.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.moneyleftLabel.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.moneyleftLabel.setObjectName("moneyleftLabel") self.saving_goal = QtWidgets.QLabel(self.centralwidget) self.saving_goal.setGeometry(QtCore.QRect(410, 450, 131, 41)) self.saving_goal.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.saving_goal.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.saving_goal.setObjectName("saving_goal") self.saveButton = QtWidgets.QPushButton(self.centralwidget) self.saveButton.setGeometry(QtCore.QRect(700, 480, 75, 23)) self.saveButton.setStyleSheet("background-color: rgb(255, 255, 255);") self.saveButton.setObjectName("saveButton") self.listOfIncomeSEK = QtWidgets.QListWidget(self.centralwidget) self.listOfIncomeSEK.setGeometry(QtCore.QRect(200, 50, 141, 391)) self.listOfIncomeSEK.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.listOfIncomeSEK.setObjectName("listOfIncomeSEK") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfIncomeSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfIncomeSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncomeSEK.addItem(item) self.listOfExpensesSEK = QtWidgets.QListWidget(self.centralwidget) self.listOfExpensesSEK.setGeometry(QtCore.QRect(580, 50, 131, 391)) self.listOfExpensesSEK.setStyleSheet("background-color: \ rgb(255, 255, 255);") self.listOfExpensesSEK.setObjectName("listOfExpensesSEK") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() item.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsDragEnabled | QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) self.listOfExpensesSEK.addItem(item) self.backButton = QtWidgets.QPushButton(self.centralwidget) self.backButton.setGeometry(QtCore.QRect(20, 480, 75, 23)) self.backButton.setStyleSheet("background-color: rgb(255, 255, 255);") self.backButton.setObjectName("backButton") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(300, 470, 47, 13)) self.label_3.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(450, 470, 47, 13)) self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_4.setObjectName("label_4") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.popUp = QMessageBox() self.popUp.setWindowTitle("Error") self.popUp.setText("Bad input, please enter only positive integers") self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "STMP")) self.label.setText(_translate("MainWindow", "Income")) self.label_2.setText(_translate("MainWindow", "Expenses")) self.saving_goal.setText(_translate("MainWindow", "Your saving goal:")) __sortingEnabled = self.listOfIncome.isSortingEnabled() self.listOfIncome.setSortingEnabled(False) item = self.listOfIncome.item(0) item.setText(_translate("MainWindow", "Type:")) item = self.listOfIncome.item(1) item.setText(_translate("MainWindow", "Total Income")) self.listOfIncome.setSortingEnabled(__sortingEnabled) __sortingEnabled = self.listOfExpenses.isSortingEnabled() self.listOfExpenses.setSortingEnabled(False) item = self.listOfExpenses.item(0) item.setText(_translate("MainWindow", "Type:")) item = self.listOfExpenses.item(1) item.setText(_translate("MainWindow", "Fixed expenses:")) item = self.listOfExpenses.item(2) item.setText(_translate("MainWindow", "Subscriptions")) item = self.listOfExpenses.item(3) item.setText(_translate("MainWindow", "Insurance")) item = self.listOfExpenses.item(4) item.setText(_translate("MainWindow", "Rent")) item = self.listOfExpenses.item(5) item.setText(_translate("MainWindow", "Others")) item = self.listOfExpenses.item(10) item.setText(_translate("MainWindow", "Variable expenses:")) item = self.listOfExpenses.item(11) item.setText(_translate("MainWindow", "Food")) item = self.listOfExpenses.item(12) item.setText(_translate("MainWindow", "Bills")) item = self.listOfExpenses.item(13) item.setText(_translate("MainWindow", "Transportation")) item = self.listOfExpenses.item(14) item.setText(_translate("MainWindow", "Hygien")) item = self.listOfExpenses.item(15) item.setText(_translate("MainWindow", "Clothes")) item = self.listOfExpenses.item(16) item.setText(_translate("MainWindow", "Entertainment")) item = self.listOfExpenses.item(17) item.setText(_translate("MainWindow", "Others")) item = self.listOfExpenses.item(20) item.setText(_translate("MainWindow", "Buffert")) self.listOfExpenses.setSortingEnabled(__sortingEnabled) self.moneyleftLabel.setText(_translate("MainWindow", "Money left to spend:")) self.saveButton.setText(_translate("MainWindow", "Save")) __sortingEnabled = self.listOfIncomeSEK.isSortingEnabled() self.listOfIncomeSEK.setSortingEnabled(False) item = self.listOfIncomeSEK.item(0) item.setText(_translate("MainWindow", "Amount:")) item = self.listOfIncomeSEK.item(1) item.setText(_translate("MainWindow", "0")) self.listOfIncomeSEK.setSortingEnabled(__sortingEnabled) __sortingEnabled = self.listOfExpensesSEK.isSortingEnabled() self.listOfExpensesSEK.setSortingEnabled(False) item = self.listOfExpensesSEK.item(0) item.setText(_translate("MainWindow", "Amount:")) item = self.listOfExpensesSEK.item(1) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(2) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(3) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(4) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(5) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(10) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(11) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(12) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(13) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(14) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(15) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(16) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(17) item.setText(_translate("MainWindow", "0")) item = self.listOfExpensesSEK.item(20) item.setText(_translate("MainWindow", "0")) self.listOfExpensesSEK.setSortingEnabled(__sortingEnabled) self.backButton.setText(_translate("MainWindow", "Back")) self.label_3.setText(_translate("MainWindow", "put money left here")) class Ui_SavinggoalScreen(object): def setupUi(self, MainWindow): self.customer = Account.getInstance() MainWindow.setObjectName("MainWindow") MainWindow.resize(606, 403) MainWindow.setStyleSheet("background-color: rgb(3, 130, 168);") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(50, 20, 71, 21)) self.label.setStyleSheet("background-color: rgb(255, 255, 255);") self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setWordWrap(True) self.label.setObjectName("label") self.lineEdit = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit.setGeometry(QtCore.QRect(50, 80, 161, 20)) self.lineEdit.setToolTip("") self.lineEdit.setAccessibleDescription("") self.lineEdit.setStyleSheet("background-color: rgb(255, 255, 255);") self.lineEdit.setInputMask("") self.lineEdit.setObjectName("lineEdit") self.lineEdit_2 = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit_2.setGeometry(QtCore.QRect(50, 120, 161, 20)) self.lineEdit_2.setStyleSheet("background-color: rgb(255, 255, 255);") self.lineEdit_2.setObjectName("lineEdit_3") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(430, 40, 151, 71)) self.label_3.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_3.setTextFormat(QtCore.Qt.RichText) self.label_3.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.label_3.setObjectName("label_3") self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(50, 330, 121, 31)) self.pushButton.setStyleSheet("background-color: rgb(255, 255, 255);") self.pushButton.setObjectName("pushButton") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) self.pushButton_2.setGeometry(QtCore.QRect(280, 170, 75, 31)) self.pushButton_2.setMinimumSize(QtCore.QSize(75, 0)) self.pushButton_2.setStyleSheet("background-color: rgb(255, 255, 255);") self.pushButton_2.setObjectName("pushButton_2") self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget) self.textBrowser.setGeometry(QtCore.QRect(50, 160, 161, 51)) self.textBrowser.setStyleSheet("background-color: rgb(255, 255, 255);") self.textBrowser.setObjectName("textBrowser") self.popUp = QMessageBox() self.popUp.setWindowTitle("Error") self.popUp.setText("Bad input, please only enter positive integers") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 606, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "STMP")) self.label.setText(_translate("MainWindow", "Saving goal")) self.lineEdit.setPlaceholderText(_translate("MainWindow", "Amount to save a month")) self.lineEdit_2.setPlaceholderText(_translate("MainWindow", "Your saving goal")) self.label_3.setText(_translate("MainWindow", "<html><head/><body><p>Play around and \ see how long </p><p>it would take \ to reach your</p><p>saving goal \ or buffert</p></body></html>")) self.pushButton.setText(_translate("MainWindow", "Back")) self.pushButton_2.setText(_translate("MainWindow", "Calculate")) class Ui_BuffertScreen(object): def setupUi(self, MainWindow): self.customer = Account.getInstance() MainWindow.setObjectName("MainWindow") MainWindow.resize(460, 337) MainWindow.setStyleSheet("background-color: rgb(3, 130, 168);") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(100, 0, 251, 21)) self.label.setStyleSheet("background-color: rgb(255, 255, 255);") self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.popUp = QMessageBox() self.popUp.setWindowTitle("Error") self.popUp.setText("Bad input, please only enter positive integers") self.totalincome = QtWidgets.QTextBrowser(self.centralwidget) self.totalincome.setGeometry(QtCore.QRect(100, 80, 256, 51)) self.totalincome.setStyleSheet("background-color: rgb(255, 255, 255);") self.totalincome.setObjectName("totalincome") self.totalexpenses = QtWidgets.QTextBrowser(self.centralwidget) self.totalexpenses.setGeometry(QtCore.QRect(100, 160, 256, 51)) self.totalexpenses.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.totalexpenses.setObjectName("totalexpenses") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(100, 60, 47, 13)) self.label_2.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(100, 140, 51, 16)) self.label_3.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(100, 220, 47, 13)) self.label_4.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setObjectName("label_4") self.label_5 = QtWidgets.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(260, 220, 71, 13)) self.label_5.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setObjectName("label_5") self.amount_of_budget = QtWidgets.QProgressBar(self.centralwidget) self.amount_of_budget.setGeometry(QtCore.QRect(260, 240, 91, 23)) self.amount_of_budget.setProperty("value", 0) self.amount_of_budget.setObjectName("amount_of_budget") self.save_button = QtWidgets.QPushButton(self.centralwidget) self.save_button.setGeometry(QtCore.QRect(380, 270, 75, 23)) self.save_button.setStyleSheet("background-color: rgb(255, 255, 255);") self.save_button.setObjectName("save_button") self.back_button = QtWidgets.QPushButton(self.centralwidget) self.back_button.setGeometry(QtCore.QRect(10, 270, 75, 21)) self.back_button.setStyleSheet("background-color: rgb(255, 255, 255);") self.back_button.setObjectName("back_button") self.buffert_input = QtWidgets.QLineEdit(self.centralwidget) self.buffert_input.setGeometry(QtCore.QRect(100, 240, 131, 21)) self.buffert_input.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.buffert_input.setObjectName("buffert_input") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 460, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "STMP")) self.label.setText(_translate("MainWindow", "Set your buffert")) self.label_2.setText(_translate("MainWindow", "Income")) self.label_3.setText(_translate("MainWindow", "Expenses")) self.save_button.setText(_translate("MainWindow", "Save")) self.back_button.setText(_translate("MainWindow", "Back")) self.label_4.setText(_translate("MainWindow", "Buffert:")) self.label_5.setText(_translate("MainWindow", "'%' of budget")) class Ui_EcoOverviewScreen(object): def setupUi(self, MainWindow): self.customer = Account.getInstance() MainWindow.setObjectName("MainWindow") MainWindow.resize(800, 572) MainWindow.setStyleSheet("background-color: rgb(3, 130, 168);") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.label = QtWidgets.QLabel(self.centralwidget) self.label.setGeometry(QtCore.QRect(70, 50, 47, 21)) self.label.setStyleSheet("background-color: rgb(255, 255, 255);") self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setGeometry(QtCore.QRect(490, 50, 51, 21)) self.label_2.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.listOfIncome = QtWidgets.QListWidget(self.centralwidget) self.listOfIncome.setGeometry(QtCore.QRect(70, 80, 121, 151)) self.listOfIncome.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.listOfIncome.setObjectName("listOfIncome") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfIncome.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncome.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncome.addItem(item) self.listOfExpenses = QtWidgets.QListWidget(self.centralwidget) self.listOfExpenses.setGeometry(QtCore.QRect(490, 80, 131, 361)) self.listOfExpenses.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.listOfExpenses.setObjectName("listOfExpenses") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpenses.addItem(item) self.moneyleftLabel = QtWidgets.QLabel(self.centralwidget) self.moneyleftLabel.setGeometry(QtCore.QRect(330, 470, 141, 41)) self.moneyleftLabel.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.moneyleftLabel.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.moneyleftLabel.setObjectName("moneyleftLabel") self.listOfIncomeSEK = QtWidgets.QListWidget(self.centralwidget) self.listOfIncomeSEK.setGeometry(QtCore.QRect(190, 80, 141, 151)) self.listOfIncomeSEK.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.listOfIncomeSEK.setObjectName("listOfIncomeSEK") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfIncomeSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncomeSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfIncomeSEK.addItem(item) self.listOfExpensesSEK = QtWidgets.QListWidget(self.centralwidget) self.listOfExpensesSEK.setGeometry(QtCore.QRect(620, 80, 131, 361)) self.listOfExpensesSEK.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.listOfExpensesSEK.setObjectName("listOfExpensesSEK") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.listOfExpensesSEK.addItem(item) self.pushButton = QtWidgets.QPushButton(self.centralwidget) self.pushButton.setGeometry(QtCore.QRect(20, 480, 75, 23)) self.pushButton.setStyleSheet("background-color: rgb(255, 255, 255);") self.pushButton.setObjectName("pushButton") self.label_3 = QtWidgets.QLabel(self.centralwidget) self.label_3.setGeometry(QtCore.QRect(370, 490, 47, 13)) self.label_3.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_3.setAlignment(QtCore.Qt.AlignCenter) self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(self.centralwidget) self.label_4.setGeometry(QtCore.QRect(70, 260, 47, 21)) self.label_4.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_4.setAlignment(QtCore.Qt.AlignCenter) self.label_4.setObjectName("label_4") self.savingsList = QtWidgets.QListWidget(self.centralwidget) self.savingsList.setGeometry(QtCore.QRect(70, 290, 121, 151)) self.savingsList.setStyleSheet("background-color: rgb(255, 255, 255);") self.savingsList.setObjectName("savingsList") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.savingsList.addItem(item) item = QtWidgets.QListWidgetItem() self.savingsList.addItem(item) item = QtWidgets.QListWidgetItem() self.savingsList.addItem(item) self.savingsListSEK = QtWidgets.QListWidget(self.centralwidget) self.savingsListSEK.setGeometry(QtCore.QRect(190, 290, 141, 151)) self.savingsListSEK.setStyleSheet("background-color:\ rgb(255, 255, 255);") self.savingsListSEK.setObjectName("savingsListSEK") item = QtWidgets.QListWidgetItem() font = QtGui.QFont() font.setBold(True) font.setWeight(75) item.setFont(font) self.savingsListSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.savingsListSEK.addItem(item) item = QtWidgets.QListWidgetItem() self.savingsListSEK.addItem(item) self.label_5 = QtWidgets.QLabel(self.centralwidget) self.label_5.setGeometry(QtCore.QRect(290, 0, 241, 21)) self.label_5.setStyleSheet("background-color: rgb(255, 255, 255);") self.label_5.setAlignment(QtCore.Qt.AlignCenter) self.label_5.setObjectName("label_5") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "STMP")) self.label.setText(_translate("MainWindow", "Income")) self.label_2.setText(_translate("MainWindow", "Expenses")) __sortingEnabled = self.listOfIncome.isSortingEnabled() self.listOfIncome.setSortingEnabled(False) item = self.listOfIncome.item(0) item.setText(_translate("MainWindow", "Type:")) item = self.listOfIncome.item(1) item.setText(_translate("MainWindow", "Total Income")) self.listOfIncome.setSortingEnabled(__sortingEnabled) __sortingEnabled = self.listOfExpenses.isSortingEnabled() self.listOfExpenses.setSortingEnabled(False) item = self.listOfExpenses.item(0) item.setText(_translate("MainWindow", "Type:")) item = self.listOfExpenses.item(1) item.setText(_translate("MainWindow", "Fixed expenses:")) item = self.listOfExpenses.item(2) item.setText(_translate("MainWindow", "Subscriptions")) item = self.listOfExpenses.item(3) item.setText(_translate("MainWindow", "Insurance")) item = self.listOfExpenses.item(4) item.setText(_translate("MainWindow", "Rent")) item = self.listOfExpenses.item(5) item.setText(_translate("MainWindow", "Others")) item = self.listOfExpenses.item(10) item.setText(_translate("MainWindow", "Variable expenses:")) item = self.listOfExpenses.item(11) item.setText(_translate("MainWindow", "Transportation")) item = self.listOfExpenses.item(12) item.setText(_translate("MainWindow", "Entertainment")) item = self.listOfExpenses.item(13) item.setText(_translate("MainWindow", "Clothes")) item = self.listOfExpenses.item(14) item.setText(_translate("MainWindow", "Hygien")) item = self.listOfExpenses.item(15) item.setText(_translate("MainWindow", "Food")) item = self.listOfExpenses.item(16) item.setText(_translate("MainWindow", "Bills")) item = self.listOfExpenses.item(17) item.setText(_translate("MainWindow", "Others")) self.listOfExpenses.setSortingEnabled(__sortingEnabled) self.moneyleftLabel.setText(_translate("MainWindow", "Money left to spend/save:")) __sortingEnabled = self.listOfIncomeSEK.isSortingEnabled() self.listOfIncomeSEK.setSortingEnabled(False) item = self.listOfIncomeSEK.item(0) item.setText(_translate("MainWindow", "Amount:")) item = self.listOfIncomeSEK.item(1) item.setText(_translate("MainWindow", "0")) self.listOfIncomeSEK.setSortingEnabled(__sortingEnabled) __sortingEnabled = self.listOfExpensesSEK.isSortingEnabled() self.listOfExpensesSEK.setSortingEnabled(False) item = self.listOfExpensesSEK.item(0) item.setText(_translate("MainWindow", "Amount:")) item = self.listOfExpensesSEK.item(1) item.setText(_translate("MainWindow", "totalFixed")) item = self.listOfExpensesSEK.item(2) item.setText(_translate("MainWindow", "Subscriptions")) item = self.listOfExpensesSEK.item(3) item.setText(_translate("MainWindow", "insurance")) item = self.listOfExpensesSEK.item(4) item.setText(_translate("MainWindow", "rent")) item = self.listOfExpensesSEK.item(5) item.setText(_translate("MainWindow", "other")) item = self.listOfExpensesSEK.item(10) item.setText(_translate("MainWindow", "totalvariable")) item = self.listOfExpensesSEK.item(11) item.setText(_translate("MainWindow", "transport")) item = self.listOfExpensesSEK.item(12) item.setText(_translate("MainWindow", "entertainment")) item = self.listOfExpensesSEK.item(13) item.setText(_translate("MainWindow", "clothes")) item = self.listOfExpensesSEK.item(14) item.setText(_translate("MainWindow", "hygien")) item = self.listOfExpensesSEK.item(15) item.setText(_translate("MainWindow", "food")) item = self.listOfExpensesSEK.item(16) item.setText(_translate("MainWindow", "bills")) item = self.listOfExpensesSEK.item(17) item.setText(_translate("MainWindow", "others")) self.listOfExpensesSEK.setSortingEnabled(__sortingEnabled) self.pushButton.setText(_translate("MainWindow", "Back")) self.label_3.setText(_translate("MainWindow", "0")) self.label_4.setText(_translate("MainWindow", "Savings")) __sortingEnabled = self.savingsList.isSortingEnabled() self.savingsList.setSortingEnabled(False) item = self.savingsList.item(0) item.setText(_translate("MainWindow", "Type:")) item = self.savingsList.item(1) item.setText(_translate("MainWindow", "Saving goal")) item = self.savingsList.item(2) item.setText(_translate("MainWindow", "Buffert")) self.savingsList.setSortingEnabled(__sortingEnabled) __sortingEnabled = self.savingsListSEK.isSortingEnabled() self.savingsListSEK.setSortingEnabled(False) item = self.savingsListSEK.item(0) item.setText(_translate("MainWindow", "Amount:")) item = self.savingsListSEK.item(1) item.setText(_translate("MainWindow", "0")) item = self.savingsListSEK.item(2) item.setText(_translate("MainWindow", "0")) self.savingsListSEK.setSortingEnabled(__sortingEnabled) self.label_5.setText(_translate("MainWindow", "Current budget:"))
51.267636
146
0.65571
6,716
70,493
6.814324
0.048987
0.069332
0.08465
0.065028
0.909079
0.887709
0.864219
0.857249
0.840708
0.80555
0
0.03707
0.228519
70,493
1,374
147
51.304949
0.804446
0.000667
0
0.818998
0
0
0.093824
0.002101
0
0
0
0
0
1
0.011967
false
0.006731
0.002244
0
0.020194
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
6253beff31f18027ad6198b0c497c83b483231fa
43
py
Python
design/singleton/__init__.py
letitgone/python-in-action
5cd2912afdf439f575f97c5bba9bcd001bd9a6e5
[ "MIT" ]
1
2020-12-26T14:32:49.000Z
2020-12-26T14:32:49.000Z
design/singleton/__init__.py
letitgone/python-in-action
5cd2912afdf439f575f97c5bba9bcd001bd9a6e5
[ "MIT" ]
null
null
null
design/singleton/__init__.py
letitgone/python-in-action
5cd2912afdf439f575f97c5bba9bcd001bd9a6e5
[ "MIT" ]
null
null
null
# @Author ZhangGJ # @Date 2021/08/03 10:03
14.333333
24
0.674419
8
43
3.625
0.875
0
0
0
0
0
0
0
0
0
0
0.333333
0.162791
43
2
25
21.5
0.472222
0.883721
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
626380aee2309abb8e6f3487162f0e3135960fe0
135
py
Python
ceefax/functions/__init__.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
1
2020-03-28T15:53:22.000Z
2020-03-28T15:53:22.000Z
ceefax/functions/__init__.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
1
2021-02-05T13:43:52.000Z
2021-02-05T13:43:52.000Z
ceefax/functions/__init__.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
null
null
null
from .replacer import replace from .strip_tags import strip_tags def strip_tags_and_replace(txt): return replace(strip_tags(txt))
22.5
35
0.807407
21
135
4.904762
0.47619
0.349515
0
0
0
0
0
0
0
0
0
0
0.125926
135
5
36
27
0.872881
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.5
0.25
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7
627bd0aa250e785ea03ec888a6dc30a75a052e47
7,981
py
Python
tests/unit/test_conditions.py
Tehnode/wagtail-tag-manager
048a03fe61b57ddd1eea0377ab26cf96527f5457
[ "BSD-3-Clause" ]
59
2018-06-13T07:30:42.000Z
2022-03-22T02:14:34.000Z
tests/unit/test_conditions.py
Tehnode/wagtail-tag-manager
048a03fe61b57ddd1eea0377ab26cf96527f5457
[ "BSD-3-Clause" ]
74
2018-08-09T20:52:56.000Z
2022-03-02T08:39:30.000Z
tests/unit/test_conditions.py
Tehnode/wagtail-tag-manager
048a03fe61b57ddd1eea0377ab26cf96527f5457
[ "BSD-3-Clause" ]
23
2018-10-10T05:29:38.000Z
2022-01-19T15:09:51.000Z
import pytest from tests.factories.trigger import TriggerFactory from wagtail_tag_manager.models import TriggerCondition @pytest.mark.django_db def test_trigger_condition_empty(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( variable="trigger_value", value="test", trigger=trigger ) assert trigger_condition.validate({}) is False @pytest.mark.django_db def test_trigger_condition_exact_match(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_EXACT_MATCH, variable="trigger_value", value="test", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "tes"}) is False assert trigger_condition.validate({"trigger_value": "test"}) is True @pytest.mark.django_db def test_trigger_condition_not_exact_match(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_NOT_EXACT_MATCH, variable="trigger_value", value="test", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "test"}) is False assert trigger_condition.validate({"trigger_value": "tes"}) is True @pytest.mark.django_db def test_trigger_condition_contains(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_CONTAINS, variable="trigger_value", value="test", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "tesing"}) is False assert trigger_condition.validate({"trigger_value": "testing"}) is True @pytest.mark.django_db def test_trigger_condition_not_contains(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_NOT_CONTAINS, variable="trigger_value", value="test", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "testing"}) is False assert trigger_condition.validate({"trigger_value": "tesing"}) is True @pytest.mark.django_db def test_trigger_condition_starts_with(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_STARTS_WITH, variable="trigger_value", value="test", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "esting"}) is False assert trigger_condition.validate({"trigger_value": "testing"}) is True @pytest.mark.django_db def test_trigger_condition_not_starts_with(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_NOT_STARTS_WITH, variable="trigger_value", value="test", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "testing"}) is False assert trigger_condition.validate({"trigger_value": "esting"}) is True @pytest.mark.django_db def test_trigger_condition_ends_with(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_ENDS_WITH, variable="trigger_value", value="test", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "testing"}) is False assert trigger_condition.validate({"trigger_value": "test"}) is True @pytest.mark.django_db def test_trigger_condition_not_ends_with(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_NOT_ENDS_WITH, variable="trigger_value", value="test", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "test"}) is False assert trigger_condition.validate({"trigger_value": "testing"}) is True @pytest.mark.django_db def test_trigger_condition_regex_match(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_REGEX_MATCH, variable="trigger_value", value=r"^[a-z]+$", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "test1"}) is False assert trigger_condition.validate({"trigger_value": "test"}) is True @pytest.mark.django_db def test_trigger_condition_not_regex_match(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_NOT_REGEX_MATCH, variable="trigger_value", value=r"^[a-z]+$", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "test"}) is False assert trigger_condition.validate({"trigger_value": "test1"}) is True @pytest.mark.django_db def test_trigger_condition_regex_imatch(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_REGEX_IMATCH, variable="trigger_value", value=r"^[a-z]+$", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "TEST1"}) is False assert trigger_condition.validate({"trigger_value": "TEST"}) is True @pytest.mark.django_db def test_trigger_condition_not_regex_imatch(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_NOT_REGEX_IMATCH, variable="trigger_value", value=r"^[a-z]+$", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "TEST"}) is False assert trigger_condition.validate({"trigger_value": "TEST1"}) is True @pytest.mark.django_db def test_trigger_condition_lower_than(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_LT, variable="trigger_value", value="1", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "1.1"}) is False assert trigger_condition.validate({"trigger_value": "1"}) is False assert trigger_condition.validate({"trigger_value": "0.9"}) is True @pytest.mark.django_db def test_trigger_condition_lower_than_equal(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_LTE, variable="trigger_value", value="1", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "1.1"}) is False assert trigger_condition.validate({"trigger_value": "1"}) is True assert trigger_condition.validate({"trigger_value": "0.9"}) is True @pytest.mark.django_db def test_trigger_condition_greater_than(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_GT, variable="trigger_value", value="1", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "1.1"}) is True assert trigger_condition.validate({"trigger_value": "1"}) is False assert trigger_condition.validate({"trigger_value": "0.9"}) is False @pytest.mark.django_db def test_trigger_condition_greater_than_equal(): trigger = TriggerFactory() trigger_condition = TriggerCondition.objects.create( condition_type=TriggerCondition.CONDITION_GTE, variable="trigger_value", value="1", trigger=trigger, ) assert trigger_condition.validate({"trigger_value": "1.1"}) is True assert trigger_condition.validate({"trigger_value": "1"}) is True assert trigger_condition.validate({"trigger_value": "0.9"}) is False
30.346008
76
0.720586
870
7,981
6.326437
0.065517
0.206395
0.147892
0.201672
0.978016
0.978016
0.978016
0.966025
0.953125
0.953125
0
0.004239
0.172284
7,981
262
77
30.461832
0.828943
0
0
0.647368
0
0
0.114397
0
0
0
0
0
0.194737
1
0.089474
false
0
0.015789
0
0.105263
0
0
0
0
null
1
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
65816ae87eee56a5459775d0a4763aaaedc510fd
7,549
py
Python
soda/core/tests/data_source/test_schema_changes.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
4
2022-03-23T02:43:42.000Z
2022-03-31T15:20:54.000Z
soda/core/tests/data_source/test_schema_changes.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
543
2022-03-22T09:02:17.000Z
2022-03-31T16:29:41.000Z
soda/core/tests/data_source/test_schema_changes.py
sodadata/soda-core
d9b98d4f6f3364c5eb8210e8288c4c861bcf8f8a
[ "Apache-2.0" ]
1
2022-03-27T03:37:55.000Z
2022-03-27T03:37:55.000Z
from soda.execution.check_outcome import CheckOutcome from soda.execution.data_type import DataType from tests.helpers.common_test_tables import customers_test_table from tests.helpers.data_source_fixture import DataSourceFixture from tests.helpers.utils import derive_schema_metric_value_from_test_table def test_schema_changes_pass(data_source_fixture: DataSourceFixture): table_name = data_source_fixture.ensure_test_table(customers_test_table) data_source = data_source_fixture.data_source schema_metric_value_derived_from_test_table = derive_schema_metric_value_from_test_table( customers_test_table, data_source ) scan = data_source_fixture.create_test_scan() scan.mock_historic_values( metric_identity=f"metric-{scan._scan_definition_name}-{scan._data_source_name}-{table_name}-schema", metric_values=[schema_metric_value_derived_from_test_table], ) scan.add_sodacl_yaml_str( f""" checks for {table_name}: - schema: fail: when schema changes: any """ ) scan.execute() scan.assert_all_checks_pass() def test_schema_changes_column_addition(data_source_fixture: DataSourceFixture): table_name = data_source_fixture.ensure_test_table(customers_test_table) data_source = data_source_fixture.data_source # start from the historic measurement value schema_metric_value_derived_from_test_table = derive_schema_metric_value_from_test_table( customers_test_table, data_source ) # remove the 4th column from the historic metric value # this will result in schema check discovering a column being added schema_metric_value_derived_from_test_table.pop(3) scan = data_source_fixture.create_test_scan() scan.mock_historic_values( metric_identity=f"metric-{scan._scan_definition_name}-{data_source_fixture.data_source.data_source_name}-{table_name}-schema", metric_values=[schema_metric_value_derived_from_test_table], ) scan.add_sodacl_yaml_str( f""" checks for {table_name}: - schema: fail: when schema changes: - column add - schema: fail: when schema changes: - column delete - schema: fail: when schema changes: - column type change - schema: fail: when schema changes: - column index change - schema: fail: when schema changes: any - schema: warn: when schema changes: - column add - schema: warn: when schema changes: - column delete - schema: warn: when schema changes: - column type change - schema: warn: when schema changes: - column index change - schema: warn: when schema changes: any """ ) scan.execute() assert scan._checks[0].outcome == CheckOutcome.FAIL assert scan._checks[1].outcome == CheckOutcome.PASS assert scan._checks[2].outcome == CheckOutcome.PASS assert scan._checks[3].outcome == CheckOutcome.FAIL assert scan._checks[4].outcome == CheckOutcome.FAIL assert scan._checks[5].outcome == CheckOutcome.WARN assert scan._checks[6].outcome == CheckOutcome.PASS assert scan._checks[7].outcome == CheckOutcome.PASS assert scan._checks[8].outcome == CheckOutcome.WARN assert scan._checks[9].outcome == CheckOutcome.WARN def test_schema_changes_column_deletion(data_source_fixture: DataSourceFixture): table_name = data_source_fixture.ensure_test_table(customers_test_table) data_source = data_source_fixture.data_source schema_metric_value_derived_from_test_table = derive_schema_metric_value_from_test_table( customers_test_table, data_source ) # remove the 3rd column from the historic metric value schema_metric_value_derived_from_test_table.insert( 3, { "columnName": "extra", "sourceDataType": data_source.get_sql_type_for_schema_check(DataType.TEXT), }, ) scan = data_source_fixture.create_test_scan() scan.mock_historic_values( metric_identity=f"metric-{scan._scan_definition_name}-{data_source_fixture.data_source.data_source_name}-{table_name}-schema", metric_values=[schema_metric_value_derived_from_test_table], ) scan.add_sodacl_yaml_str( f""" checks for {table_name}: - schema: fail: when schema changes: - column add - schema: fail: when schema changes: - column delete - schema: fail: when schema changes: - column type change - schema: fail: when schema changes: - column index change - schema: fail: when schema changes: any - schema: warn: when schema changes: - column add - schema: warn: when schema changes: - column delete - schema: warn: when schema changes: - column type change - schema: warn: when schema changes: - column index change - schema: warn: when schema changes: any """ ) scan.execute() assert scan._checks[0].outcome == CheckOutcome.PASS assert scan._checks[1].outcome == CheckOutcome.FAIL assert scan._checks[2].outcome == CheckOutcome.PASS assert scan._checks[3].outcome == CheckOutcome.FAIL assert scan._checks[4].outcome == CheckOutcome.FAIL assert scan._checks[5].outcome == CheckOutcome.PASS assert scan._checks[6].outcome == CheckOutcome.WARN assert scan._checks[7].outcome == CheckOutcome.PASS assert scan._checks[8].outcome == CheckOutcome.WARN assert scan._checks[9].outcome == CheckOutcome.WARN def test_schema_changes_warn_and_fail(data_source_fixture: DataSourceFixture): table_name = data_source_fixture.ensure_test_table(customers_test_table) data_source = data_source_fixture.data_source # start from the historic measurement value schema_metric_value_derived_from_test_table = derive_schema_metric_value_from_test_table( customers_test_table, data_source ) # remove the 4th column from the historic metric value # this will result in schema check discovering a column being added schema_metric_value_derived_from_test_table.pop(3) scan = data_source_fixture.create_test_scan() scan.mock_historic_values( metric_identity=f"metric-{scan._scan_definition_name}-{data_source_fixture.data_source.data_source_name}-{table_name}-schema", metric_values=[schema_metric_value_derived_from_test_table], ) scan.add_sodacl_yaml_str( f""" checks for {table_name}: - schema: warn: when schema changes: - column add fail: when wrong column type: id: integer does_not_exist: integer pct: varchar """ ) scan.execute() assert scan._checks[0].outcome == CheckOutcome.FAIL
32.965066
134
0.645913
855
7,549
5.354386
0.115789
0.087374
0.081695
0.085408
0.901922
0.894932
0.848405
0.833989
0.824814
0.8128
0
0.004994
0.283746
7,549
228
135
33.109649
0.841687
0.049543
0
0.786458
0
0
0.401702
0.055532
0
0
0
0
0.114583
1
0.020833
false
0.052083
0.026042
0
0.046875
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
65b8702c31419523bd126762203982119ac51633
12,948
py
Python
mab/gd/simplefit.py
maartenbreddels/mab
112dcfbc4a74b07aff13d489b3776bca58fe9bdf
[ "MIT" ]
1
2018-12-01T04:10:34.000Z
2018-12-01T04:10:34.000Z
mab/gd/simplefit.py
maartenbreddels/mab
112dcfbc4a74b07aff13d489b3776bca58fe9bdf
[ "MIT" ]
null
null
null
mab/gd/simplefit.py
maartenbreddels/mab
112dcfbc4a74b07aff13d489b3776bca58fe9bdf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scipy.optimize from numpy import * import mab.gd.logging as logging logger = logging.getLogger("gd.simplefit") import emcee from kaplot import * #fitter = None def lnprob(x, fitter): print x, fitter return fitter.logL(x) class MCMCExplore(object): def __init__(self, simplefit): self.simplefit = simplefit def run(self, *args): self.simplefit.load() stars = self.simplefit.observation.load() self.re = stars.re self.vlos = stars.vlos_helio self.e_vlos = stars.e_vlos self.N = len(self.re) self.cats = stars.catalogue_mask.astype(int) #print re.max() #dsa x0 = self.simplefit.x0 #print self.logL(*x0) print len(x0) ndim, nwalkers = len(x0), len(x0)*2 sigmas = [0.05, 0.05, 0.1, 5, 1, 5, 1] def gen(x0): return [x+random.normal(0, sigma) for x,sigma in zip(x0, sigmas)] p0 = [gen(x0) for k in range(nwalkers)] #print "p0", p0 sampler = emcee.EnsembleSampler(nwalkers, ndim, lnprob, args=[self]) #sampler.run_mcmc(p0, 1000) sampler.run_mcmc(p0, 500) #hist(sampler.flatchain[:,i], 100, color="k", histtype="step") bs = 10**sampler.flatchain[:,2] #dens = 10**sampler.flatchain[:,0] print len(bs) page(fontsize="16pt") mozaic(1,1,box) histogram(bs, bincount=50, datamin=0., datamax=1.) print bs #, dens labels("b (kpc)", "N") vline(0.3, color="red") #vline(0.16, color="red") #vline(0.38775660972067766, color="red") # sxt #vline(0.7868, color="red") # fnx if 0: select(1, 0) histogram(dens, bincount=50) labels("mu0", "N") select(0, 1) scatter(bs, dens) labels("b", "mu0") draw() def logL(self, x): #print "X", x #x = x[0] #print x self.simplefit.set_parameters(x) logL = 0 for i in range(self.N): #p = exp(self.galaxy_velocity_model.logL(vlos[i], e_vlos[i]))*w1 \ # + w2 * exp(self.foreground_velocity_model.logL(vlos[i], e_vlos[i])) #print p #if p == 0: import pdb; pdb.set_trace() #logL += log(p ) logL1 = -inf for j in range(2): if (1<<j) & (self.cats[i]): logL1 = max(logL1, self.simplefit.logL(self.re[i], self.vlos[i], self.e_vlos[i], j)) #logL += self.simplefit.logL(self.re[i], self.vlos[i], self.e_vlos[i]) logL += logL1 #print " ", logL, x return logL class SimpleFit(object): def __init__(self, filename, light_profile, light_model, observation, galaxy_velocity_model, foreground_velocity_model, const_surface_density=1e-4, fit_light=False): self.light_profile = light_profile self.light_model = light_model self.observation = observation self.galaxy_velocity_model = galaxy_velocity_model self.foreground_velocity_model = foreground_velocity_model self.filename = filename self.const_surface_density = const_surface_density self.fit_light = fit_light #self.const_surface_density = self.light_profile.densityR(2., M=1.) def load(self): self.x0 = parameters = load(self.filename) logger.info("parameters: %s" % parameters) self.set_parameters(parameters) stars = self.observation.load() re = stars.re print re.max() R = r = re.max() if 0: #print self.const_surface_density * self.w2 * r**2 R = self.light_model.arcsec_to_kpc(r) I, err = scipy.integrate.quad(lambda r: 2*pi*r*self.light_profile.densityR(r, M=1.), 0, R) print I, err #self.const_surface_density = 0.35 re = stars.re vlos = stars.vlos_helio e_vlos = stars.e_vlos N = len(re) print re.max() logL = 0 for i in range(N): #p = exp(self.galaxy_velocity_model.logL(vlos[i], e_vlos[i]))*w1 \ # + w2 * exp(self.foreground_velocity_model.logL(vlos[i], e_vlos[i])) #print p #if p == 0: import pdb; pdb.set_trace() #logL += log(p ) logL += self.logL(re[i], vlos[i], e_vlos[i]) print " ", logL #dsa def set_parameters(self, x): #R = x[0] self.const_surface_density = 10**(x[0]) if self.fit_light: if hasattr(self.light_profile, "b"): self.light_profile.b = 10**(x[1]) else: self.light_profile.scale = 10**(x[1]) offset = 2 else: offset = 1 n_params_galaxy = len(self.galaxy_velocity_model.parameters) n_params_foreground = len(self.foreground_velocity_model.parameters) for i in range(n_params_galaxy): value = x[offset+i] self.galaxy_velocity_model.parameters[i].set(value) #print "set galaxy", self.galaxy_velocity_model.parameters[i].name, "to", value for i in range(n_params_foreground): value = x[offset+n_params_galaxy+i] self.foreground_velocity_model.parameters[i].set(value) #print "set foreground", self.foreground_velocity_model.parameters[i].name, "to", value #r = abs(R) #self.w1 = 1/(1+r) #self.w2 = r/(1+r) #assert abs((self.w2/self.w1)- r) < 1e-6 def save(self): parameters = [log10(self.const_surface_density)] if self.fit_light: if hasattr(self.light_profile, "b"): parameters.append(log10(self.light_profile.b)) else: parameters.append(log10(self.light_profile.scale)) parameters += [k.get() for k in self.galaxy_velocity_model.parameters] + [k.get() for k in self.foreground_velocity_model.parameters] parameters = array(parameters) save(self.filename, parameters) def logL(self, Re, vlos, e_vlos): Re = self.light_model.arcsec_to_kpc(Re) ratio = self.light_profile.densityR(Re, M=1.)/self.const_surface_density w1 = ratio/(1+ratio) w2 = 1/(1+ratio) #print w1, w2, ratio p = exp(self.galaxy_velocity_model.logL(vlos, e_vlos))*w1 \ +exp(self.foreground_velocity_model.logL(vlos, e_vlos)) * w2 #p = exp(self.galaxy_velocity_model.logL(vlos, e_vlos))*self.w1 \ # + self.w2 * exp(self.foreground_velocity_model.logL(vlos, e_vlos)) return log(p) def memberRe(self, Re, weight=1.): Re = self.light_model.arcsec_to_kpc(Re) ratio = self.light_profile.densityR(Re, M=1.)/self.const_surface_density * weight w1 = ratio/(1+ratio) w2 = 1/(1+ratio) return (w1) def non_memberRe(self, Re, weight=1.): Re = self.light_model.arcsec_to_kpc(Re) ratio = self.light_profile.densityR(Re, M=1.)/self.const_surface_density * weight w1 = ratio/(1+ratio) w2 = 1/(1+ratio) return (w2) #return self.const_surface_density * self.w2 def run(self, args, opts, scope): stars = self.observation.load() re = stars.re vlos = stars.vlos_helio e_vlos = stars.e_vlos N = len(re) print re.max() #dsa def f_and_g(x): self.set_parameters(x) logL = 0 for i in range(N): #p = exp(self.galaxy_velocity_model.logL(vlos[i], e_vlos[i]))*w1 \ # + w2 * exp(self.foreground_velocity_model.logL(vlos[i], e_vlos[i])) #print p #if p == 0: import pdb; pdb.set_trace() #logL += log(p ) logL += self.logL(re[i], vlos[i], e_vlos[i]) print " ", logL, x return -logL x0 = [log10(self.const_surface_density)] if self.fit_light: if hasattr(self.light_profile, "b"): x0.append(log10(self.light_profile.b)) else: x0.append(log10(self.light_profile.scale)) x0 += [k.get() for k in self.galaxy_velocity_model.parameters] + [k.get() for k in self.foreground_velocity_model.parameters] bounds = [(0, 1)] + [(None,None)] * (len(x0)-1) bounds = None #x = scipy.optimize.fmin_l_bfgs_b(f_and_g, x0, None, bounds=bounds, approx_grad=True, iprint=-1,factr=1e-2,maxfun=200000)[0] x = scipy.optimize.fmin_l_bfgs_b(f_and_g, x0, None, bounds=bounds, approx_grad=True, iprint=-1,factr=1e-2,maxfun=200000)[0] print x self.set_parameters(x) self.save() class SimpleMultiFit(object): def __init__(self, filename, light_profile, light_model, observation, galaxy_velocity_model, foreground_velocity_model, const_surface_density=1e-4, fit_light=False): self.light_profile = light_profile self.light_model = light_model self.observation = observation self.galaxy_velocity_model = galaxy_velocity_model self.foreground_velocity_model = foreground_velocity_model self.filename = filename self.const_surface_density = const_surface_density self.fit_light = fit_light self.catalogues = 2 #self.const_surface_density = self.light_profile.densityR(2., M=1.) def load(self): self.x0 = parameters = load(self.filename) logger.info("parameters: %s" % parameters) self.set_parameters(parameters) def set_parameters(self, x): #self.const_surface_density = 10**(x[0]) self.const_surface_densities = [10**k for k in x[0:self.catalogues]] x = x[self.catalogues:] if self.fit_light: if hasattr(self.light_profile, "b"): self.light_profile.b = 10**(x[0]) else: self.light_profile.scale = 10**(x[0]) x = x[1:] else: pass n_params_galaxy = len(self.galaxy_velocity_model.parameters) n_params_foreground = len(self.foreground_velocity_model.parameters) for i in range(n_params_galaxy): value = x[i] self.galaxy_velocity_model.parameters[i].set(value) #print "set galaxy", self.galaxy_velocity_model.parameters[i].name, "to", value for i in range(n_params_foreground): value = x[n_params_galaxy+i] self.foreground_velocity_model.parameters[i].set(value) #print "set foreground", self.foreground_velocity_model.parameters[i].name, "to", value #r = abs(R) #self.w1 = 1/(1+r) #self.w2 = r/(1+r) #assert abs((self.w2/self.w1)- r) < 1e-6 def save(self): parameters = [log10(k) for k in self.const_surface_densities] if self.fit_light: if hasattr(self.light_profile, "b"): parameters.append(log10(self.light_profile.b)) else: parameters.append(log10(self.light_profile.scale)) parameters += [k.get() for k in self.galaxy_velocity_model.parameters] + [k.get() for k in self.foreground_velocity_model.parameters] parameters = array(parameters) save(self.filename, parameters) def logL(self, Re, vlos, e_vlos, catalogue): Re = self.light_model.arcsec_to_kpc(Re) ratio = self.light_profile.densityR(Re, M=1.)/self.const_surface_densities[catalogue] w1 = ratio/(1+ratio) w2 = 1/(1+ratio) #print w1, w2, ratio p = exp(self.galaxy_velocity_model.logL(vlos, e_vlos))*w1 \ +exp(self.foreground_velocity_model.logL(vlos, e_vlos)) * w2 #p = exp(self.galaxy_velocity_model.logL(vlos, e_vlos))*self.w1 \ # + self.w2 * exp(self.foreground_velocity_model.logL(vlos, e_vlos)) return log(p) def memberRetot(self, Re, mask): Re = self.light_model.arcsec_to_kpc(Re) ratio = mean([self.light_profile.densityR(Re, M=1.) for i in range(2) if ((1<<i)&int(mask))]) / mean([self.const_surface_densities[i] for i in range(2) if ((1<<i)&int(mask))]) w1 = ratio/(1+ratio) w2 = 1/(1+ratio) return (w1) def memberRe(self, Re, catalogue=0, weight=1.): Re = self.light_model.arcsec_to_kpc(Re) ratio = self.light_profile.densityR(Re, M=1.)/self.const_surface_densities[catalogue] * weight w1 = ratio/(1+ratio) w2 = 1/(1+ratio) return (w1) def non_memberRe(self, Re, catalogue=0, weight=1.): Re = self.light_model.arcsec_to_kpc(Re) ratio = self.light_profile.densityR(Re, M=1.)/self.const_surface_densities[catalogue] * weight w1 = ratio/(1+ratio) w2 = 1/(1+ratio) return (w2) #return self.const_surface_density * self.w2 def run(self, args, opts, scope): stars = self.observation.load() star_groups = [stars.filter(lambda star: (int(star.catalogue_mask) & (1<<i)) != 0) for i in range(self.catalogues)] for i in range(self.catalogues): print "length", len(star_groups[i]) print self.catalogues re = stars.re vlos = stars.vlos_helio e_vlos = stars.e_vlos N = len(re) cats = stars.catalogue_mask.astype(int) print re.max() #dsa def f_and_g(x): self.set_parameters(x) logL = 0 if 1: #for i in range(self.catalogues): # for star in star_groups[i]: # logL += self.logL(star.re, star.vlos_helio, star.e_vlos, i) #count1 = len(re) #count2 = 0 for i in range(len(re)): #logL1 = -inf for j in range(2): if (1<<j) & (cats[i]): #logL1 = max(logL1, self.logL(re[i], vlos[i], e_vlos[i], j)) logL += self.logL(re[i], vlos[i], e_vlos[i], j) #count2 += 1 #print j, cats[i] #assert j == 0 #logL += logL1 #print count1, count2 else: #for i in range(N): # logL += self.logL(re[i], vlos[i], e_vlos[i], 0) pass print " ", logL, x return -logL x0 = [log10(self.const_surface_density) for i in range(self.catalogues)] if self.fit_light: if hasattr(self.light_profile, "b"): x0.append(log10(self.light_profile.b)) else: x0.append(log10(self.light_profile.scale)) x0 += [k.get() for k in self.galaxy_velocity_model.parameters] + [k.get() for k in self.foreground_velocity_model.parameters] #bounds = [(0, 1)] + [(None,None)] * (len(x0)-1) bounds = None #x = scipy.optimize.fmin_l_bfgs_b(f_and_g, x0, None, bounds=bounds, approx_grad=True, iprint=-1,factr=1e-2,maxfun=200000)[0] x = scipy.optimize.fmin_l_bfgs_b(f_and_g, x0, None, bounds=bounds, approx_grad=True, iprint=-1,factr=1e-2,maxfun=200000)[0] print x self.set_parameters(x) self.save()
33.030612
177
0.679719
2,077
12,948
4.074145
0.093404
0.070669
0.056724
0.051643
0.80761
0.793429
0.777712
0.750886
0.750886
0.743323
0
0.032114
0.167902
12,948
391
178
33.11509
0.753295
0.216713
0
0.632959
0
0
0.008648
0
0
0
0
0
0
0
null
null
0.007491
0.018727
null
null
0.067416
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
65d19b1b004dbcf76666c6ac81d4f0762575accc
19,096
py
Python
src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py
snowei/azure-cli-extensions
0793492083bb92b93acce008865ffb013a2d1bc9
[ "MIT" ]
null
null
null
src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py
snowei/azure-cli-extensions
0793492083bb92b93acce008865ffb013a2d1bc9
[ "MIT" ]
1
2020-03-09T22:34:27.000Z
2020-03-09T22:34:27.000Z
src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py
snowei/azure-cli-extensions
0793492083bb92b93acce008865ffb013a2d1bc9
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import os import json import time import requests import websocket import pytest from azext_serialconsole.custom import check_resource from azure.cli.testsdk.base import ScenarioTest from azure.cli.testsdk import ( LiveScenarioTest, StorageAccountPreparer, ResourceGroupPreparer) from azure.cli.testsdk.exceptions import JMESPathCheckAssertionError from azure.cli.core.azclierror import ForbiddenError, ResourceNotFoundError from azure.cli.core.azclierror import AzureConnectionError from azure.cli.core.azclierror import ForbiddenError from azure.core.exceptions import ResourceNotFoundError as ComputeClientResourceNotFoundError TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) class CheckResourceTest(ScenarioTest): @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') @StorageAccountPreparer(name_prefix='cli', location="westus2") def test_check_resource_VMSS(self, resource_group, storage_account): name = self.create_random_name(prefix='cli', length=24) self.kwargs.update({ 'sa': storage_account, 'rg': resource_group, 'name': name, 'urn': 'UbuntuLTS', 'loc': 'westus2' }) with self.assertRaises(ComputeClientResourceNotFoundError): check_resource(self.cli_ctx, resource_group, name, None) with self.assertRaises(ComputeClientResourceNotFoundError): check_resource(self.cli_ctx, resource_group, name, "0") self.cmd('az vmss create -g {rg} -n {name} --image {urn} --instance-count 2 -l {loc}') with self.assertRaises(ResourceNotFoundError): check_resource(self.cli_ctx, resource_group, name, None) iid = self.cmd('vmss list-instances --resource-group {rg} --name {name} --query "[].instanceId"').get_output_in_json()[1] self.kwargs.update({'id': iid}) self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\" : null}}}}"') self.cmd('az vmss update-instances -g {rg} -n {name} --instance-ids {id}') check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss deallocate -g {rg} -n {name} --instance-ids {id}') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') self.cmd('az vmss stop -g {rg} -n {name} --instance-ids {id}') check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\":\\"https://{sa}.blob.core.windows.net/\\"}}}}"') self.cmd('az vmss update-instances -g {rg} -n {name} --instance-ids {id}') check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az serial-console disable') with self.assertRaises(ForbiddenError): check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az serial-console enable') check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss deallocate -g {rg} -n {name} --instance-ids {id}') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') self.cmd('az vmss stop -g {rg} -n {name} --instance-ids {id}') check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"False\\",\\"StorageUri\\" : null}}}}"') check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss update-instances -g {rg} -n {name} --instance-ids {id}') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss deallocate -g {rg} -n {name} --instance-ids {id}') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\" : null}}}}"') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, iid) self.cmd('az vmss update-instances -g {rg} -n {name} --instance-ids {id}') check_resource(self.cli_ctx, resource_group, name, iid) @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') @StorageAccountPreparer(name_prefix='cli', location="westus2") def test_check_resource_VM(self, resource_group, storage_account): name = self.create_random_name(prefix='cli', length=24) self.kwargs.update({ 'sa': storage_account, 'rg': resource_group, 'name': name, 'urn': 'UbuntuLTS', 'loc': 'westus2' }) with self.assertRaises(ComputeClientResourceNotFoundError): check_resource(self.cli_ctx, resource_group, name, None) with self.assertRaises(ComputeClientResourceNotFoundError): check_resource(self.cli_ctx, resource_group, name, "0") self.cmd('az vm create -g {rg} -n {name} --image {urn} -l {loc} --generate-ssh-keys') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az vm boot-diagnostics enable -g {rg} -n {name}') check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az vm deallocate -g {rg} -n {name}') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az vm start -g {rg} -n {name}') self.cmd('az vm stop -g {rg} -n {name}') check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az vm boot-diagnostics disable -g {rg} -n {name}') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az vm start -g {rg} -n {name}') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az vm boot-diagnostics enable -g {rg} -n {name} --storage {sa}') check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az serial-console disable') with self.assertRaises(ForbiddenError): check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az serial-console enable') check_resource(self.cli_ctx, resource_group, name, None) self.cmd('az vm deallocate -g {rg} -n {name}') with self.assertRaises(AzureConnectionError): check_resource(self.cli_ctx, resource_group, name, None) class SerialConsoleEnableDisableTest(ScenarioTest): def test_enable_disable(self): self.cmd('az serial-console disable', checks=[ self.check('properties.disabled', 'True') ]) self.cmd('az serial-console enable', checks=[ self.check('properties.disabled', 'False') ]) class SerialconsoleAdminCommandsTest(LiveScenarioTest): def check_result(self, resource_group_name, vm_vmss_name, vmss_instanceid=None, message=""): ARM_ENDPOINT = "https://management.azure.com" RP_PROVIDER = "Microsoft.SerialConsole" subscription_id = self.get_subscription_id() vm_path = f"virtualMachineScaleSets/{vm_vmss_name}/virtualMachines/{vmss_instanceid}" \ if vmss_instanceid else f"virtualMachines/{vm_vmss_name}" connection_url = (f"{ARM_ENDPOINT}/subscriptions/{subscription_id}/resourcegroups/{resource_group_name}" f"/providers/Microsoft.Compute/{vm_path}" f"/providers/{RP_PROVIDER}/serialPorts/0" f"/connect?api-version=2018-05-01") from azure.cli.core._profile import Profile token_info, _, _ = Profile().get_raw_token() access_token = token_info[1] application_json_format = "application/json" headers = {'authorization': "Bearer " + access_token, 'accept': application_json_format, 'content-type': application_json_format} result = requests.post(connection_url, headers=headers) json_results = json.loads(result.text) self.assertTrue(result.status_code == 200 and "connectionString" in json_results) websocket_url = json_results["connectionString"] ws = websocket.WebSocket() ws.connect(websocket_url + "?authorization=" + access_token, timeout=30) buffer = "" while True: try: buffer += ws.recv() except (websocket.WebSocketTimeoutException, websocket.WebSocketConnectionClosedException): break assert message in buffer @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') @StorageAccountPreparer(name_prefix='cli', location="westus2") def test_send_sysrq_VMSS(self, resource_group, storage_account): name = self.create_random_name(prefix='cli', length=24) self.kwargs.update({ 'sa': storage_account, 'rg': resource_group, 'name': name, 'urn': 'UbuntuLTS', 'loc': 'westus2' }) self.cmd( 'az vmss create -g {rg} -n {name} --image {urn} --instance-count 2 -l {loc}') self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\":\\"https://{sa}.blob.core.windows.net/\\"}}}}"') result = self.cmd( 'vmss list-instances --resource-group {rg} --name {name} --query "[].instanceId"').get_output_in_json() self.kwargs.update({'id': result[1]}) self.cmd( 'az vmss update-instances -g {rg} -n {name} --instance-ids {id}') time.sleep(60) for i in range(5): try: self.cmd('vmss get-instance-view --resource-group {rg} --name {name} --instance-id {id}', checks=[ self.check('statuses[0].code', 'ProvisioningState/succeeded'), self.check('statuses[1].code', 'PowerState/running'), ]) break except JMESPathCheckAssertionError: time.sleep(30) self.cmd( 'serial-console send sysrq -g {rg} -n {name} --instance-id {id} --input h') self.check_result(resource_group, name, vmss_instanceid=result[1], message="sysrq: HELP") @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') @StorageAccountPreparer(name_prefix='cli', location="westus2") def test_send_nmi_VMSS(self, resource_group, storage_account): name = self.create_random_name(prefix='cli', length=24) self.kwargs.update({ 'sa': storage_account, 'rg': resource_group, 'name': name, 'urn': 'UbuntuLTS', 'loc': 'westus2' }) self.cmd( 'az vmss create -g {rg} -n {name} --image {urn} --instance-count 2 -l {loc}') self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\":\\"https://{sa}.blob.core.windows.net/\\"}}}}"') result = self.cmd( 'vmss list-instances --resource-group {rg} --name {name} --query "[].instanceId"').get_output_in_json() self.kwargs.update({'id': result[1]}) self.cmd( 'az vmss update-instances -g {rg} -n {name} --instance-ids {id}') time.sleep(60) for i in range(5): try: self.cmd('vmss get-instance-view --resource-group {rg} --name {name} --instance-id {id}', checks=[ self.check('statuses[0].code', 'ProvisioningState/succeeded'), self.check('statuses[1].code', 'PowerState/running'), ]) break except JMESPathCheckAssertionError: time.sleep(30) self.cmd( 'serial-console send nmi -g {rg} -n {name} --instance-id {id}') self.check_result(resource_group, name, vmss_instanceid=result[1], message="NMI received") @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') @StorageAccountPreparer(name_prefix='cli', location="westus2") def test_send_reset_VMSS(self, resource_group, storage_account): name = self.create_random_name(prefix='cli', length=24) self.kwargs.update({ 'sa': storage_account, 'rg': resource_group, 'name': name, 'urn': 'UbuntuLTS', 'loc': 'westus2' }) self.cmd( 'az vmss create -g {rg} -n {name} --image {urn} --instance-count 2 -l {loc}') self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\":\\"https://{sa}.blob.core.windows.net/\\"}}}}"') result = self.cmd( 'vmss list-instances --resource-group {rg} --name {name} --query "[].instanceId"').get_output_in_json() self.kwargs.update({'id': result[1]}) self.cmd( 'az vmss update-instances -g {rg} -n {name} --instance-ids {id}') time.sleep(60) for i in range(5): try: self.cmd('vmss get-instance-view --resource-group {rg} --name {name} --instance-id {id}', checks=[ self.check('statuses[0].code', 'ProvisioningState/succeeded'), self.check('statuses[1].code', 'PowerState/running'), ]) break except JMESPathCheckAssertionError: time.sleep(30) self.cmd('serial-console send reset -g {rg} -n {name} --instance-id {id}') @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') @StorageAccountPreparer(name_prefix='cli', location="westus2") def test_send_nmi_VM(self, resource_group, storage_account): name = self.create_random_name(prefix='cli', length=24) self.kwargs.update({ 'sa': storage_account, 'rg': resource_group, 'name': name, 'urn': 'UbuntuLTS', 'loc': 'westus2' }) self.cmd( 'az vm create -g {rg} -n {name} --image {urn} --boot-diagnostics-storage {sa} -l {loc} --generate-ssh-keys') time.sleep(60) for i in range(5): try: self.cmd('vm get-instance-view --resource-group {rg} --name {name}', checks=[ self.check( 'instanceView.statuses[0].code', 'ProvisioningState/succeeded'), self.check( 'instanceView.statuses[1].code', 'PowerState/running'), ]) break except JMESPathCheckAssertionError: time.sleep(30) self.cmd('serial-console send nmi -g {rg} -n {name}') self.check_result(resource_group, name, message="NMI received") @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') @StorageAccountPreparer(name_prefix='cli', location="westus2") def test_send_sysrq_VM(self, resource_group, storage_account): name = self.create_random_name(prefix='cli', length=24) self.kwargs.update({ 'sa': storage_account, 'rg': resource_group, 'name': name, 'urn': 'UbuntuLTS', 'loc': 'westus2' }) self.cmd( 'az vm create -g {rg} -n {name} --image {urn} --boot-diagnostics-storage {sa} -l {loc} --generate-ssh-keys') time.sleep(60) for i in range(5): try: self.cmd('vm get-instance-view --resource-group {rg} --name {name}', checks=[ self.check( 'instanceView.statuses[0].code', 'ProvisioningState/succeeded'), self.check( 'instanceView.statuses[1].code', 'PowerState/running'), ]) break except JMESPathCheckAssertionError: time.sleep(30) self.cmd('serial-console send sysrq -g {rg} -n {name} --input h') self.check_result(resource_group, name, message="sysrq: HELP") @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') @StorageAccountPreparer(name_prefix='cli', location="westus2") def test_send_reset_VM(self, resource_group, storage_account): name = self.create_random_name(prefix='cli', length=24) self.kwargs.update({ 'sa': storage_account, 'rg': resource_group, 'name': name, 'urn': 'UbuntuLTS', 'loc': 'westus2' }) self.cmd( 'az vm create -g {rg} -n {name} --image {urn} --boot-diagnostics-storage {sa} -l {loc} --generate-ssh-keys') time.sleep(60) for i in range(5): try: self.cmd('vm get-instance-view --resource-group {rg} --name {name}', checks=[ self.check( 'instanceView.statuses[0].code', 'ProvisioningState/succeeded'), self.check( 'instanceView.statuses[1].code', 'PowerState/running'), ]) break except JMESPathCheckAssertionError: time.sleep(30) self.cmd('serial-console send reset -g {rg} -n {name}')
46.349515
236
0.600021
2,093
19,096
5.346871
0.102723
0.07783
0.036994
0.02788
0.826914
0.818604
0.810383
0.796086
0.792154
0.788223
0
0.007595
0.248481
19,096
411
237
46.462287
0.772211
0.017595
0
0.759644
0
0.097923
0.331538
0.077259
0
0
0
0
0.077151
1
0.029674
false
0
0.04451
0
0.083086
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
02b46f7b6db5c12dd912ba128b9de4d9a7a22faa
148
py
Python
Toolkits/VCS/mygulamali__repo-mine/mine/models/__init__.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
null
null
null
Toolkits/VCS/mygulamali__repo-mine/mine/models/__init__.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
null
null
null
Toolkits/VCS/mygulamali__repo-mine/mine/models/__init__.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
null
null
null
from mine.models.base import Base from mine.models.commit import Commit from mine.models.repo import Repo from mine.models.language import Language
29.6
41
0.837838
24
148
5.166667
0.333333
0.258065
0.451613
0
0
0
0
0
0
0
0
0
0.108108
148
4
42
37
0.939394
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
02bbda28f591a40c24a1c6c477acfbe85ef46c1b
151
py
Python
models/__init__.py
weihaosky/SMVmatching
814d00530026278f3582df3849ead46b3479cc57
[ "MIT" ]
2
2021-08-06T03:39:11.000Z
2021-08-09T06:32:18.000Z
models/__init__.py
weihaosky/SMVmatching
814d00530026278f3582df3849ead46b3479cc57
[ "MIT" ]
null
null
null
models/__init__.py
weihaosky/SMVmatching
814d00530026278f3582df3849ead46b3479cc57
[ "MIT" ]
1
2021-11-15T02:27:32.000Z
2021-11-15T02:27:32.000Z
from .basic import PSMNet as basic from .stackhourglass import PSMNet as stackhourglass from .stackhourglass_prob import PSMNet as stackhourglass_prob
37.75
62
0.860927
20
151
6.4
0.35
0.28125
0.328125
0.4375
0
0
0
0
0
0
0
0
0.119205
151
3
63
50.333333
0.962406
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
8
02c5077b37fa45b43b4824f7d4a034dc239edac5
3,263
py
Python
tests/dataset_tests/test_datalayer.py
jinniuai/qlib
dc14868ae6f4694f4929b6eb6a36bb8cae703a08
[ "MIT" ]
null
null
null
tests/dataset_tests/test_datalayer.py
jinniuai/qlib
dc14868ae6f4694f4929b6eb6a36bb8cae703a08
[ "MIT" ]
null
null
null
tests/dataset_tests/test_datalayer.py
jinniuai/qlib
dc14868ae6f4694f4929b6eb6a36bb8cae703a08
[ "MIT" ]
null
null
null
import unittest import numpy as np from qlib.data import D from qlib.tests import TestAutoData class TestDataset(TestAutoData): def testCSI300(self): close_p = D.features(D.instruments("csi300"), ["$close"]) size = close_p.groupby("datetime").size() cnt = close_p.groupby("datetime").count()["$close"] size_desc = size.describe(percentiles=np.arange(0.1, 1.0, 0.1)) cnt_desc = cnt.describe(percentiles=np.arange(0.1, 1.0, 0.1)) print(size_desc) print(cnt_desc) self.assertLessEqual(size_desc.loc["max"], 305, "Excessive number of CSI300 constituent stocks") self.assertGreaterEqual(size_desc.loc["80%"], 290, "Insufficient number of CSI300 constituent stocks") self.assertLessEqual(cnt_desc.loc["max"], 305, "Excessive number of CSI300 constituent stocks") # FIXME: Due to the low quality of data. Hard to make sure there are enough data # self.assertEqual(cnt_desc.loc["80%"], 300, "Insufficient number of CSI300 constituent stocks") def testClose(self): close_p = D.features(D.instruments("csi300"), ["Ref($close, 1)/$close - 1"]) close_desc = close_p.describe(percentiles=np.arange(0.1, 1.0, 0.1)) print(close_desc) self.assertLessEqual(abs(close_desc.loc["90%"][0]), 0.1, "Close value is abnormal") self.assertLessEqual(abs(close_desc.loc["10%"][0]), 0.1, "Close value is abnormal") # FIXME: The yahoo data is not perfect. We have to # self.assertLessEqual(abs(close_desc.loc["max"][0]), 0.2, "Close value is abnormal") # self.assertGreaterEqual(close_desc.loc["min"][0], -0.2, "Close value is abnormal") def testJinniuai(self): close_p = D.features(D.instruments("csi300"), ["$close"]) size = close_p.groupby("datetime").size() cnt = close_p.groupby("datetime").count()["$close"] size_desc = size.describe(percentiles=np.arange(0.1, 1.0, 0.1)) cnt_desc = cnt.describe(percentiles=np.arange(0.1, 1.0, 0.1)) print(size_desc) print(cnt_desc) self.assertLessEqual(size_desc.loc["max"], 305, "Excessive number of CSI300 constituent stocks") self.assertGreaterEqual(size_desc.loc["80%"], 290, "Insufficient number of CSI300 constituent stocks") self.assertLessEqual(cnt_desc.loc["max"], 305, "Excessive number of CSI300 constituent stocks") # FIXME: Due to the low quality of data. Hard to make sure there are enough data # self.assertEqual(cnt_desc.loc["80%"], 300, "Insufficient number of CSI300 constituent stocks") close_p = D.features(D.instruments("csi300"), ["Ref($close, 1)/$close - 1"]) close_desc = close_p.describe(percentiles=np.arange(0.1, 1.0, 0.1)) print(close_desc) self.assertLessEqual(abs(close_desc.loc["90%"][0]), 0.1, "Close value is abnormal") self.assertLessEqual(abs(close_desc.loc["10%"][0]), 0.1, "Close value is abnormal") # FIXME: The yahoo data is not perfect. We have to # self.assertLessEqual(abs(close_desc.loc["max"][0]), 0.2, "Close value is abnormal") # self.assertGreaterEqual(close_desc.loc["min"][0], -0.2, "Close value is abnormal") if __name__ == "__main__": unittest.main()
50.984375
110
0.661048
463
3,263
4.559395
0.170626
0.015159
0.014211
0.094742
0.919943
0.919943
0.919943
0.919943
0.918048
0.918048
0
0.054105
0.190009
3,263
63
111
51.793651
0.744608
0.238737
0
0.75
0
0
0.216741
0
0
0
0
0.015873
0.25
1
0.075
false
0
0.1
0
0.2
0.15
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
8
f3045b138df80a36ad75268f3377d2f521abd8c1
7,165
py
Python
posthog/models/filters/mixins/test/test_property.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
posthog/models/filters/mixins/test/test_property.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
posthog/models/filters/mixins/test/test_property.py
ld-rale/posthog
0fa5b18b2e940cf5cdbe8afc733eb7e3cd4ae810
[ "MIT" ]
null
null
null
import json import pytest from rest_framework.exceptions import ValidationError from posthog.models import Filter from posthog.models.property import Property, PropertyGroup def test_property_group_multi_level_parsing(): filter = Filter( data={ "properties": { "type": "AND", "values": [ { "type": "AND", "values": [{"key": "attr", "value": "val_1"}, {"key": "attr_2", "value": "val_2"}], }, {"type": "OR", "values": [{"key": "attr", "value": "val_2"}]}, ], } } ) assert filter.property_groups.type == "AND" assert isinstance(filter.property_groups.values[0], PropertyGroup) assert filter.property_groups.values[0].type == "AND" assert isinstance(filter.property_groups.values[0].values[0], Property) assert filter.property_groups.values[0].values[0].key == "attr" assert filter.property_groups.values[0].values[0].value == "val_1" assert isinstance(filter.property_groups.values[0].values[1], Property) assert filter.property_groups.values[0].values[1].key == "attr_2" assert filter.property_groups.values[0].values[1].value == "val_2" assert isinstance(filter.property_groups.values[1], PropertyGroup) assert filter.property_groups.values[1].type == "OR" assert isinstance(filter.property_groups.values[1].values[0], Property) assert filter.property_groups.values[1].values[0].key == "attr" assert filter.property_groups.values[1].values[0].value == "val_2" def test_property_group_simple_parsing(): filter = Filter( data={ "properties": { "type": "AND", "values": [{"key": "attr", "value": "val_1"}, {"key": "attr_2", "value": "val_2"}], } } ) assert filter.property_groups.type == "AND" assert isinstance(filter.property_groups.values[0], Property) assert filter.property_groups.values[0].key == "attr" assert filter.property_groups.values[0].value == "val_1" assert isinstance(filter.property_groups.values[1], Property) assert filter.property_groups.values[1].key == "attr_2" assert filter.property_groups.values[1].value == "val_2" def test_property_group_empty_parsing(): filter = Filter(data={"properties": {}}) assert filter.property_groups.type == "AND" assert filter.property_groups.values == [] def test_property_group_invalid_parsing(): filter = Filter( data={ "properties": { "type": "XaND", "values": [{"key": "attr", "value": "val_1"}, {"key": "attr_2", "value": "val_2"},], } } ) with pytest.raises(ValidationError): filter.property_groups def test_property_group_includes_unhomogenous_groups(): filter = Filter( data={ "properties": { "type": "AND", "values": [ {"type": "or", "values": [{"key": "attr", "value": "val_1"}]}, {"key": "attr", "value": "val_1"}, {"key": "attr_2", "value": "val_2"}, {"type": "OR", "values": []}, ], } } ) with pytest.raises(ValidationError): filter.property_groups def test_property_multi_level_to_dict(): filter = Filter( data={ "properties": { "type": "AND", "values": [ { "type": "AND", "values": [{"key": "attr", "value": "val_1"}, {"key": "attr_2", "value": "val_2"}], }, {"type": "OR", "values": [{"key": "attr", "value": "val_2"}]}, ], } } ) assert filter.property_groups.to_dict() == { "type": "AND", "values": [ { "type": "AND", "values": [ {"key": "attr", "value": "val_1", "operator": None, "type": "event"}, {"key": "attr_2", "value": "val_2", "operator": None, "type": "event"}, ], }, {"type": "OR", "values": [{"key": "attr", "value": "val_2", "operator": None, "type": "event"}]}, ], } def test_property_group_simple_to_dict(): filter = Filter( data={ "properties": { "type": "AND", "values": [{"key": "attr", "value": "val_1"}, {"key": "attr_2", "value": "val_2"}], } } ) assert filter.property_groups.to_dict() == { "type": "AND", "values": [ {"key": "attr", "value": "val_1", "operator": None, "type": "event"}, {"key": "attr_2", "value": "val_2", "operator": None, "type": "event"}, ], } def test_property_group_simple_json_parsing(): filter = Filter( data={ "properties": json.dumps( {"type": "AND", "values": [{"key": "attr", "value": "val_1"}, {"key": "attr_2", "value": "val_2"}],} ) } ) assert filter.property_groups.type == "AND" assert isinstance(filter.property_groups.values[0], Property) assert filter.property_groups.values[0].key == "attr" assert filter.property_groups.values[0].value == "val_1" assert isinstance(filter.property_groups.values[1], Property) assert filter.property_groups.values[1].key == "attr_2" assert filter.property_groups.values[1].value == "val_2" def test_property_group_multi_level_json_parsing(): filter = Filter( data={ "properties": json.dumps( { "type": "AND", "values": [ { "type": "AND", "values": [{"key": "attr", "value": "val_1"}, {"key": "attr_2", "value": "val_2"}], }, {"type": "OR", "values": [{"key": "attr", "value": "val_2"}]}, ], } ) } ) assert filter.property_groups.type == "AND" assert isinstance(filter.property_groups.values[0], PropertyGroup) assert filter.property_groups.values[0].type == "AND" assert isinstance(filter.property_groups.values[0].values[0], Property) assert filter.property_groups.values[0].values[0].key == "attr" assert filter.property_groups.values[0].values[0].value == "val_1" assert isinstance(filter.property_groups.values[0].values[1], Property) assert filter.property_groups.values[0].values[1].key == "attr_2" assert filter.property_groups.values[0].values[1].value == "val_2" assert isinstance(filter.property_groups.values[1], PropertyGroup) assert filter.property_groups.values[1].type == "OR" assert isinstance(filter.property_groups.values[1].values[0], Property) assert filter.property_groups.values[1].values[0].key == "attr" assert filter.property_groups.values[1].values[0].value == "val_2"
34.613527
116
0.536497
753
7,165
4.915007
0.065073
0.181573
0.259389
0.27398
0.938395
0.920832
0.900027
0.883545
0.857066
0.853823
0
0.020735
0.293231
7,165
206
117
34.781553
0.710111
0
0
0.649123
0
0
0.139288
0
0
0
0
0
0.269006
1
0.052632
false
0
0.02924
0
0.081871
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
f3070dc6fd0695dd87b2a05adb23cca745699535
518
py
Python
startup/scripts/sandbox.py
NSLS-II-ISS/profile_collection
77e5567fa8c5b3dfb249174ce951279899b2c917
[ "BSD-3-Clause" ]
null
null
null
startup/scripts/sandbox.py
NSLS-II-ISS/profile_collection
77e5567fa8c5b3dfb249174ce951279899b2c917
[ "BSD-3-Clause" ]
22
2017-08-16T18:50:44.000Z
2021-11-10T21:11:03.000Z
startup/scripts/sandbox.py
NSLS-II-ISS/profile_collection
77e5567fa8c5b3dfb249174ce951279899b2c917
[ "BSD-3-Clause" ]
8
2016-04-01T19:46:06.000Z
2022-01-07T20:04:42.000Z
def master_plan(): yield from bps.mvr(giantxy.x,x_range/2) yield from bps.mvr(giantxy.y,y_range/2) for _ in range(6): yield from bps.mvr(giantxy.x,-x_range) yield from bps.mvr(giantxy.y,-1) yield from bps.mvr(giantxy.x,+x_range) yield from bps.mvr(giantxy.y,-1) yield from bps.mvr(giantxy.x,-x_range) yield from bps.mvr(giantxy.y,-1) yield from bps.mvr(giantxy.x,+x_range) yield from bps.mvr(giantxy.x,-x_range/2) yield from bps.mvr(giantxy.y,y_range/2)
37
46
0.660232
96
518
3.458333
0.166667
0.298193
0.39759
0.496988
0.927711
0.927711
0.927711
0.927711
0.927711
0.927711
0
0.019277
0.198842
518
13
47
39.846154
0.780723
0
0
0.692308
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
b83f1d5e5656e1589a4da7857a85240be0d57150
1,004
py
Python
momiji/reusables/get_member_helpers.py
Kyuunex/Momiji
a320bb901015737e4bd57c9da9a997d256689448
[ "MIT" ]
16
2019-02-12T17:16:03.000Z
2021-07-16T05:36:06.000Z
momiji/reusables/get_member_helpers.py
Kyuunex/Momiji
a320bb901015737e4bd57c9da9a997d256689448
[ "MIT" ]
null
null
null
momiji/reusables/get_member_helpers.py
Kyuunex/Momiji
a320bb901015737e4bd57c9da9a997d256689448
[ "MIT" ]
5
2019-12-07T10:34:36.000Z
2021-03-05T12:21:53.000Z
def get_member_guaranteed(ctx, lookup): if len(ctx.message.mentions) > 0: return ctx.message.mentions[0] if lookup.isdigit(): result = ctx.guild.get_member(int(lookup)) if result: return result if "#" in lookup: result = ctx.guild.get_member_named(lookup) if result: return result for member in ctx.guild.members: if member.display_name.lower() == lookup.lower(): return member return None def get_member_guaranteed_custom_guild(ctx, guild, lookup): if len(ctx.message.mentions) > 0: return ctx.message.mentions[0] if lookup.isdigit(): result = guild.get_member(int(lookup)) if result: return result if "#" in lookup: result = guild.get_member_named(lookup) if result: return result for member in guild.members: if member.display_name.lower() == lookup.lower(): return member return None
25.74359
59
0.606574
124
1,004
4.798387
0.201613
0.090756
0.121008
0.127731
0.884034
0.87395
0.87395
0.87395
0.87395
0.87395
0
0.005674
0.297809
1,004
38
60
26.421053
0.838298
0
0
0.733333
0
0
0.001992
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.4
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
b85ada9091a5c2eb197a08b5c24f93aa36c1fcd1
100
py
Python
daily_interesting/testing.py
benstreb/daily-interesting
bac71fa54a1eb4e139d38af4e22fe38a69fee2cb
[ "MIT" ]
null
null
null
daily_interesting/testing.py
benstreb/daily-interesting
bac71fa54a1eb4e139d38af4e22fe38a69fee2cb
[ "MIT" ]
null
null
null
daily_interesting/testing.py
benstreb/daily-interesting
bac71fa54a1eb4e139d38af4e22fe38a69fee2cb
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup def parse_html(html): return BeautifulSoup(html, "html.parser")
16.666667
45
0.76
13
100
5.769231
0.692308
0.213333
0
0
0
0
0
0
0
0
0
0.011765
0.15
100
5
46
20
0.870588
0
0
0
0
0
0.11
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7