GithubHelp home page GithubHelp logo

ryanhill1 / quantum-challenge-grader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qiskit-community/quantum-challenge-grader

0.0 0.0 1.0 359 KB

Grading client for the IBM Quantum Challenges

License: Apache License 2.0

Python 100.00%

quantum-challenge-grader's Introduction

Quantum Challenge Grader

Grading client for the IBM Quantum Challenge grading service.

Run locally

Pre-requisites:

To install the grader locally:

  1. In the Python environment, install the grading client

    pip install git+https://github.com/ryanhill1/Quantum-Challenge-Grader.git
    

    Alternatively, if you also need to install Qiskit along with the grader you can instead run:

    pip install 'qc-grader[qiskit] @ git+https://github.com/ryanhill1/Quantum-Challenge-Grader.git'
    
  2. Configure the QXToken environment variables

    From a terminal (before launching your JupyterLab environment), enter

    export QXToken=your_quantum_api_token
    

    where your_quantum_api_token is your IBM Quantum API Token found in your Account Profile.

    Alternatively, if you prefer you can instead run the following at the top cell of a notebook cell (whenever you start/restart the kernel)

    %set_env QXToken=your_quantum_api_token
    

    Note: you can check if the environment variable has been set by running the following in a notebook cell:

    import os
    print(os.getenv('QXToken'))

Usage

  1. Open an exercise notebook

    • In IBM Quantum Lab, the notebooks can be found in the quantum-challenge folder in the Lab files panel
    • For local install, download the notebooks (from IBM Quantum Lab or specific challenge repo) and import into local Jupyter environment
  2. Run the notebook cells, answering the exercises and submitting solution for grading. For example

    from qc_grader.challenges.challenge_2021 import grade_lab1_ex1 
    
    grade_lab1_ex1(qc_1)
    from qc_grader.challenges.challenge_2021 import grade_lab1_ex2 
    
    grade_lab1_ex2(qc_2)

quantum-challenge-grader's People

Contributors

vabarbosa avatar huangjunye avatar tansito avatar mrvee-qc-bee avatar 0sophy1 avatar mrvee-qc avatar kaelynj avatar astri-cornish avatar ryanhill1 avatar pandasa123 avatar kevinsung avatar conradhaupt avatar frankharkins avatar gaya3-mv avatar kifumi avatar 1ucian0 avatar sbrandhsn avatar derwind avatar quantum-kittens avatar

Forkers

mahikaverma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.