Join the public MLCommons taskforce to participate in the collaborative development of the next generation of this open-source technology!

get_raw_config hackathon.20180615

ck-action:get_raw_config hackathon.20180615 (v1.0.0)
Creation date: 2018-08-09
Source: GitHub
cID: 081173242a88bc94:ef6439f9d45a9118

Don't hesitate to get in touch if you encounter any issues or would like to discuss this community project!
Please report if this CK component works: 1  or fails: 0 
Sign up to be notified when artifacts are shared or updated!

Description  

This is our attempt to share automation actions and best practices as reusable Python modules with a common CLI and Python API to help researchers and practitioners automate their repetitive R&D tasks. Our on-going project is to make the onboarding process as simple as possible via this platform. Please check this CK white paper and don't hesitate to contact us if you have suggestions or feedback!
  • Automation framework: CK
  • Workflow: quantum hackathon workflow
  • Development repository: ck-quantum
  • Source: GitHub
  • How to get the stable version via the CK client:
    pip install cbench
    cb download module:hackathon.20180615 --version=1.0.0 --all
    ck get_raw_config hackathon.20180615 --help
  • How to get the development version:
    pip install ck
    ck pull repo:ck-quantum
    ck get_raw_config hackathon.20180615 --help

  • How to run from Python:
       import ck.kernel as ck

       r=ck.access({'action':'',
                    'module_uoa':'',
                    ... See JSON API below ...
                   })
       if r['return']>0: return r
       ...
  • Module description: Raw data access (json)
  • API Python code: Link
  • JSON API:
            "    Input:  {
                }
    
        Output: {
                  return       - return code =  0, if successful
                                             >  0, if error
                  (error)      - error text if return > 0
                }
    
    "
           

ReadMe  

1st Quantum Computing Hackathon, Cambridge, 15 June 2018

Installation (on Ubuntu)

Install global prerequisites, Python3 and its pip (Python2 is also supported)

$ sudo apt-get install python3 python3-pip

Install Collective Knowledge

$ sudo pip3 install ck

Installation (on MacOS)

Install Python3 and its pip (Python2 is also supported)

$ brew update
$ brew reinstall python
$ pip install ck

Non-root CK installation

You can install CK in your local user space as follows:

$ git clone http://github.com/ctuning/ck
$ export PATH=$PWD/ck/bin:$PATH
$ export PYTHONPATH=$PWD/ck:$PYTHONPATH

Test CK installation

$ ck version

Common part of the workflow installation

Pull CK repositories

$ ck pull repo:ck-quantum
$ ck pull repo:ck-env
$ ck pull repo:ck-rigetti
$ ck pull repo:ck-qiskit

Detect a Python interpreter (interactively choose one if there are several options)

$ ck detect soft:compiler.python

Install this CK repository with all its dependencies (other CK repos to reuse artifacts)

$ ck install package:tool-hackathon

Install pyQuil

$ ck install package:lib-pyquil-1.9.0

Run a demo program (press Enter if prompted)

$ ck run program:pyquil-demo
...

    * tmp-stdout.tmp

      Number of games: 10
      Q's winning average: 1.0
      Picard's flip-decision average: 0.5

Run VQE

$ ck run program:rigetti-vqe

Versions  

Comments  

Please log in to add your comments!
If you notice any inapropriate content that should not be here, please report us as soon as possible and we will try to remove it within 48 hours!