|
1 | 1 | import dataclasses |
2 | 2 |
|
3 | 3 | import pytest |
4 | | -from openpulse.ast import (AngleType, Annotation, ArrayLiteral, ArrayType, |
5 | | - AssignmentOperator, CalibrationDefinition, |
6 | | - CalibrationStatement, ClassicalArgument, |
7 | | - ClassicalAssignment, ClassicalDeclaration, |
8 | | - ComplexType, DurationType, ExpressionStatement, |
9 | | - ExternArgument, ExternDeclaration, FloatLiteral, |
10 | | - FloatType, ForInLoop, FrameType, FunctionCall, |
11 | | - Identifier, IntegerLiteral, IntType, PortType, |
12 | | - Pragma, Program, QASMNode, QuantumBarrier, |
13 | | - RangeDefinition, ReturnStatement, UnaryExpression, |
14 | | - UnaryOperator, WaveformType) |
| 4 | +from openpulse.ast import ( |
| 5 | + AngleType, |
| 6 | + Annotation, |
| 7 | + ArrayLiteral, |
| 8 | + ArrayType, |
| 9 | + AssignmentOperator, |
| 10 | + CalibrationDefinition, |
| 11 | + CalibrationStatement, |
| 12 | + ClassicalArgument, |
| 13 | + ClassicalAssignment, |
| 14 | + ClassicalDeclaration, |
| 15 | + ComplexType, |
| 16 | + DurationType, |
| 17 | + ExpressionStatement, |
| 18 | + ExternArgument, |
| 19 | + ExternDeclaration, |
| 20 | + FloatLiteral, |
| 21 | + FloatType, |
| 22 | + ForInLoop, |
| 23 | + FrameType, |
| 24 | + FunctionCall, |
| 25 | + Identifier, |
| 26 | + IntegerLiteral, |
| 27 | + IntType, |
| 28 | + PortType, |
| 29 | + Pragma, |
| 30 | + Program, |
| 31 | + QASMNode, |
| 32 | + QuantumBarrier, |
| 33 | + RangeDefinition, |
| 34 | + ReturnStatement, |
| 35 | + UnaryExpression, |
| 36 | + UnaryOperator, |
| 37 | + WaveformType, |
| 38 | +) |
15 | 39 | from openpulse.parser import parse |
16 | 40 | from openqasm3.visitor import QASMVisitor |
17 | 41 |
|
|
0 commit comments