sf.tdm.make_squeezing_compatible¶
-
make_squeezing_compatible
(gate_args, device)[source]¶ Matches the user-defined squeezing values to a discrete set of squeezing levels supported by the device.
- Parameters
gate_args (dict) – dictionary with the collected arguments for squeezing gate, phase gates and beamsplitter gates
device (sf.Device) – the device containing the supported squeezing parameters
- Returns
the input dictionary with the
gate_args["Sgate"]
replaced by hardware-compatible squeezing values- Return type
dict
code/api/strawberryfields.tdm.make_squeezing_compatible
Download Python script
Download Notebook
View on GitHub