Skip to main content

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 qc-grader

  2. Configure the QC_API_KEY environment variables

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

    export QC_API_KEY=your_ibmcloud_api_key
    

    where your_ibmcloud_api_key is your IBM Cloud API Key found in your Account page.

    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 QC_API_KEY=your_ibmcloud_api_key
    

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

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

    Note2: If you already installed qiskit-ibm-runtime and saved your token by using QiskitRuntimeService by following this instruction once, you don't need to set-up the env variable. You can save your token by using QiskitRuntimeService like below:

    from qiskit_ibm_runtime import QiskitRuntimeService
    QiskitRuntimeService.save_account(
        channel="ibm_quantum",
        token="<YOUR_TOKEN>",
        set_as_default=True,
        overwrite=True,
    )
    

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)
    

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qc_grader-2026.7.28.tar.gz (141.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qc_grader-2026.7.28-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

Details for the file qc_grader-2026.7.28.tar.gz.

File metadata

  • Download URL: qc_grader-2026.7.28.tar.gz
  • Upload date:
  • Size: 141.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for qc_grader-2026.7.28.tar.gz
Algorithm Hash digest
SHA256 e3467cc04dce53393ca73f394ed22259b785d8f1205d445d56f493f12027fa0b
MD5 40ea597c052cdeb8a6db8ac34322eb0a
BLAKE2b-256 79e85d6b1a897cfec9a72caf3f167ddb6cbf3935e2b6b67af103ed6cd9f46d17

See more details on using hashes here.

Provenance

The following attestation bundles were made for qc_grader-2026.7.28.tar.gz:

Publisher: release.yml on qiskit-community/Quantum-Challenge-Grader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qc_grader-2026.7.28-py3-none-any.whl.

File metadata

  • Download URL: qc_grader-2026.7.28-py3-none-any.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for qc_grader-2026.7.28-py3-none-any.whl
Algorithm Hash digest
SHA256 e8516c680a5d5562270091df9ce9cde790a07ad777275754689e7c9e3697f04d
MD5 45dd268e27cc1ecd97329ff58fca386c
BLAKE2b-256 8b382fe964108cce852c524475ab477bb5a9a54cc38fca453944efbea337e83a

See more details on using hashes here.

Provenance

The following attestation bundles were made for qc_grader-2026.7.28-py3-none-any.whl:

Publisher: release.yml on qiskit-community/Quantum-Challenge-Grader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page