Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
754
stars
191
forks
source link
IndexError during program compliation #443
Closed
heltluke closed 4 years ago
Issue description
An
IndexError
during program compilation occurs for squeezing amplitudes of 0 and identity Interferometers.Expected behavior: (What you expect to happen) Program compiles cleanly.
Actual behavior: (What actually happens) The
IndexError
appears.Reproduces how often: (What percentage of the time does it reproduce?) 100% of the time.
System information: (post the output of
import strawberryfields as sf; sf.about()
)Source code and tracebacks
Here is an example that will reproduce the error:
The error itself is