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

Release 0.3.0 #443

Merged
merged 1,001 commits into from
Jan 30, 2025
Merged

Release 0.3.0 #443

merged 1,001 commits into from
Jan 30, 2025

Conversation

elenbaasc
Copy link
Collaborator

No description provided.

elenbaasc and others added 30 commits November 1, 2024 10:22
Gate modifiers:
- Take a Callable that returns a BlochSphereRotation.
- Invoke the Callable, together with a list of arguments, to obtain a BlochSphereRotation.
- Then return either a new BlochSphereRotation with a new angle (inv and pow), or a ControlledGate.
- Notice the list of arguments *args received by __call__ contains both the qubit operands and an optional parameter.

Fix tests to use the correct syntax for parametrized gates.

default_gate_modifiers.py:
- Implement inv, pow, and ctrl gate modifiers.

ir.py:
- Allow Float instances to be constructed from another Float. The same for Int.
- Fix comment typos.
- Make Float and Int classes look alike.
- Add IR.add_statement.

instruction_library.py:
- Fix error message.

parser.py:
- Update to parse the new AST: GateInstruction's, NonGateInstruction's, gate modifiers, and parametrized gates.

test_libqasm.py:
- Add test_gate_modifiers.
poetry run pytest . -vv
poetry run ruff check --fix
poetry run pytest . -vv
poetry run ruff format
Change PowerGateModifier exponent type to SupportsFloat.
Co-authored-by: Roberto Turrado Camblor <[email protected]>
…into-OpenSquirrel' into CQT-252-Integrate-libQASM-0.6.8-into-OpenSquirrel
…8-into-OpenSquirrel

# Conflicts:
#	opensquirrel/parser/libqasm/parser.py
Co-authored-by: Roberto Turrado Camblor <[email protected]>
dependabot bot and others added 29 commits January 9, 2025 17:03
* Bump ruff from 0.5.7 to 0.6.8

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.7 to 0.6.8.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.5.7...0.6.8)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix ruff

* Fix formatting error.

* Fix mypy issues.
Update poetry lock file.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Boschero <[email protected]>
Co-authored-by: Chris Elenbaas <[email protected]>
Bumps [ipython](https://github.com/ipython/ipython) from 7.34.0 to 8.18.1.
- [Release notes](https://github.com/ipython/ipython/releases)
- [Commits](ipython/ipython@7.34.0...8.18.1)

---
updated-dependencies:
- dependency-name: ipython
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Elenbaas <[email protected]>
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 3 to 4.
- [Release notes](https://github.com/abatilo/actions-poetry/releases)
- [Changelog](https://github.com/abatilo/actions-poetry/blob/master/.releaserc)
- [Commits](abatilo/actions-poetry@v3...v4)

---
updated-dependencies:
- dependency-name: abatilo/actions-poetry
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…into CQT-289-Avoid-creating-an-Axis-0-0-0
* Added a Routing Checker pass

* Delete openosq12 directory (virtualenv)

* Added Routing Checker pass

* Fixed errors

* Fixed errors

* Fixed errors

* Fixed errors

* Implemented feedback

---------

Co-authored-by: Oancea <[email protected]>
Co-authored-by: Chris Elenbaas <[email protected]>
…xis-0-0-0

[CQT-289] Avoid creating an Axis (0, 0, 0)
…407)

* Restore SGMQ notation for barrier links.
Add tests for barrier links.

---------

Co-authored-by: Roberto Turrado Camblor <[email protected]>
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.5.49 to 9.5.50.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](squidfunk/mkdocs-material@9.5.49...9.5.50)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 3 to 4.
- [Release notes](https://github.com/abatilo/actions-poetry/releases)
- [Changelog](https://github.com/abatilo/actions-poetry/blob/master/.releaserc)
- [Commits](abatilo/actions-poetry@v3...v4)

---
updated-dependencies:
- dependency-name: abatilo/actions-poetry
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [tox](https://github.com/tox-dev/tox) from 4.23.2 to 4.24.1.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](tox-dev/tox@4.23.2...4.24.1)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.14 to 10.14.1.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](facelessuser/pymdown-extensions@10.14...10.14.1)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s-check-for-gates

[CQT-277] Improve `is_anonymous` check for gates
* Added native gate checker

* Implemented Feedback

* Implemented Feedback

* Update CHANGELOG.md

Co-authored-by: Chris Elenbaas <[email protected]>

* Update opensquirrel/passes/validator/general_validator.py

Co-authored-by: Chris Elenbaas <[email protected]>

* Update opensquirrel/passes/validator/native_gate_validator.py

Co-authored-by: Chris Elenbaas <[email protected]>

* Update opensquirrel/passes/validator/native_gate_validator.py

Co-authored-by: Chris Elenbaas <[email protected]>

* Update test/test_integration.py

Co-authored-by: Chris Elenbaas <[email protected]>

* Update test/test_integration.py

Co-authored-by: Chris Elenbaas <[email protected]>

* Implemented feedback

* .

* .

* Change fixture names

* Resolve previous comments and modify tests

---------

Co-authored-by: Oancea <[email protected]>
Co-authored-by: Chris Elenbaas <[email protected]>
* Bump ruff from 0.6.9 to 0.9.3

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.9 to 0.9.3.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.6.9...0.9.3)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chris Elenbaas <[email protected]>
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.14.1 to 10.14.2.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](facelessuser/pymdown-extensions@10.14.1...10.14.2)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@elenbaasc elenbaasc merged commit 0e311ee into main Jan 30, 2025
17 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.

5 participants