관리 메뉴
목록연구/Python (1)
갈라파고스
[Python] UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
원인양자 프로그래밍 언어는 대부분 Python 기반이다.그래서 C나 Fortran 기반 프로그램에 임베딩 할 때, Python 함수를 부르는 C 함수를 불러서 사용해야 한다... (이상해요)암튼 C 코드에서 Python.h를 임포트하고 컴파일하면 저 오류가 떠서... 컴퓨터를 부수기 직전 해결해냈다. 해결Makefile에서 컴파일러 옵션에 -fp-model strict를 추가한다.CC = [...] -fp-model strict # CFC = [...] -fp-model strict # Fortran 참고https://github.com/Qiskit/qiskit-aer/issues/1461 type is zero. · Issue #1461 · Qiskit/qiskit-aer" data-og-descrip..
연구/Python
2025. 3. 12. 19:00