Skip to content

Conversation

BoxiLi
Copy link
Member

@BoxiLi BoxiLi commented Oct 19, 2024

  • Add type hints to the circuit module
  • Rename texrenderer.py to tex_renderer.py
  • Remove circuit.adjacent_gate as it is replaced by to_chain_structure long ago.

@hodgestar
Copy link
Contributor

What Python versions do we need to support? If 3.9+ should we do from __future__ import annotations and then not have to import so many things from typing? E.g. Optional[Union[int, List[int]] becomes int | list[int] | None.

@gadhvirushiraj
Copy link
Contributor

What Python versions do we need to support? If 3.9+ should we do from __future__ import annotations and then not have to import so many things from typing? E.g. Optional[Union[int, List[int]] becomes int | list[int] | None.

@boxi, I wanted to check on the python versions currently supported. The new circuit module type hint PR would require adjustments based on this suggestion.

@BoxiLi
Copy link
Member Author

BoxiLi commented Mar 11, 2025

We support what qutip supports, and qutip is aligning with NumPy. So it is definitely 3.9+. Do you need even newer version?

@gadhvirushiraj
Copy link
Contributor

We support what qutip supports, and qutip is aligning with NumPy. So it is definitely 3.9+. Do you need even newer version?

thanks for clarifying @BoxiLi. this works good.

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.

3 participants