sf.circuitdrawer.ModeMismatchException¶
-
exception
ModeMismatchException
[source]¶ Exception raised when parsing a Gate object.
This class corresponds to the exception raised by
parse_op()
when an operator is interpreted as an n-mode gate but is applied to a number of modes != n.
code/api/strawberryfields.circuitdrawer.ModeMismatchException
Download Python script
Download Notebook
View on GitHub