Qulacs , fast quantum circuit simulator

Fitur

  • Fast quantum circuit simulation with parallelized C/C++ backend
  • Noisy quantum gate for simulation of NISQ devices
  • Parametric quantum gates for variational methods
  • Circuit compression for fast simulation
  • GPU support for fast simulation
  • Many utility functions for research

Referensi

Masalah fatal error: ‘iostream’ file not found di Intel Compiler

Permasalahan: ketika kompilasi software dengan compiler icpc (Intel oneAPI DPC++/C++ Compiler) terjadi pesan kesalahan berikut ini:
fatal error: 'iostream' file not found

Sumber permasalahan: icpc memerlukan file library stream dan sebagainya dari g++. 
Solusi: install g++ versi yang agak baru misal versi 10, kemudian lakukan kompilasi seperti biasa. 
Referensi: https://www.intel.com/content/www/us/en/developer/articles/troubleshooting/error-c-header-file-not-found-with-dpc-c-compiler.html

Masalah debconf di Ubuntu

Permasalahan:
setiap kali menjalankan ‘apt’, muncul pesan error

debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (you may need to install the Debconf::Log module) (@INC contains: /usr/local/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux /usr/local/perl-5.36.0/lib/site_perl/5.36.0 /usr/local/perl-5.36.0/lib/5.36.0/x86_64-linux /usr/local/perl-5.36.0/lib/5.36.0) at (eval 1) line 4.

Kemungkinan tampilan kesalahan lain yang serupa

Reading package lists... Done
Building dependency tree
Reading state information... Done
npm is already the newest version (6.14.4+ds-1ubuntu2).
The following packages were automatically installed and are no longer required:
  libgnat-10 libgnat-8 libgnat-9 libgnat-util10 libgnatvsn8 libgnatvsn9
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (you may need to install the Debconf::Log module) (@INC contains: /usr/local/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/site_perl/5.36.0 /usr/local/perl-5.36.0/lib/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/5.36.0) at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
Sedang menata tzdata (2023c-0ubuntu0.20.04.0) ...
Can't locate Debconf/Db.pm in @INC (you may need to install the Debconf::Db module) (@INC contains: /usr/local/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/site_perl/5.36.0 /usr/local/perl-5.36.0/lib/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/5.36.0) at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing package tzdata (--configure):
 installed tzdata package post-installation script subprocess returned error exit status 2
Sedang menata pkg-config (0.29.1-0ubuntu4) ...
Can't locate Dpkg/Arch.pm in @INC (you may need to install the Dpkg::Arch module) (@INC contains: /usr/local/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/site_perl/5.36.0 /usr/local/perl-5.36.0/lib/5.36.0/x86_64-linux-thread-multi /usr/local/perl-5.36.0/lib/5.36.0) at /usr/share/pkg-config-dpkghook line 14.
BEGIN failed--compilation aborted at /usr/share/pkg-config-dpkghook line 14.
dpkg: error processing package pkg-config (--configure):
 installed pkg-config package post-installation script subprocess returned error exit status 2
Ada kesalahan saat memproses:
 tzdata
 pkg-config

Penyebab: ada masalah di file-file debconf, sehingga apt tidak dapat berfungsi baik

Solusi: install ulang perl-base dengan perintah berikut:

sudo apt reinstall perl-base

Referensi: https://unix.stackexchange.com/questions/690048/debconf-broken-cant-update-install-or-fix-any-package-anymore

Pengukuran Energi Prosesor AMD

Pengukuran penggunaan energi pada prosesor AMD dapat menggunakan software uProf
https://www.amd.com/en/developer/uprof.html

Software uProf untuk Linux: https://download.amd.com/developer/eula/uprof/amduprof_4.0-341_amd64.deb

Prosedur Instalasi:

apt install bcc
dpkg -i amduprof_4.0-341_amd64.deb

AMD Ryzen 9 5950X
AMD Ryzen 9 5950X

Optimized C compiler untuk AMD: AOCC (AMD Optimizing C/C++ and Fortran Compilers)

AOCC archive

  • https://developer.amd.com/aocc-archive-section/
  • https://www.amd.com/en/developer/aocc.html

Referensi

 

Compiler C/C++ untuk prosesor AMD

Pilihan compiler untuk prosesor AMD

  • gcc
  • clang
  • AOCC
  • Intel Compiler
  • PGI Compiler

Referensi

  • Performance exploration of various C/C++ compilers for AMD EPYC processors in numerical modeling of solidification https://icis.pcz.pl/~lszustak/sonata13/JCR_2022_9_ADES_Compilers.pdf
  • https://www.sciencedirect.com/science/article/abs/pii/S0965997821001071