Skip to content

remove internal add_control#13177

Merged
alexanderivrii merged 5 commits intoQiskit:mainfrom
1ucian0:private/add_control/1
Mar 6, 2025
Merged

remove internal add_control#13177
alexanderivrii merged 5 commits intoQiskit:mainfrom
1ucian0:private/add_control/1

Conversation

@1ucian0
Copy link
Copy Markdown
Member

@1ucian0 1ucian0 commented Sep 18, 2024

@1ucian0 1ucian0 added the Changelog: None Do not include in the GitHub Release changelog. label Sep 18, 2024
@1ucian0 1ucian0 marked this pull request as ready for review September 18, 2024 11:31
@1ucian0 1ucian0 requested a review from a team as a code owner September 18, 2024 11:31
@qiskit-bot
Copy link
Copy Markdown
Collaborator

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

  • @Qiskit/terra-core

@jakelishman
Copy link
Copy Markdown
Member

I don't think we need to do this. It's not in the public interface, and I think changing its name like this risks suggesting that naming is what defines the public interface.

If we were going to do it, it'd probably be the module we renamed - the function itself is public within ourselves as a package (evidenced by how it's used in more than one file), and it's the module that's private to users.

@coveralls
Copy link
Copy Markdown

coveralls commented Sep 18, 2024

Pull Request Test Coverage Report for Build 13694788019

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 1305 unchanged lines in 39 files lost coverage.
  • Overall coverage increased (+0.4%) to 88.507%

Files with Coverage Reduction New Missed Lines %
qiskit/circuit/_classical_resource_map.py 1 76.62%
qiskit/circuit/commutation_checker.py 1 94.12%
qiskit/circuit/controlflow/_builder_utils.py 1 96.97%
qiskit/circuit/parameterexpression.py 1 97.35%
qiskit/circuit/parameter.py 1 96.72%
qiskit/compiler/transpiler.py 1 98.78%
qiskit/transpiler/passes/layout/apply_layout.py 1 96.67%
qiskit/transpiler/passes/optimization/contract_idle_wires_in_control_flow.py 1 98.04%
qiskit/passmanager/passmanager.py 2 94.32%
crates/circuit/src/converters.rs 4 95.83%
Totals Coverage Status
Change from base Build 13687776352: 0.4%
Covered Lines: 71839
Relevant Lines: 81168

💛 - Coveralls

@1ucian0

This comment was marked as outdated.

@1ucian0 1ucian0 added this to the 1.3.0 milestone Sep 29, 2024
@1ucian0 1ucian0 changed the title rename internal add_control to _add_control remove internal add_control Oct 5, 2024
@raynelfss raynelfss modified the milestones: 1.3.0, 2.0.0 Oct 29, 2024
@1ucian0 1ucian0 self-assigned this Feb 6, 2025
@1ucian0 1ucian0 force-pushed the private/add_control/1 branch from d889189 to 52e8811 Compare February 24, 2025 16:11
@1ucian0
Copy link
Copy Markdown
Member Author

1ucian0 commented Feb 24, 2025

I renamed the module (and simplified one of the tests so it does not import the private module).

Copy link
Copy Markdown
Member

@alexanderivrii alexanderivrii left a comment

Choose a reason for hiding this comment

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

LGTM (and I have double-checked that add_control is not mentioned anywhere else in the Qiskit code). Just a few minor comments about the release notes.

Comment thread releasenotes/notes/private-add_control-2367872c0f7136c4.yaml Outdated
Comment thread releasenotes/notes/private-add_control-2367872c0f7136c4.yaml Outdated
Copy link
Copy Markdown
Member

@alexanderivrii alexanderivrii left a comment

Choose a reason for hiding this comment

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

Thanks @jakelishman for improving the release note.

@alexanderivrii alexanderivrii enabled auto-merge March 6, 2025 09:02
@alexanderivrii alexanderivrii added this pull request to the merge queue Mar 6, 2025
Merged via the queue into Qiskit:main with commit 63445e9 Mar 6, 2025
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 the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants