Skip to content

Commit

Permalink
Replace C++ with C compiler in Cython
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjosegarciaripoll committed Jan 18, 2024
1 parent aa963b1 commit 119acc4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,5 @@ ipynb_output_filter

#
benchmark*.json
*.cpp
*.cpp
*.c
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"cdivision": True, # No exception on zero denominator
"initializedcheck": False, # We take care of initializing cdef classes and memory views
"overflowcheck": False,
"cpp_locals": True,
"binding": False,
}
if sys.platform == "linux":
Expand All @@ -51,7 +50,6 @@
Extension(
name,
[file],
language="c++",
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
extra_compile_args=extra_compile_args,
include_dirs=[np.get_include()],
Expand Down
1 change: 0 additions & 1 deletion src/seemps/state/core.pyx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
cimport numpy as cnp
from libc.math cimport sqrt
from libcpp cimport bool

MAX_BOND_DIMENSION = 0x7fffffff
"""Maximum bond dimension for any MPS."""
Expand Down

0 comments on commit 119acc4

Please sign in to comment.