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

Add parameters property function to BaseCircuit class #303

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

Conversation

adrianusler
Copy link
Contributor

@adrianusler adrianusler commented Aug 16, 2024

In issue #285, a user was looking for a way to obtain the circuit model parameters as an array. The suggested workaround of accessing the parameters_ attribute directly is not very elegant since it is a private parameter. To circumvent this, I have added a property routine to the BaseCircuit class, so one can now access the model parameters with

parameters = <circuit object>.parameters

I would argue that this closes #285.

@mdmurbach mdmurbach self-assigned this Aug 27, 2024
@coveralls
Copy link

coveralls commented Sep 23, 2024

Pull Request Test Coverage Report for Build 10994619609

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.883%

Totals Coverage Status
Change from base Build 10823700912: 0.0%
Covered Lines: 857
Relevant Lines: 858

💛 - Coveralls

@adrianusler
Copy link
Contributor Author

I believe this is ready to merge, @mdmurbach.

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.

Ask for help extracting parameter values from fitted circuits
3 participants