-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Use symengine for parameter and parameter expressions #6270
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
15faabb
Use symengine for parameter and parameter expressions
mtreinish b5c9bdb
Merge branch 'main' into use-symengine
mtreinish a6b6a8e
Add pickle support
mtreinish b7bef71
Merge branch 'use-symengine' of github.com:mtreinish/qiskit-core into…
mtreinish f95143b
Pickle fixes
mtreinish 6ffbefd
Merge branch 'main' into use-symengine
mtreinish 6efeea7
Convert to sympy expression for eq and str
mtreinish 01383ed
Fix lint
mtreinish c3b6875
Fix vector pickle
mtreinish 618dd49
Avoid runtime import for symengine
mtreinish 6169c9d
Fix test failures due to precision differences
mtreinish 2ad468c
Merge branch 'main' into use-symengine
mtreinish 6a64a6a
More fixes from subtle behavior differences
mtreinish 7bd6ce8
Merge branch 'use-symengine' of github.com:mtreinish/qiskit-core into…
mtreinish d73739d
Fix some of the gradient failures
mtreinish 95eecad
Fix failure in sympy fallback path
mtreinish 4cd6d7a
Fix gradient tests
mtreinish 7077fd6
Adjust complex check logic
mtreinish f0c5142
Fix lint
mtreinish f57be79
Workaround pulse failure
mtreinish 8cb1331
Merge branch 'main' into use-symengine
mtreinish ae7d19a
Adjust failing test to use np allclose
mtreinish 89df1e9
Merge branch 'main' into use-symengine
mtreinish 1fe5ddf
Add release note
mtreinish efdd964
Add is_real method to parameterexpression
mtreinish 25f9c9a
Merge branch 'main' into use-symengine
mtreinish 5c14d37
Merge remote-tracking branch 'origin/main' into use-symengine
mtreinish fa77157
Run black post-rebase
mtreinish 3b4c5ec
Remove symengine/sympy usage from gradients tests
mtreinish d193f29
Remove unused import
mtreinish 98f1130
Fix Delay instruction's new validate is_real check
mtreinish a872706
Merge branch 'main' into use-symengine
mtreinish 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| upgrade: | ||
| - | | ||
| A new requirement `symengine <https://pypi.org/project/symengine>`__ has | ||
| been added for Linux (on x86_64, aarch64, and ppc64le) and macOS users | ||
| (x86_64 and arm64). It is an optional dependency on Windows (and available | ||
| on PyPi as a precompiled package for 64bit Windows) and other | ||
| architectures. If it is installed it provides significantly improved | ||
| performance for the evaluation of :class:`~qiskit.circuit.Parameter` and | ||
| :class:`~qiskit.circuit.ParameterExpression` objects. |
This file contains hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.