Skip to content

Commit

Permalink
Merge pull request #123 from XanaduAI/better_c_calls
Browse files Browse the repository at this point in the history
Expose C++ arrays to Python without data copying
  • Loading branch information
nquesada authored Jan 17, 2020
2 parents f74b5b9 + 6c74ccb commit 9fcb7a3
Show file tree
Hide file tree
Showing 9 changed files with 846 additions and 25,304 deletions.
4 changes: 4 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

* Updates and improves the speed and accuracy of `thewalrus.quantum.fock_tensor`. [#107](https://github.com/XanaduAI/thewalrus/pull/107)

* Improves speed of the functions in `hermite_multidimensional.hpp`. [#123](https://github.com/XanaduAI/thewalrus/pull/123)

* Improves speed of the functions in `thewalrus.fock_gradients` by doing calls to optimized functions in `hermite_multidimensional.hpp`. [#123](https://github.com/XanaduAI/thewalrus/pull/123)

### Bug fixes

* Corrects typos in the random number generation in the C++ unit tests. [#118](https://github.com/XanaduAI/thewalrus/pull/118)
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ docs/libwalrus_cpp_api/*
docs/.ipynb_checkpoints/*
coverage.xml
docs/code/api/*
thewalrus/libwalrus.cpp
6 changes: 6 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,11 @@ example.o: example.cpp
example-cpp: example.o
$(CC) $^ $(LFLAGS) -o $@

example_hermite.o: example_hermite.cpp
$(CC) $^ $(CFLAGS) -c

example_hermite.out: example_hermite.o
$(CC) $^ $(LFLAGS) -o $@

clean:
rm -rf *~ *.out *.o *.so *.pyc *.mod
Loading

0 comments on commit 9fcb7a3

Please sign in to comment.