whichislovely / Hosten-group-Quantrol-Control-system

A GUI that allows running experiments using Artiq system without coding.
3 stars 1 forks source link

Problem about ARTIQ Installation #14

Closed BaoSicheng closed 1 week ago

BaoSicheng commented 2 weeks ago

Hello, here is a question about ARTIQ installation.

I have installed ARTIQ using the offline installer on windows (MSYS2 with ARTIQ), and then download your GUI. However, it cannot run due to a missing package sympy. I've tried many ways but cannot install the sympy on MSYS2.

Thanks!

whichislovely commented 2 weeks ago

Hi,

We are not using Quantrol in MSYS2 environment. I am not an expert in order to answer the question you asked. However, if you want to use Quantrol, you should install the sympy into your virtual environment and follow the instructions. We use VS Code. Open the folder that contains the Quantrol files, configure the config.py, device_db.py and run it with the virtual environment that has all required packages. AFAICT, you can invoke virtual environment and use pip install in that environment to install packages. It can also be done by using requirements.txt as explained in the readme.

The interface between Quantrol and MSYS2 is very straightforward. Quantrol executes the batch files that invoke MSYS2 with CLANG64 and artiq_runs the experimental description.

BaoSicheng commented 2 weeks ago

Hi,

thanks for reply.

You say that you use VS code instead of MSYS2. Then, how to use the artiq package in VS code? (I installed ARTIQ in MSYS2, and VS code says that there is no artiq package)

Thanks!

whichislovely commented 2 weeks ago

Hi,

I am not an expert. I will tell you how I understand everything. VS code is just an editor that allows using different terminals and environments to run code. MSYS2 is a terminal that is a linux based echo system in windows. Therefore I do not understand your comparison of VS code to MSYS2.

You should understand that Quantrol's major role here is to create an experimental description based on the table-like edge sequence. After creating run_experiment.py what it does is only envoking the corresponding terminal and artiq_run it. For Quantrol to create experimental description it does not require any artiq package. See the LED.py experiment for example.

In case you use MSYS2 you should modify the package_manager in config.py and follow the instructions (put the folder of Quantrol into the folder of MSYS2. This is because I was not able to change directory in the Terminal invoked MSYS2 after spending half an hour trying to do so. I am now working on developing some more features and releasing Quantrol 2.0. I am leaving the group and the field compeletely by the end of this week so I needed to focus on other things.

Hope this helps. BTW, I will also update the readme to include more detailed explanation. Check it in the beginning of the next week.

I know that Artiq infrastructure might be complex to understand. It took me a while to get used to it. Good luck!

Best regards, Vyacheslav

BaoSicheng commented 1 week ago

Many thanks! Your explanation helps me a lot!