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
e1396c5a
Commit
e1396c5a
authored
Sep 19, 2021
by
Omar
Browse files
fix: properly handle f64 block arguments in gate translation
fixes #220
parent
2c1660f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlir/parsers/qasm3/visitor_handlers/quantum_types_handler.cpp
View file @
e1396c5a
...
...
@@ -153,6 +153,10 @@ antlrcpp::Any qasm3_visitor::visitQuantumGateDefinition(
std
::
vector
<
mlir
::
Value
>
result_qubit_vals
;
for
(
auto
arg
:
entryBlock
.
getArguments
())
{
mlir
::
Value
last_user
=
arg
;
if
(
arg
.
getType
().
isF64
())
{
result_qubit_vals
.
push_back
(
arg
);
continue
;
}
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