-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path__init__.py
More file actions
132 lines (125 loc) · 3.24 KB
/
__init__.py
File metadata and controls
132 lines (125 loc) · 3.24 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
"""
ACCL-Q: Quantum-Optimized Alveo Collective Communication Library
This package provides Python bindings for ACCL-Q, enabling quantum control
systems to perform low-latency collective communication operations.
Key features:
- Sub-microsecond collective operations (broadcast, reduce, barrier)
- Hardware-synchronized timing with < 10ns jitter
- Integration with QubiC and QICK quantum control frameworks
- Real-time measurement feedback within coherence time budgets
Example usage:
from accl_quantum import ACCLQuantum, ReduceOp, SyncMode
# Initialize ACCL-Q
accl = ACCLQuantum(num_ranks=8, local_rank=0)
accl.configure(mode=ACCLMode.DETERMINISTIC)
accl.sync_clocks()
# Perform collective operations
result = accl.allreduce(local_syndrome, op=ReduceOp.XOR)
accl.broadcast(measurement_result, root=decoder_rank)
"""
from .driver import ACCLQuantum, OperationResult
from .constants import (
ACCLMode,
ACCLConfig,
ReduceOp,
SyncMode,
CollectiveOp,
OperationStatus,
QuantumMsgType,
LatencyBudget,
CLOCK_PERIOD_NS,
TARGET_P2P_LATENCY_NS,
TARGET_BROADCAST_LATENCY_NS,
TARGET_REDUCE_LATENCY_NS,
MAX_JITTER_NS,
FEEDBACK_LATENCY_BUDGET_NS,
)
from .stats import LatencyStats, LatencyMonitor, LatencyProfiler
from .integrations import QubiCIntegration, QICKIntegration, UnifiedQuantumControl
from .feedback import MeasurementFeedbackPipeline, FeedbackScheduler
from .deployment import (
BoardConfig,
BoardType,
DeploymentConfig,
DeploymentManager,
DeploymentState,
NetworkTopology,
TopologyBuilder,
BoardDiscovery,
)
from .emulator import (
RealisticQubitEmulator,
QubitState,
NoiseParameters,
GateType,
QuantumCircuitValidator,
)
from .profiler import (
CriticalPathProfiler,
BottleneckAnalyzer,
OptimizationAdvisor,
PerformanceRegressor,
LatencyVisualizer,
ProfilingSession,
LatencyBreakdown,
Bottleneck,
Recommendation,
)
__version__ = "0.2.0"
__all__ = [
# Core driver
"ACCLQuantum",
"OperationResult",
"ACCLConfig",
# Operation modes and types
"ACCLMode",
"ReduceOp",
"SyncMode",
"CollectiveOp",
"OperationStatus",
"QuantumMsgType",
"LatencyBudget",
# Statistics and monitoring
"LatencyStats",
"LatencyMonitor",
"LatencyProfiler",
# Framework integrations
"QubiCIntegration",
"QICKIntegration",
"UnifiedQuantumControl",
# Feedback pipeline
"MeasurementFeedbackPipeline",
"FeedbackScheduler",
# Deployment
"BoardConfig",
"BoardType",
"DeploymentConfig",
"DeploymentManager",
"DeploymentState",
"NetworkTopology",
"TopologyBuilder",
"BoardDiscovery",
# Emulation
"RealisticQubitEmulator",
"QubitState",
"NoiseParameters",
"GateType",
"QuantumCircuitValidator",
# Profiling
"CriticalPathProfiler",
"BottleneckAnalyzer",
"OptimizationAdvisor",
"PerformanceRegressor",
"LatencyVisualizer",
"ProfilingSession",
"LatencyBreakdown",
"Bottleneck",
"Recommendation",
# Constants
"CLOCK_PERIOD_NS",
"TARGET_P2P_LATENCY_NS",
"TARGET_BROADCAST_LATENCY_NS",
"TARGET_REDUCE_LATENCY_NS",
"MAX_JITTER_NS",
"FEEDBACK_LATENCY_BUDGET_NS",
]