-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy path__init__.py
More file actions
85 lines (82 loc) · 2.96 KB
/
__init__.py
File metadata and controls
85 lines (82 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Copyright 2024 Google LLC
#
# 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
#
# https://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.
"""qualtran.surface_code.flasq: FLASQ cost model for fault-tolerant quantum resource estimation."""
from qualtran.surface_code.flasq import cultivation_analysis # noqa: F401 — imported as module
from qualtran.surface_code.flasq.cirq_interop import convert_circuit_for_flasq_analysis
from qualtran.surface_code.flasq.error_mitigation import (
calculate_error_mitigation_metrics,
calculate_failure_probabilities,
)
from qualtran.surface_code.flasq.flasq_model import (
apply_flasq_cost_model,
conservative_FLASQ_costs,
FLASQCostModel,
FLASQSummary,
get_rotation_depth,
optimistic_FLASQ_costs,
)
from qualtran.surface_code.flasq.measurement_depth import MeasurementDepth, TotalMeasurementDepth
from qualtran.surface_code.flasq.naive_grid_qubit_manager import NaiveGridQubitManager
from qualtran.surface_code.flasq.optimization import (
ErrorBudget,
generate_circuit_specific_configs,
generate_configs_for_constrained_qec,
generate_configs_from_cultivation_data,
post_process_for_failure_budget,
post_process_for_logical_depth,
post_process_for_pec_runtime,
run_sweep,
)
from qualtran.surface_code.flasq.span_counting import BloqWithSpanInfo, GateSpan, TotalSpanCost
from qualtran.surface_code.flasq.symbols import (
MIXED_FALLBACK_T_COUNT,
ROTATION_ERROR,
T_REACT,
V_CULT_FACTOR,
)
from qualtran.surface_code.flasq.utils import substitute_until_fixed_point
from qualtran.surface_code.flasq.volume_counting import FLASQGateCounts, FLASQGateTotals
__all__ = [
"FLASQCostModel",
"FLASQSummary",
"apply_flasq_cost_model",
"conservative_FLASQ_costs",
"optimistic_FLASQ_costs",
"get_rotation_depth",
"FLASQGateTotals",
"TotalSpanCost",
"TotalMeasurementDepth",
"convert_circuit_for_flasq_analysis",
"NaiveGridQubitManager",
"ErrorBudget",
"run_sweep",
"generate_configs_for_constrained_qec",
"generate_configs_from_cultivation_data",
"generate_circuit_specific_configs",
"post_process_for_failure_budget",
"post_process_for_pec_runtime",
"post_process_for_logical_depth",
"calculate_error_mitigation_metrics",
"calculate_failure_probabilities",
"MIXED_FALLBACK_T_COUNT",
"ROTATION_ERROR",
"V_CULT_FACTOR",
"T_REACT",
"substitute_until_fixed_point",
"cultivation_analysis",
"FLASQGateCounts",
"GateSpan",
"MeasurementDepth",
"BloqWithSpanInfo",
]