Skip to content

Add algorithm circuit examples#679

Merged
SoufiTNO merged 3 commits into
QuTech-Delft:developfrom
SoufiTNO:develop
Apr 20, 2026
Merged

Add algorithm circuit examples#679
SoufiTNO merged 3 commits into
QuTech-Delft:developfrom
SoufiTNO:develop

Conversation

@SoufiTNO
Copy link
Copy Markdown
Contributor

Circuits added (example/algorithms/) :

  • qft_8.qasm — Quantum Fourier Transform, 8 qubits
  • grover_n3.qasm — Grover's search algorithm , 3 qubits
  • qaoa_n6.qasm — QAOA, 6 qubits
  • vqe_uccsd_n4.qasm — VQE UCCSD , 4 qubits
  • 16QBT_10CYC_TFL_1.qasm — Random benchmark circuit, 16 qubits

Circuits were converted from cQASM 1.0 to cQASM 3.0 from the QuantumCircuitProfiling dataset (Bandic et al. 2025).

@elenbaasc elenbaasc self-requested a review April 15, 2026 14:48
Copy link
Copy Markdown
Collaborator

@elenbaasc elenbaasc left a comment

Choose a reason for hiding this comment

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

Thanks for adding this to OpenSquirrel 😄!

  • Please add a note a the beginning of each program that briefly explains which algorithm it is and how it is implemented (you can use multi-line commenting for this: /* ... */
  • I noticed that none of the programs include measurements, should these be included?
  • Could the tests be a bit more specific per algorithm, other than simply checking the size of the register and whether it contains any instructions?

Comment thread example/algorithms/16QBT_10CYC_TFL_1.qasm Outdated
Comment thread example/algorithms/grover_n3.qasm Outdated
Comment thread example/algorithms/qaoa_n6.qasm Outdated
Comment thread example/algorithms/vqe_uccsd_n4.qasm Outdated
Comment thread tests/example/algorithms/test_algorithms.py Outdated
Copy link
Copy Markdown
Collaborator

@elenbaasc elenbaasc left a comment

Choose a reason for hiding this comment

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

Looks good to go! Thanks for making the adjustments :)

@SoufiTNO SoufiTNO merged commit acf29dd into QuTech-Delft:develop Apr 20, 2026
16 checks passed
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