Skip to content

Conversation

joesho112358
Copy link
Contributor

Summary

Attempt to resolve #10880 Remove _name attribute of Parameter

Details and comments

Removed _name attribute from Parameter and made sure the currently implemented tests passed for the new implementation.

@joesho112358 joesho112358 requested a review from a team as a code owner April 16, 2024 16:24
@qiskit-bot qiskit-bot added the Community PR PRs from contributors that are not 'members' of the Qiskit repo label Apr 16, 2024
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@joesho112358 joesho112358 changed the title removing _name attribute from Parameter Removing _name attribute from Parameter Apr 16, 2024
@joesho112358 joesho112358 marked this pull request as draft April 16, 2024 16:24
@coveralls
Copy link

coveralls commented Apr 16, 2024

Pull Request Test Coverage Report for Build 9080731012

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.03%) to 89.637%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 5 91.6%
Totals Coverage Status
Change from base Build 9080271824: 0.03%
Covered Lines: 62310
Relevant Lines: 69514

💛 - Coveralls

@joesho112358 joesho112358 marked this pull request as ready for review April 16, 2024 19:46
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@1ucian0 1ucian0 added refactor Proposal to refactor code Changelog: None Do not include in changelog labels Apr 17, 2024
@1ucian0 1ucian0 self-assigned this Apr 17, 2024
@@ -165,10 +164,10 @@ def __hash__(self):
# operation attempts to put this parameter into a hashmap.

def __getstate__(self):
return (self._name, self._uuid, self._symbol_expr)
return (self._uuid, self._symbol_expr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change might affect code using picking. Would it be possible to keep the tuple shape the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, 1 moment- will fix, run the tests, and hopefully update with no problems

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be good for another look

Copy link
Member

@1ucian0 1ucian0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for taking care of this! Let's merge it!

@1ucian0 1ucian0 added this pull request to the merge queue Apr 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 24, 2024
@joesho112358
Copy link
Contributor Author

@1ucian0 sorry this one fell off my radar. not sure where it failed, but it is updated and might be good for another go

@mtreinish mtreinish added this pull request to the merge queue May 29, 2024
Merged via the queue into Qiskit:main with commit df37987 May 29, 2024
ElePT pushed a commit to ElePT/qiskit that referenced this pull request May 31, 2024
* removing _name attribute from Parameter

* lint fix for parameter update

* fix the __getstate__ structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog Community PR PRs from contributors that are not 'members' of the Qiskit repo refactor Proposal to refactor code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Remove _name attribute of Parameter
5 participants