Build demos with QML CLI Tool

Hi everyone,

Following the document qml/documentation/qml-cli.md at master · PennyLaneAI/qml · GitHub to create and build a new demo, I got the message:

C:\Pennylane\qml> qml build vqe_ld
INFO:qml:Building 1 demos
INFO:qml:Using build environment: C:\Pennylane\qml.venv-build
ERROR:qml.app.app:Build failed: [WinError 2]

Would anyone be able to help me?
I really appreciate any help you can provide.

Hi @souzateixeira , welcome back to the Forum!

I think this is more of an internal tool but I’ll check with our team.

Just to check, were you looking at building a new demo you’re writing or running an existing PennyLane demo?
If it’s the latter I can suggest going to the PennyLane demos page and downloading the Python or Notebook version of the demo you’re interested in running.

Hi Catalina,
Thanks for the message.
Regarding your question, I’m building a new demo.

Hi @souzateixeira ,

It turns out that our instructions to setup are specific for Mac/Linux. Windows might need a different setup but it’s not officially supported so I’m not even sure what would need to be changed.

The best option therefore would be to open a draft PR so that you can see the demo preview online instead of locally. When someone opens a PR in the qml repo, there are GitHub actions that run automatically to generate a demo preview online. Therefore, working with a draft PR would be the easiest way to check for issues.

Feel free to tag me in the PR or send a message here if you have any issues with finding the preview.

I hope this helps!