-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47184a0
commit d314d80
Showing
7 changed files
with
764 additions
and
631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Copyright (C) 2024 qBraid | ||
# | ||
# This file is part of the qBraid-SDK | ||
# | ||
# The qBraid-SDK is free software released under the GNU General Public License v3 | ||
# or later. You can redistribute and/or modify it under the terms of the GPL v3. | ||
# See the LICENSE file in the project root or <https://www.gnu.org/licenses/gpl-3.0.html>. | ||
# | ||
# THERE IS NO WARRANTY for the qBraid-SDK, as per Section 15 of the GPL v3. | ||
|
||
""" | ||
Module defining Qasm3 imports. | ||
""" | ||
|
||
from openqasm3.ast import ( | ||
AliasStatement, | ||
ArrayLiteral, | ||
ArrayType, | ||
BinaryExpression, | ||
BooleanLiteral, | ||
BoolType, | ||
BranchingStatement, | ||
ClassicalArgument, | ||
ClassicalAssignment, | ||
ClassicalDeclaration, | ||
ConstantDeclaration, | ||
DiscreteSet, | ||
DurationLiteral, | ||
ExpressionStatement, | ||
FloatLiteral, | ||
) | ||
from openqasm3.ast import FloatType as Qasm3FloatType | ||
from openqasm3.ast import ( | ||
ForInLoop, | ||
FunctionCall, | ||
GateModifierName, | ||
Identifier, | ||
ImaginaryLiteral, | ||
Include, | ||
IndexedIdentifier, | ||
IndexExpression, | ||
IntegerLiteral, | ||
) | ||
from openqasm3.ast import IntType as Qasm3IntType | ||
from openqasm3.ast import ( | ||
IODeclaration, | ||
QuantumBarrier, | ||
QuantumGate, | ||
QuantumGateDefinition, | ||
QuantumGateModifier, | ||
QuantumMeasurementStatement, | ||
QuantumReset, | ||
QubitDeclaration, | ||
RangeDefinition, | ||
ReturnStatement, | ||
Statement, | ||
SubroutineDefinition, | ||
SwitchStatement, | ||
UnaryExpression, | ||
WhileLoop, | ||
) | ||
|
||
__all__ = [ | ||
"AliasStatement", | ||
"ArrayLiteral", | ||
"ArrayType", | ||
"BinaryExpression", | ||
"BooleanLiteral", | ||
"BoolType", | ||
"BranchingStatement", | ||
"ClassicalArgument", | ||
"ClassicalAssignment", | ||
"ClassicalDeclaration", | ||
"ConstantDeclaration", | ||
"DiscreteSet", | ||
"DurationLiteral", | ||
"ExpressionStatement", | ||
"FloatLiteral", | ||
"Qasm3FloatType", | ||
"ForInLoop", | ||
"FunctionCall", | ||
"GateModifierName", | ||
"Identifier", | ||
"ImaginaryLiteral", | ||
"Include", | ||
"IndexedIdentifier", | ||
"IndexExpression", | ||
"IntegerLiteral", | ||
"Qasm3IntType", | ||
"IODeclaration", | ||
"QuantumBarrier", | ||
"QuantumGate", | ||
"QuantumGateDefinition", | ||
"QuantumGateModifier", | ||
"QuantumMeasurementStatement", | ||
"QuantumReset", | ||
"QubitDeclaration", | ||
"RangeDefinition", | ||
"ReturnStatement", | ||
"Statement", | ||
"SubroutineDefinition", | ||
"SwitchStatement", | ||
"UnaryExpression", | ||
"WhileLoop", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.