We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e661759 commit 0e6105cCopy full SHA for 0e6105c
include/mqt-core/ir/QuantumComputation.hpp
@@ -105,9 +105,11 @@ class QuantumComputation {
105
[[nodiscard]] const std::vector<bool>& getAncillary() const noexcept {
106
return ancillary;
107
}
108
+ [[nodiscard]] std::vector<bool>& getAncillary() noexcept { return ancillary; }
109
[[nodiscard]] const std::vector<bool>& getGarbage() const noexcept {
110
return garbage;
111
112
+ [[nodiscard]] std::vector<bool>& getGarbage() noexcept { return garbage; }
113
[[nodiscard]] std::size_t getNcbits() const noexcept { return nclassics; }
114
[[nodiscard]] std::string getName() const noexcept { return name; }
115
[[nodiscard]] const auto& getQuantumRegisters() const noexcept {
0 commit comments