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

rename internal add_control to _add_control #13177

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

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Sep 18, 2024

@1ucian0 1ucian0 added the Changelog: None Do not include in 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
Collaborator

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

  • @Qiskit/terra-core

@jakelishman
Copy link
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

coveralls commented Sep 18, 2024

Pull Request Test Coverage Report for Build 11092537542

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

  • 100 of 103 (97.09%) changed or added relevant lines in 1 file are covered.
  • 987 unchanged lines in 29 files lost coverage.
  • Overall coverage increased (+0.5%) to 88.851%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/circuit/gate.py 100 103 97.09%
Files with Coverage Reduction New Missed Lines %
qiskit/transpiler/passes/layout/disjoint_utils.py 1 96.83%
qiskit/pulse/instructions/directives.py 1 97.22%
qiskit/pulse/transforms/alignments.py 1 96.45%
crates/accelerate/src/two_qubit_decompose.rs 1 91.45%
qiskit/qasm3/init.py 1 95.0%
qiskit/circuit/library/pauli_evolution.py 2 96.15%
qiskit/transpiler/passes/synthesis/unitary_synthesis.py 2 88.26%
qiskit/primitives/containers/data_bin.py 2 96.36%
crates/circuit/src/imports.rs 2 77.78%
qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py 3 93.98%
Totals Coverage Status
Change from base Build 10919208944: 0.5%
Covered Lines: 74103
Relevant Lines: 83401

💛 - Coveralls

@1ucian0
Copy link
Member Author

1ucian0 commented Sep 29, 2024

I inlined/moved the code from qiskit/circuit/add_control.py to qiskit/circuit/gate.py. I assume refactoring the control thing makes little sense because oxidation, right? Otherwise, I can have a look on that in follow up PR.

@1ucian0 1ucian0 added this to the 1.3.0 milestone Sep 29, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants