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

More quantum circuit library refactoring #13353

Merged
merged 20 commits into from
Nov 4, 2024

Conversation

alexanderivrii
Copy link
Contributor

Summary

As a part of circuit library refactoring #13046, more quantum circuits now have their "modern" variants,
either as gates or as synthesis methods.

This PR adds:

  • GraphState -> GraphStateGate
  • FourierChecking -> fourier_checking(...)
  • UnitaryOverlap -> unitary_overlap(...)
  • HiddenLinearFunction -> hidden_linear_function(...)
  • PhaseEstimation -> phase_estimation(...)

Details and comments

For now these are all in Python.

@alexanderivrii alexanderivrii added this to the 1.3.0 milestone Oct 22, 2024
@alexanderivrii alexanderivrii requested a review from a team as a code owner October 22, 2024 15:09
@qiskit-bot
Copy link
Collaborator

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

  • @Cryoris
  • @Qiskit/terra-core
  • @ajavadia

Copy link
Contributor

@Cryoris Cryoris left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for taking care of these! I left some minor comments below.

qiskit/circuit/library/fourier_checking.py Outdated Show resolved Hide resolved
qiskit/circuit/library/graph_state.py Outdated Show resolved Hide resolved
qiskit/circuit/library/graph_state.py Show resolved Hide resolved
qiskit/circuit/library/hidden_linear_function.py Outdated Show resolved Hide resolved
qiskit/circuit/library/overlap.py Show resolved Hide resolved
qiskit/circuit/library/phase_estimation.py Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Oct 22, 2024

Pull Request Test Coverage Report for Build 11661267084

Details

  • 108 of 108 (100.0%) changed or added relevant lines in 6 files are covered.
  • 5 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.04%) to 88.755%

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/unitary_synthesis.rs 1 92.2%
crates/qasm2/src/expr.rs 1 94.02%
crates/accelerate/src/two_qubit_decompose.rs 1 92.09%
crates/qasm2/src/lex.rs 2 92.48%
Totals Coverage Status
Change from base Build 11636461507: 0.04%
Covered Lines: 76500
Relevant Lines: 86192

💛 - Coveralls

@jakelishman jakelishman changed the title More quantum circuit refactoring More quantum circuit library refactoring Nov 3, 2024
@alexanderivrii
Copy link
Contributor Author

Thanks @Cryoris, I have addressed the suggestions from the code review, and also added some missing tests, and added the functions to the API as in the other PRs.

Copy link
Contributor

@Cryoris Cryoris left a comment

Choose a reason for hiding this comment

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

Looks great, thank you! 🙂

@Cryoris Cryoris added this pull request to the merge queue Nov 4, 2024
Merged via the queue into Qiskit:main with commit 92692a2 Nov 4, 2024
17 checks passed
@ShellyGarion ShellyGarion added the Changelog: New Feature Include in the "Added" section of the changelog label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: New Feature Include in the "Added" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants