Skip to content
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

[WIP] Add ParameterExpression in Rust #13278

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

doichanj
Copy link
Contributor

@doichanj doichanj commented Oct 4, 2024

Summary

This is draft of ParameterExpression in Rust for #13267

Details and comments

I made symbolic algebra engine instead of using symengine to remove dependencies of conan.
The functionalities are limited compared to symengine but I'm implementing enough functions for ParameterExpression

[TO DOs]

  • Add python interface maybe in other structure like ParameterPy to keep Parameter structure independent from Python
  • Add complex number support (is it necessary ?)
  • Add missing functions
  • Add more heuristics to simplify equation
  • Add simplification of equation
  • Add test cases and documentation

@doichanj doichanj requested a review from a team as a code owner October 4, 2024 10:07
@qiskit-bot
Copy link
Collaborator

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11738917853

Details

  • 0 of 723 (0.0%) changed or added relevant lines in 3 files are covered.
  • 7 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.7%) to 88.212%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/circuit/src/symbol_parser.rs 0 174 0.0%
crates/circuit/src/parameter.rs 0 175 0.0%
crates/circuit/src/symbol_expr.rs 0 374 0.0%
Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/unitary_synthesis.rs 1 92.2%
crates/qasm2/src/expr.rs 1 94.02%
crates/qasm2/src/lex.rs 5 91.48%
Totals Coverage Status
Change from base Build 11734141039: -0.7%
Covered Lines: 79064
Relevant Lines: 89630

💛 - Coveralls

@mtreinish
Copy link
Member

Add complex number support (is it necessary ?)

@Cryoris can confirm, but I think on main we don't have to worry about this for 2.0 since we're dropping pulse support. AFAIK the complex parameter binding and handling was only necessary for pulse expressions. But maybe there is a use case I'm overlooking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants