Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
qcor
Commits
e6de61a0
Commit
e6de61a0
authored
Sep 20, 2021
by
Omar
Browse files
Style and comments
* Added explanatory comments * Pushed f64 to the top of the for loop body
parent
e1396c5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlir/parsers/qasm3/visitor_handlers/quantum_types_handler.cpp
View file @
e6de61a0
...
...
@@ -152,11 +152,13 @@ antlrcpp::Any qasm3_visitor::visitQuantumGateDefinition(
// from this custom gate definition
std
::
vector
<
mlir
::
Value
>
result_qubit_vals
;
for
(
auto
arg
:
entryBlock
.
getArguments
())
{
mlir
::
Value
last_user
=
arg
;
// check if argument is a gate param
if
(
arg
.
getType
().
isF64
())
{
result_qubit_vals
.
push_back
(
arg
);
// skip use chain traversal
continue
;
}
mlir
::
Value
last_user
=
arg
;
auto
users
=
last_user
.
getUsers
();
while
(
!
users
.
empty
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment