Closed HGSilveri closed 7 months ago
This features adds a new pulser.backends module that should serve as the single source for all backends. Ideally, the user can now simple do eg
pulser.backends
import pulser qutip_backend = pulser.backends.QutipBackend(...)
If pulser_simulation is not installed, an error message will appear suggesting its installation.
pulser_simulation
AttributeError: 'QutipBackend' requires the 'pulser_simulation' package. To install it, run `pip install pulser_simulation`.
The same is true for the pulser_pasqal backends.
pulser_pasqal
Imports like
from pulser.backends import QutipBackend, EmuTNBackend
also work, but in this case the error message is not informative if the appropriate extension packages are not installed.
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
This features adds a new
pulser.backends
module that should serve as the single source for all backends. Ideally, the user can now simple do egIf
pulser_simulation
is not installed, an error message will appear suggesting its installation.The same is true for the
pulser_pasqal
backends.Imports like
also work, but in this case the error message is not informative if the appropriate extension packages are not installed.