Skip to content

Commit 947bba7

Browse files
committed
remove superfluous tensorize method
1 parent 937086b commit 947bba7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/circuit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void cleanup(void* data) noexcept {
417417
}
418418

419419

420-
std::pair<Arrays, Arrays> Circuit::tensorize() {
420+
std::pair<Arrays, Arrays> Circuit::get_indices() {
421421
remove_unused_nodes();
422422
add_root_layer();
423423
//print_circuit(); // Helpful for debugging small circuits

src/circuit.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ class Circuit {
166166
*/
167167
void remove_unused_nodes();
168168

169-
inline std::pair<Arrays, Arrays> get_indices() { return tensorize(); }
170-
171-
std::pair<Arrays, Arrays> tensorize();
169+
std::pair<Arrays, Arrays> get_indices();
172170

173171
/**
174172
* Number of nodes in the whole circuit.

0 commit comments

Comments
 (0)