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
63924249
Commit
63924249
authored
Sep 22, 2021
by
Mccaskey, Alex
Browse files
support range for loop for qreg
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
5f3f94d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
runtime/qrt/internal_compiler/qalloc.hpp
View file @
63924249
...
...
@@ -109,6 +109,8 @@ public:
qreg
(
const
int
n
);
qreg
(
const
qreg
&
other
);
qreg
(
std
::
vector
<
qubit
>
&
qubits
);
auto
begin
()
{
return
internal_qubits
.
begin
();
}
auto
end
()
{
return
internal_qubits
.
end
();
}
qubit
operator
[](
const
std
::
size_t
i
);
qreg
extract_range
(
const
std
::
size_t
&
start
,
const
std
::
size_t
&
end
);
qreg
extract_range
(
const
Range
&&
range
);
...
...
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