You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? If so, please describe it.
In qml-core, we make checks of the form isinstance(self._backend, WavefunctionSimulator). Apparently, in python 3.11+, these sort of checks cannot be made if the class is a Protocol unless they are decorated with @typing.runtime_checkable. Can we add these decorators to all protocols in orquestra-quantum to avoid this issue in the future?
How you envision the solution
Just add the decorator on top of every Protocol.
Describe alternatives you've considered
None
Additional context
n/a
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? If so, please describe it.
In qml-core, we make checks of the form
isinstance(self._backend, WavefunctionSimulator)
. Apparently, in python 3.11+, these sort of checks cannot be made if the class is aProtocol
unless they are decorated with@typing.runtime_checkable
. Can we add these decorators to all protocols inorquestra-quantum
to avoid this issue in the future?How you envision the solution
Just add the decorator on top of every
Protocol
.Describe alternatives you've considered
None
Additional context
n/a
The text was updated successfully, but these errors were encountered: