Skip to content

Materials for Quantum Computing with Julia workshop at JuliaCon 2021

Notifications You must be signed in to change notification settings

saravsak/JuliaCon2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JuliaCon2021

Setup Instructions

Docker Instructions

Ensure you have docker installed.

docker run -p 8888:8888 -it ghcr.io/codewithsk/juliacon2021:latest

This should start a local jupyter notebook instance with the notebooks required for this tutorial.

Setting it up from scratch

Install Julia

  1. Download Julia v1.6.1 for your environment here
$ wget https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.1-linux-x86_64.tar.gz
  1. Install Julia for your environment here
$ wget https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.1-linux-x86_64.tar.gz
$ tar zxvf julia-1.6.1-linux-x86_64.tar.gz
$ echo "PATH=\${PATH}:$(pwd)/julia-1.6.1/bin" >> ~/.bashrc
  1. Ensure you have Julia Installed
$ julia -v
julia version 1.6.1
  1. Install IJulia
$ julia -e 'using Pkg; Pkg.add("IJulia")'

Setup Jupyter

  1. Install Anaconda from here
$ sh $(wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh)
  1. Add conda to your path variable
$ echo "PATH=\${PATH}:$(pwd)/anaconda3/bin" >> ~/.bashrc
  1. Ensure that the Julia kernel exists with Jupyter
$ jupyter kernelspec list
Available kernels:
  julia-1.6    /home/ubuntu/.local/share/jupyter/kernels/julia-1.6
  python3      /home/ubuntu/anaconda3/share/jupyter/kernels/python3

Setup PyCall

  1. Install Conda.jl
$ julia -e 'using Pkg; Pkg.add("Conda")'
  1. Install PyCall
$ julia -e 'using Pkg; Pkg.add("PyCall"); ENV["PYTHON"]=""; Pkg.build("PyCall")'
  1. Install AWS Braket
$ julia -e 'using Conda; Conda.pip_interop(true); Conda.pip("install", "amazon-braket-sdk")'
  1. Verify the right version of Braket has been installed
$ julia -e 'using PyCall; braket = pyimport("braket._sdk"); println(braket.__version__)'
1.7.2

About

Materials for Quantum Computing with Julia workshop at JuliaCon 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages