Skip to content

kacper3615/Qommunity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

121 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qommunity

Qommunity is a library for community detection where you can use variety of solvers, including quantum solvers provided by QHyper

Prerequierments

If you want to use quantum solvers, you have to add your DWave Leap token to your environment variables

How to add DWave token to Windows 10/11?

  1. Search for "Edit the system enviroment variables"
  2. Press "Enviroment variables..." button
  3. At "System variables" press "New..." button and create new variable. It should have name "DWAVE_API_TOKEN" and value should be your token
  4. Apply changes
  5. Reset your computer

Additionally, to increase convenience, you can add the QHyper library to the environment variables (there will be no errors with import)

How to add library to Windows 10/11?

  1. Search for "Edit the system enviroment variables"
  2. Press "Enviroment variables..." button
  3. At "User variables for [Username]" press "New..." button and create new variable. It should have name "PYTHONPATH" and value should be your path to QHyper library (for example: C:\Users\Kacper\Documents\QHyper)
  4. Apply changes
  5. Reset your computer

How to add library on Linux?

  1. Open .bashrc file using text editor. For example: nano ~/.bashrc (.bashrc file is a hidden file inside your user directory therefore, before opening the file, we type ~)
  2. Write in the last line of the file: export PYTHONPATH="$PYTHONPATH:[QHyper location], for example: export PYTHONPATH="$PYTHONPATH:/home/kacper/Documents/QHyper"
  3. Exit and save your .bashrc file
  4. Reset terminal and IDE (or even PC)

Now you are able to import QHyper using "import QHyper" instead of using relative/absolute path

How to use library?

At this moment, the library is pretty simple; everything you have to know is included in the "demo.ipynb" file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors