Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
78e5ec8
Add visualization library to CMake build
noajshu Aug 11, 2025
482cb81
Merge pull request #36 from noajshu/codex/update-cmakelists-to-includ…
noajshu Aug 11, 2025
106ce02
Merge branch 'main' into main
noajshu Aug 12, 2025
b4c9d08
Merge remote-tracking branch 'quantum/main'
noajshu Aug 12, 2025
5c211bc
Fix CMake Python module placement and add agent instructions
noajshu Aug 13, 2025
d93e31d
Merge pull request #37 from noajshu/codex/add-agents.md-documentation…
noajshu Aug 13, 2025
7c10268
Allow decode_to_errors to accept bitstring
noajshu Aug 20, 2025
8a27808
Merge pull request #38 from noajshu/codex/update-decode_to_errors-to-…
noajshu Aug 20, 2025
1e52d57
Merge branch 'quantumlib:main' into main
noajshu Aug 20, 2025
c34dd80
clang-format
noajshu Aug 20, 2025
24c0d69
Update src/tesseract.pybind.h
noajshu Aug 20, 2025
96849b6
remove stringstream
noajshu Aug 20, 2025
3d486b0
more fixes
noajshu Aug 20, 2025
20e506d
Merge remote-tracking branch 'quantum'
noajshu Aug 29, 2025
61867e2
Handle explicit DetIndex case
noajshu Aug 29, 2025
a3e2663
Merge pull request #39 from noajshu/codex/create-detorder-enum-and-up…
noajshu Aug 29, 2025
7309377
Merge remote-tracking branch 'quantum'
noajshu Aug 29, 2025
454521f
expand det index test
noajshu Aug 29, 2025
18b12cd
Merge pull request #40 from noajshu/codex/refactor-test_build_det_ord…
noajshu Aug 29, 2025
41f7c3e
update beam climbing for when det orders > beam+1
noajshu Aug 29, 2025
e9a0774
Merge remote-tracking branch 'origin'
noajshu Aug 29, 2025
bead3cf
Merge remote-tracking branch 'quantum'
noajshu Aug 30, 2025
2d60fe9
Merge remote-tracking branch 'quantum'
noajshu Aug 31, 2025
2dd71a1
Merge branch 'main' of https://github.com/quantumlib/tesseract-decoder
noajshu Aug 31, 2025
b3e06d3
refactor(python): Remove Node struct from pybind API
noajshu Aug 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/py/tesseract_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
)


def test_create_node():
node = tesseract_decoder.tesseract.Node(errors=[1, 0])
assert node.errors == [1, 0]



def test_create_tesseract_config():
Expand Down
26 changes: 1 addition & 25 deletions src/tesseract.pybind.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,31 +199,7 @@ void add_tesseract_module(py::module& root) {
`TesseractConfig` object.
)pbdoc");

py::class_<Node>(m, "Node", R"pbdoc(
A class representing a node in the Tesseract search graph.

This is used internally by the decoder to track decoding progress.
)pbdoc")
.def(py::init<double, size_t, std::vector<size_t>>(), py::arg("cost") = 0.0,
py::arg("num_dets") = 0, py::arg("errors") = std::vector<size_t>(), R"pbdoc(
The constructor for the `Node` class.

Parameters
----------
cost : float, default=0.0
The cost of the path to this node.
num_dets : int, default=0
The number of detectors this search node has.
errors : list[int], default=empty
The list of error indices this search node has.
)pbdoc")
.def_readwrite("cost", &Node::cost, "The cost of the node.")
.def_readwrite("num_dets", &Node::num_dets, "The number of detectors this search node has.")
.def_readwrite("errors", &Node::errors, "The list of error indices this search node has.")
.def(py::self > py::self,
"Comparison operator for nodes based on cost. This is necessary to prioritize "
"lower-cost nodes during the search.")
.def("__str__", &Node::str);


py::class_<TesseractDecoder>(m, "TesseractDecoder", R"pbdoc(
A class that implements the Tesseract decoding algorithm.
Expand Down
Loading