Skip to content

artgromov/quantum-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum-lab

Tested on ubuntu 20.04.

Environment setup

  1. Install anaconda: https://www.anaconda.com/products/individual
  2. Install direnv: https://direnv.net/
  3. Initialize shell for usage with conda
$ conda init
  1. Clone this repo
$ git clone https://github.com/artgromov/quantum-lab.git
  1. Create and setup env
$ cd quantum
$ direnv allow
  1. Install conda env jupyter-lab kernel
$ ipython kernel install --name quantum-lab --display-name 'Quantum Lab' --user

Environment usage after setup

You can change to quantum-lab dir to activate env and run any code directly.

$ cd quantum-lab
direnv: loading ~/quantum-lab/.envrc
direnv: export +CONDA_PREFIX_1 ~CONDA_DEFAULT_ENV ~CONDA_PREFIX ~CONDA_SHLVL ~PATH

Or just start jupyter-lab and run notebook files with "Quantum Lab" kernel.

IBMQ credentials setup

  1. Create account on https://quantum-computing.ibm.com/
  2. Create ~/.qiskit directory if not present.
  3. Add ibmq section to ~/.qiskit/qiskitrc file
[ibmq]
token = <your token here>
url = https://auth.quantum-computing.ibm.com/api
verify = True

replace string with your actual API token from https://quantum-computing.ibm.com/

  1. Done. Now you can use following code to access IBMQ:
import helpers
provider = helpers.get_ibmq_provider()

Useful links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published