Skip to content

Commit

Permalink
Correct leaf type for QVM TreeFactory::balancedTree
Browse files Browse the repository at this point in the history
Default leaf type was 0, but it should be 6 (spin)
  • Loading branch information
Contextualist committed Apr 16, 2024
1 parent 94aaf47 commit be7735a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/qvm/QVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void QVM::setTree(Tree& tree, const YAML::Node& node, const Register& reg) {

if (treetype == "binary") {
cout << "- Generate binary tree with " << n_qubit << " qubits.\n";
tree = TreeFactory::balancedTree(n_qubit, 2, dim);
tree = TreeFactory::balancedTree(n_qubit, 2, dim, 0, 6);
} else if (treetype == "train") {
tree = TreeFactory::unbalancedTree(n_qubit, 2, dim, 6);
} else if (treetype == "compact") {
Expand Down

0 comments on commit be7735a

Please sign in to comment.