_contains_ in borealis compiler has a string?

Hi,

I got this error when trying to run some code locally on the Borealis:

File “~\strawberryfields\compilers\compiler.py”, line 372, in contains

  • return self.x - self.atol <= item <= self.y + self.atol*
    TypeError: ‘<=’ not supported between instances of ‘float’ and ‘str’

I thought maybe item was a misformatted float, but converting to float did not work since item was actually a letter.

Any suggestions about how to fix?

Hi,

Just needed to update to the latest version of blackbird as well using:

pip install -U quantum-blackbird

Happy Halloween! :skull:

Hi @Samarth_Sandeep!

Thank you for posting the resolution to the problem.

Happy halloween! :jack_o_lantern:

1 Like