Is_ptype in blackbird.listener not found

Hi,

I was trying to run the quickstart circuit for Borealis locally and got this error:

ImportError: cannot import name ‘is_ptype’ from ‘blackbird.listener’ (~/blackbird/listener.py)

I commented out code requiring is_ptype for now, but I think this is what is causing my other error (_contains_ in borealis compiler has a string?).

I am running the latest version of strawberryfields, any suggestions about how to fix?

Hi,

Just fixed this, just needed to update to the latest version of blackbird as well using:

pip install -U quantum-blackbird

Happy Halloween! :skull:

I’m glad you could fix the problem @Samarth_Sandeep!

Happy Halloween!

1 Like