Skip to content

More quantum circuit library refactoring#13353

Merged
Cryoris merged 20 commits intoQiskit:mainfrom
alexanderivrii:finalize_modernize
Nov 4, 2024
Merged

More quantum circuit library refactoring#13353
Cryoris merged 20 commits intoQiskit:mainfrom
alexanderivrii:finalize_modernize

Conversation

@alexanderivrii
Copy link
Copy Markdown
Member

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
Copy Markdown
Collaborator

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

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

Copy link
Copy Markdown
Collaborator

@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.

Comment thread qiskit/circuit/library/fourier_checking.py Outdated
Comment thread qiskit/circuit/library/graph_state.py
Comment thread qiskit/circuit/library/graph_state.py
Comment thread qiskit/circuit/library/hidden_linear_function.py Outdated
Comment thread qiskit/circuit/library/overlap.py
Comment thread qiskit/circuit/library/phase_estimation.py
@coveralls
Copy link
Copy Markdown

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
Copy Markdown
Member 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.

Comment thread test/python/circuit/library/test_phase_estimation.py Outdated
Comment thread qiskit/circuit/library/fourier_checking.py Outdated
Copy link
Copy Markdown
Collaborator

@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
@ShellyGarion ShellyGarion added the Changelog: Added Add an "Added" entry in the GitHub Release 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: Added Add an "Added" entry in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants