Open gcc-bug opened 10 months ago
To convert Python code into C code, it is necessary to utilize the 'pybind' library along with 'xtensor-python'
Convert Python code to C++ using pybid
. Focus on exposing the following special types in C++:
Next Stage Task Description:
Current Issue
Plan for Next Week
Investigate the Bug
try
, except
, and logging (cout
) to locate the bug.Contingency Plan
Finalization and Release
I've implemented an export2Dot
function in tensor.to_tdd
. This method currently serves as a basic approach to utilize the draw function, though it is somewhat rudimentary. However, it effectively ensures the functionality of the code.
Additionally, I've identified a bug related to memory management. This issue seems to be linked with ComplexTable<>::Entry
, a complex struct in C++. Addressing this bug will require further work, specifically in exposing and effectively utilizing this struct to improve the draw function.
I have successfully implemented the functionality to convert multiple tensors to a TDD in one DD package. However, I have encountering a new bug: a segmentation fault
occurs when using tensornetwork.cont()
with multiple tensors.
Task: Code Refactoring and Python-to-C Conversion
Clean the Code
GateMatrix
with tensor in parsers.GateMatrix
.Build Python to C
pybid
.