Skip to content

[CQT-59] implement SGMQ notation in the CircuitBuilder#675

Merged
rares1609 merged 3 commits into
developfrom
CQT-59-Implement-SGMQ-notation-in-the-circuit-builder
Apr 15, 2026
Merged

[CQT-59] implement SGMQ notation in the CircuitBuilder#675
rares1609 merged 3 commits into
developfrom
CQT-59-Implement-SGMQ-notation-in-the-circuit-builder

Conversation

@rares1609
Copy link
Copy Markdown
Contributor

No description provided.

@rares1609 rares1609 requested a review from elenbaasc March 30, 2026 10:03
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.

There are many helper functions that have been added to the CircuitBuilder, that are in my opinion overkill. For two qubit gates and the measure instruction we only allow for operand lists of equal lengths (and no tuple style SGMQ notation).

Try to simplify the (added) code significantly. Also, private helper functions shouldn't have doc-strings.

Comment thread tests/test_circuit_builder.py Outdated
Comment thread opensquirrel/circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.py Outdated
Comment thread CHANGELOG.md Outdated
Comment thread opensquirrel/circuit_builder.py Outdated
Comment thread opensquirrel/circuit_builder.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.

Great, thanks for cleaning it up! It's very close to being ready :)

Comment thread opensquirrel/circuit_builder.py Outdated
Comment thread opensquirrel/circuit_builder.py Outdated
Comment thread opensquirrel/circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.py
Comment thread tests/test_circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.py Outdated
Comment thread tests/test_circuit_builder.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.

All good to go! :)

@rares1609 rares1609 merged commit 3d1c5f7 into develop Apr 15, 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