Open ghost opened 1 year ago
Please see https://github.com/Qiskit/qiskit-aer/issues/1730. Conan 2.0 is not supported. Please use Conan 1.X.
Thank you, the conan error has been resolved but the following error regarding pybind11 has appeared.
-- PYBIND INCLUDES: /home/quantum_talk_ch/miniconda3/envs/QiskitDevEnv3/include/python3.11
-- The CUDA compiler identification is NVIDIA 11.1.74
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- /home/quantum_talk_ch/miniconda3/envs/QiskitDevEnv3/include/python3.11
-- PYTHON EXECUTABLE: /home/quantum_talk_ch/miniconda3/envs/QiskitDevEnv3/bin/python
Traceback (most recent call last):
File "<string>", line 3, in <module>
ModuleNotFoundError: No module named 'pybind11'
CMake Warning at cmake/FindPybind11.cmake:21 (message):
(NAIVE) CHECK COULD NOT FIND PYBIND!
Call Stack (most recent call first):
src/open_pulse/CMakeLists.txt:1 (find_package)
-- PYBIND INCLUDES: /home/quantum_talk_ch/miniconda3/envs/QiskitDevEnv3/include/python3.11
-- Configuring done (3.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/quantum_talk_ch/qiskit-aer/_skbuild/linux-x86_64-3.11/cmake-build
[ 10%] Building CUDA object qiskit_aer/backends/wrappers/CMakeFiles/controller_wrappers.dir/bindings.cc.o
/home/quantum_talk_ch/qiskit-aer/qiskit_aer/backends/wrappers/bindings.cc:9:10: fatal error: pybind11/pybind11.h: No such file or directory
9 | #include <pybind11/pybind11.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [qiskit_aer/backends/wrappers/CMakeFiles/controller_wrappers.dir/build.make:77: qiskit_aer/backends/wrappers/CMakeFiles/controller_wrappers.dir/bindings.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:874: qiskit_aer/backends/wrappers/CMakeFiles/controller_wrappers.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Traceback (most recent call last):
File "/home/quantum_talk_ch/miniconda3/envs/QiskitDevEnv3/lib/python3.11/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
cmkr.make(make_args, install_target=cmake_install_target, env=env)
File "/home/quantum_talk_ch/miniconda3/envs/QiskitDevEnv3/lib/python3.11/site-packages/skbuild/cmaker.py", line 691, in make
self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
File "/home/quantum_talk_ch/miniconda3/envs/QiskitDevEnv3/lib/python3.11/site-packages/skbuild/cmaker.py", line 736, in make_impl
raise SKBuildError(msg)
An error occurred while building with CMake.
What error could this be?
I tried,
pip install pybind11
However, the error is not resolved. is it possible that the missing module for pybind11 and the inability to successfully build it with cmake is because I forgot to do some command operation and the dependency was not resolved properly during the installation? I can't find any other examples of such an error. (I am concerned that I am not installing the required packages in addition to pybind11.)
can you install pybind11
with pip install "pybind11[global]"
?
I confirmed that qiskit-aer can be compiled with cuquantum. I hope that this gist helps your trouble.
https://gist.github.com/hhorii/44f3c36722ba0c33ff900fdd1f5a118c
(in this gist, "pybind11[global]"
was not necessary.)
Informations
What is the current behavior?
Trying to use cuQuantum from Qiskit, I came across this site.
https://github.com/Qiskit/qiskit-aer/blob/main/CONTRIBUTING.md
I found from #1609 that I need to build qiskit-aer to use cuQuantum from qiskit-aer, so I built the source and got an error when I entered the following command.
I seem to be getting some errors regarding Conan, but I don't know much about Cmake and can't solve them. What could be the cause and how can it be resolved?
Steps to reproduce the problem
On GCP VM instance.
and following documentation
then run setup.py.
What is the expected behavior?
The build of qiskit-aer is completed and cuquanutum can be used from qiskit-aer.
Now, if we flag cuStateVec_enable=True in AerSimulator() as in #1609,
and this error↑ occurs.
Suggested solutions