QuantumBFS / Yao.jl

Extensible, Efficient Quantum Algorithm Design for Humans.

Home Page:https://yaoquantum.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot install CuYao and YaoExtensions

HamidArianZad opened this issue · comments

commented

Hello,

I tried to run the code: Listing 12: CUDA register, noted in source paper: Quantum 2020-09-29.
I got some errors.
First, I installed Yao and cuda on Julia v1.6.5 then run the code as follows:

  1. julia> using CuYao
  2. julia> r = ArrayReg(bit"1010") ;
  3. julia> r = cu(r) ;
    But I get error: syntex: extera token "qubits" after end of expression

YaoExtensions also does not work for me as well.
Julia_Error

How can I solve these problems?

Thanks!

Hi, can you please test if your CUDA works properly? also are you using the latest CuYao? it should be version 0.3.1. To test your CUDA, you can type

julia> using CUDA

julia> CUDA.zeros(3)
commented

Thank you for your reply.
Please find in attachement the version of CuYao that I have installed.
Julia_Error

It looks like your CUDA does not find the correct driver/binary file.

Also, about YaoExtensions, we are going to retire it gradually. You can use using Yao.EasyBuild to access most of the functionalities.

commented

It looks like your CUDA does not find the correct driver/binary file.

I get the attached error accordingly.
Julia_Error

Then it is a problem of your CUDA.

First, please make sure you have an Nvidia GPU, and your driver is installed properly. If you are using Linux, you should be more careful about the driver you use. If you are using Mac, you probably do not have a Nvidia GPU.

commented

Then it is a problem of your CUDA.

First, please make sure you have an Nvidia GPU, and your driver is installed properly. If you are using Linux, you should be more careful about the driver you use. If you are using Mac, you probably do not have a Nvidia GPU.

OK, thank you very much for your help. I use Radeon graphic card.

If you wish to use the GPU functionality I think only CUDA is supported, otherwise please just use Yao instead of CuYao. The rest should be the same. Please feel free to open other issues if you have other problems.