Skip to content

qBraid Algos v0.1 - #56

Merged
ryanhill1 merged 40 commits into
mainfrom
qft_iqft_bernvaz
Aug 15, 2025
Merged

qBraid Algos v0.1#56
ryanhill1 merged 40 commits into
mainfrom
qft_iqft_bernvaz

Conversation

@LukeAndreesen

@LukeAndreesen LukeAndreesen commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

Implementation of Bernstein-Vazirani, Quantum Fourier Transform, Inverse Quantum Fourier Transform, Quantum Phase Estimation - version 0.1 qBraid Algos

Addresses: #54 (comment)

  • Implemented load_program method for each algorithm, which takes user-defined parameters and returns a PyQASM module for the algorithm with the appropriate parameters.
  • Implemented generate_submodule method for each algorithm, which takes user-defined parameters and generates a .qasm file in the user's cwd with the algorithm as a subroutine, for use in custom circuits
    • Implemented a BernVaz-specific function generate_oracle which does the same as above, but for just a string-encoded oracle, rather than entire BernVaz circuit
  • Created Demo Jupyter notebooks for (I)QFT, BernVaz, QPE

@LukeAndreesen
LukeAndreesen marked this pull request as draft August 4, 2025 21:23
@LukeAndreesen LukeAndreesen changed the title Bernstein Vazirani & (Inverse) QFT qBraid Algos v0.1 Aug 14, 2025
@LukeAndreesen
LukeAndreesen marked this pull request as ready for review August 14, 2025 22:20
LukeAndreesen and others added 2 commits August 14, 2025 17:23
* format / structure updates

* fix mypy + test deps

* add missing qpe.qasm file
@codecov

codecov Bot commented Aug 15, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.41873% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
qbraid_algorithms/cli/generate.py 96.40% 5 Missing ⚠️
qbraid_algorithms/cli/main.py 81.81% 4 Missing ⚠️
qbraid_algorithms/qft/qft.py 93.54% 2 Missing ⚠️
qbraid_algorithms/bernstein_vazirani/bernvaz.py 98.03% 1 Missing ⚠️
qbraid_algorithms/iqft/iqft.py 96.77% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ryanhill1 ryanhill1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you write a couple tests for the CLI? Doesn't have to be full coverage, but just a couple to cover the main use case(s).

Comment thread bin/qbraid-algorithms Outdated
@ryanhill1
ryanhill1 merged commit c96f3f7 into main Aug 15, 2025
6 of 7 checks passed
@MTakahashi-KWH MTakahashi-KWH mentioned this pull request Aug 20, 2025
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants