-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR #2683 Follow up #2705
Open
sacpis
wants to merge
92
commits into
NVIDIA:main
Choose a base branch
from
sacpis:dynamics_cpp_follow_up
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
PR #2683 Follow up #2705
Changes from all commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
59b584f
Adding cpp integration for dynamics
sacpis b026c91
Adding missing file dynamics_async_tester
sacpis b7e7c3d
Checking if vector has any value in methods with optional return type
sacpis bef5286
Removing optional, fixing unittests
sacpis b90619b
Adding internal check change
sacpis 88b3f48
Fixing spell check
sacpis 24d867a
Adding examples
sacpis a672149
Fixing spelling
sacpis b083add
Adding a descriptive message
sacpis 3a33622
Update runtime/common/EvolveResult.h
sacpis ad9d6f7
Formatting
sacpis 82e693f
removing rydberg test
sacpis 61f3a64
Removing unwanted check for --target for Python version
sacpis 24308de
Removing std::move from the return statement to allow the compiler to…
sacpis cba0881
Excluding *.cpp files from dynamics
sacpis da4fe7d
Passing the states as const &
sacpis fb71004
Including cudensitymat dir as public
sacpis 8c4ad6f
Fix DynamicsAsyncTester
1tnguyen 6113d40
Inclduing public CUDA toolkit directory
sacpis 145c055
Adding cublas for test_dynamics
sacpis 5044fb9
Adding cutensorlib
sacpis 30e2914
Adding a default constructor for the Schedule class which takes in ve…
sacpis 1d0e714
Updating comments
sacpis a616205
Adding cublas and cutensor
sacpis 50abd23
changing cudart_static to cudart to avoid linking libnvqir-dynamics t…
sacpis bdf8d44
Adding cpp integration for dynamics
sacpis b28fffb
Adding missing file dynamics_async_tester
sacpis df06f9f
Checking if vector has any value in methods with optional return type
sacpis 770e35c
Removing optional, fixing unittests
sacpis b09ffe7
Adding internal check change
sacpis 28c0e87
Fixing spell check
sacpis cd84ebd
Adding examples
sacpis 1b83722
Fixing spelling
sacpis 9ab74b8
Adding a descriptive message
sacpis 7eb8a03
Update runtime/common/EvolveResult.h
sacpis 14b12a4
Formatting
sacpis e086582
removing rydberg test
sacpis f5ca416
Removing unwanted check for --target for Python version
sacpis 1ed0765
Removing std::move from the return statement to allow the compiler to…
sacpis 3ccc8ca
Excluding *.cpp files from dynamics
sacpis c699d8b
Passing the states as const &
sacpis 6137ff6
Including cudensitymat dir as public
sacpis 260acc5
Fix DynamicsAsyncTester
1tnguyen 0bf04c5
Inclduing public CUDA toolkit directory
sacpis 3a401bd
Adding cublas for test_dynamics
sacpis cfd627f
Adding cutensorlib
sacpis 3a596c2
Adding a default constructor for the Schedule class which takes in ve…
sacpis c05e272
Updating comments
sacpis 7580bad
Adding cublas and cutensor
sacpis 58f29c0
changing cudart_static to cudart to avoid linking libnvqir-dynamics t…
sacpis 4759ed7
Skipping libnvqir-dynamics validation as one of its dependencies cont…
sacpis de10c30
Merge branch 'dynamics_cpp_integration' of github.com:sacpis/cuda-qua…
1tnguyen bf34576
Code refactor according to spec
1tnguyen 4c8fdde
Merge branch 'main' into dynamics_cpp_integration
sacpis 6f7a413
Accepting cudaq::dimensions_map instead of std::map
sacpis 9e32b5f
Merge remote-tracking branch 'origin/dynamics_cpp_integration' into d…
sacpis b5b91ba
Fix integrator class according to spec review: snake case for public …
1tnguyen 5c6e2b6
* Updating the evolve API signature using concepts (requires clause) to
sacpis 94bb9e4
Formatting
sacpis 3c299fe
Merge branch 'main' into dynamics_cpp_integration
sacpis 6015f4c
Updating type of additional value in the comment
sacpis 37749ca
Adding type constraint for remaining evolve APIs
sacpis 7b0acff
Refactor runge_kutta
1tnguyen 8367d9f
Add gpu_required label to dynamics C++ tests
1tnguyen 0b8c5ee
* Making Schedule class name snake case
sacpis be2d763
Fixing parameter type
sacpis 04b32e2
Merge remote-tracking branch 'origin/dynamics_cpp_integration' into d…
sacpis a6fa8e3
Fixing path to exclude
sacpis 894f363
Merge branch 'main' into dynamics_cpp_integration
sacpis 1ddee3c
Adding SFINAE for evolve API
sacpis 90faa72
Merge branch 'main' into dynamics_cpp_integration
sacpis ed58c02
Keeping the return value as optional for evolve_result
sacpis 63d0f4a
Merge remote-tracking branch 'origin/dynamics_cpp_integration' into d…
sacpis 9bbb3bb
Checking for C++ version to use requires or std::enable_if_t
sacpis 2452c51
Implementing feedback
sacpis 2b793ab
* Updating template constarint for C++20
sacpis bcdcf52
Merge branch 'main' into dynamics_cpp_integration
sacpis 07a5137
* Removing cpp dynamics examples from the exclusion list
sacpis 1503b9b
* Removing getters as per the spec for dynamics
sacpis f9d3f15
Enabling dynamics tests for validation
sacpis 1e77767
Merge remote-tracking branch 'origin/dynamics_cpp_integration' into d…
sacpis b0ff238
Fixing the filter for dynamics tests
sacpis cadf07b
Merge branch 'main' into dynamics_cpp_follow_up
sacpis b4445b5
Fixing syntax error
sacpis 94ac594
adding bracket to use ||
sacpis 5d9e7a4
Adding credits for CUDA helpers methods
sacpis 27d11f5
Merge branch 'main' into dynamics_cpp_follow_up
sacpis bb09f6a
Skipping dynamics examples for non-dynamics targets
sacpis f9b9407
Fixing syntax
sacpis b1b25e0
* Fixed validation script to allow dynamics examples in publishing
sacpis 5a82cbe
Merge branch 'main' into dynamics_cpp_follow_up
sacpis f1420d2
Merge branch 'main' into dynamics_cpp_follow_up
sacpis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we match the spec here? Basically remove the intermediate / final distinction for state and expectation values and initialize everything to
std::nullopt
.https://gitlab-master.nvidia.com/cuda-quantum/cudaq-spec/-/merge_requests/20/diffs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a QQ. Does this mean cleaning up Python version as well?
https://github.com/NVIDIA/cuda-quantum/blob/main/python/runtime/common/py_EvolveResult.cpp#L43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will have to change the Python dynamics version as well? Seems like right now evolve is kind of dependent on evolve_internal.
Can we make this change in the next release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to keep the Python API as is, juggling the binding methods. If it's more work than that, I agree, we shouldn't do it now.
This changes the public-facing api for evolve, so it's harder to change in next release.