File tree Expand file tree Collapse file tree
source/openpulse/openpulse Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515from typing import List , Optional , Union
1616
1717# Re-export the existing AST classes from openqasm3
18- # pylint: disable=unused-import
19- from openqasm3 .ast import *
18+ # This is everything _except_ CalibrationDefinition
19+ # and CalibrationStatement, which get redefined below.
20+ from openqasm3 .ast import (
21+ AccessControl ,
22+ AliasStatement ,
23+ AngleType ,
24+ Annotation ,
25+ ArrayLiteral ,
26+ ArrayReferenceType ,
27+ ArrayType ,
28+ AssignmentOperator ,
29+ BinaryExpression ,
30+ BinaryOperator ,
31+ BitType ,
32+ BitstringLiteral ,
33+ BoolType ,
34+ BooleanLiteral ,
35+ Box ,
36+ BranchingStatement ,
37+ BreakStatement ,
38+ CalibrationGrammarDeclaration ,
39+ Cast ,
40+ ClassicalArgument ,
41+ ClassicalAssignment ,
42+ ClassicalDeclaration ,
43+ ClassicalType ,
44+ ComplexType ,
45+ Concatenation ,
46+ ConstantDeclaration ,
47+ ContinueStatement ,
48+ DelayInstruction ,
49+ DiscreteSet ,
50+ DurationLiteral ,
51+ DurationOf ,
52+ DurationType ,
53+ EndStatement ,
54+ Expression ,
55+ ExpressionStatement ,
56+ ExternArgument ,
57+ ExternDeclaration ,
58+ FloatLiteral ,
59+ FloatType ,
60+ ForInLoop ,
61+ FunctionCall ,
62+ GateModifierName ,
63+ IODeclaration ,
64+ IOKeyword ,
65+ Identifier ,
66+ ImaginaryLiteral ,
67+ Include ,
68+ IndexExpression ,
69+ IndexedIdentifier ,
70+ IntType ,
71+ IntegerLiteral ,
72+ Pragma ,
73+ Program ,
74+ QASMNode ,
75+ QuantumArgument ,
76+ QuantumBarrier ,
77+ QuantumGate ,
78+ QuantumGateDefinition ,
79+ QuantumGateModifier ,
80+ QuantumMeasurement ,
81+ QuantumMeasurementStatement ,
82+ QuantumPhase ,
83+ QuantumReset ,
84+ QuantumStatement ,
85+ QubitDeclaration ,
86+ RangeDefinition ,
87+ ReturnStatement ,
88+ SizeOf ,
89+ Span ,
90+ Statement ,
91+ SwitchStatement ,
92+ CompoundStatement ,
93+ StretchType ,
94+ SubroutineDefinition ,
95+ TimeUnit ,
96+ UintType ,
97+ UnaryExpression ,
98+ UnaryOperator ,
99+ WhileLoop ,
100+ )
20101
21102
22103# From Pulse grammar
@@ -94,3 +175,92 @@ class CalibrationDefinition(Statement):
94175 qubits : List [Identifier ]
95176 return_type : Optional [ClassicalType ]
96177 body : List [Statement ]
178+
179+
180+ __all__ = [
181+ "AccessControl" ,
182+ "AliasStatement" ,
183+ "AngleType" ,
184+ "Annotation" ,
185+ "ArrayLiteral" ,
186+ "ArrayReferenceType" ,
187+ "ArrayType" ,
188+ "AssignmentOperator" ,
189+ "BinaryExpression" ,
190+ "BinaryOperator" ,
191+ "BitType" ,
192+ "BitstringLiteral" ,
193+ "BoolType" ,
194+ "BooleanLiteral" ,
195+ "Box" ,
196+ "BranchingStatement" ,
197+ "BreakStatement" ,
198+ "CalibrationBlock" ,
199+ "CalibrationDefinition" ,
200+ "CalibrationGrammarDeclaration" ,
201+ "CalibrationStatement" ,
202+ "Cast" ,
203+ "ClassicalArgument" ,
204+ "ClassicalAssignment" ,
205+ "ClassicalDeclaration" ,
206+ "ClassicalType" ,
207+ "ComplexType" ,
208+ "Concatenation" ,
209+ "ConstantDeclaration" ,
210+ "ContinueStatement" ,
211+ "DelayInstruction" ,
212+ "DiscreteSet" ,
213+ "DurationLiteral" ,
214+ "DurationOf" ,
215+ "DurationType" ,
216+ "EndStatement" ,
217+ "Expression" ,
218+ "ExpressionStatement" ,
219+ "ExternArgument" ,
220+ "ExternDeclaration" ,
221+ "FloatLiteral" ,
222+ "FloatType" ,
223+ "ForInLoop" ,
224+ "FrameType" ,
225+ "FunctionCall" ,
226+ "GateModifierName" ,
227+ "IODeclaration" ,
228+ "IOKeyword" ,
229+ "Identifier" ,
230+ "ImaginaryLiteral" ,
231+ "Include" ,
232+ "IndexExpression" ,
233+ "IndexedIdentifier" ,
234+ "IntType" ,
235+ "IntegerLiteral" ,
236+ "PortType" ,
237+ "Pragma" ,
238+ "Program" ,
239+ "QASMNode" ,
240+ "QuantumArgument" ,
241+ "QuantumBarrier" ,
242+ "QuantumGate" ,
243+ "QuantumGateDefinition" ,
244+ "QuantumGateModifier" ,
245+ "QuantumMeasurement" ,
246+ "QuantumMeasurementStatement" ,
247+ "QuantumPhase" ,
248+ "QuantumReset" ,
249+ "QuantumStatement" ,
250+ "QubitDeclaration" ,
251+ "RangeDefinition" ,
252+ "ReturnStatement" ,
253+ "SizeOf" ,
254+ "Span" ,
255+ "Statement" ,
256+ "SwitchStatement" ,
257+ "CompoundStatement" ,
258+ "StretchType" ,
259+ "SubroutineDefinition" ,
260+ "TimeUnit" ,
261+ "UintType" ,
262+ "UnaryExpression" ,
263+ "UnaryOperator" ,
264+ "WaveformType" ,
265+ "WhileLoop" ,
266+ ]
You can’t perform that action at this time.
0 commit comments