Commit 63924249 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

support range for loop for qreg

Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <>
parent 5f3f94d4
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment