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 parametrize_circuit function #73

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

garrison
Copy link
Member

@garrison garrison commented Feb 19, 2025

This function provides an alternative to generate_ansatz_from_circuit for the case in which the actual gates should be maintained, but values replaced with parameters.

  • Separate unrelated functions into two files
  • Add tests
  • Add demo?
  • Is this the best name? We could also consider renaming the existing generate_ansatz_from_circuit.
  • Release note

@coveralls
Copy link

Pull Request Test Coverage Report for Build 13419930685

Details

  • 1 of 17 (5.88%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-2.6%) to 95.497%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit_addon_aqc_tensor/ansatz_generation.py 1 17 5.88%
Files with Coverage Reduction New Missed Lines %
qiskit_addon_aqc_tensor/simulation/explicit_gradient.py 1 93.68%
Totals Coverage Status
Change from base Build 13144455771: -2.6%
Covered Lines: 615
Relevant Lines: 644

💛 - Coveralls

@garrison garrison added the enhancement New feature or request label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansatz generation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants