-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simulon device spec
mode
validation (#545)
* add checks * add docstring * remove extra check * add alt names to measurements * add tests * remove Type import (not sure why is was there) * update error text * Update strawberryfields/program.py Co-authored-by: antalszava <antalszava@gmail.com> * Apply suggestions from code review Co-authored-by: antalszava <antalszava@gmail.com> * fix ifs * run black * separate errors * add unit tests * add docstrings to test * remove comments * Update tests/frontend/test_program.py Co-authored-by: antalszava <antalszava@gmail.com> * add test for wrong entry error * add max to method * remove hard-coded simulon * update tests * minor docstring update Co-authored-by: antalszava <antalszava@gmail.com>
- Loading branch information
1 parent
57c4242
commit 50ae64a
Showing
2 changed files
with
174 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters