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.6.29.tar.gz (140.3 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.6.29-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qc_grader-2026.6.29.tar.gz
Algorithm Hash digest
SHA256 06842aba2b1568b28026df4486dcaf828e56ab91c7e420174a215450ecd6d6bb
MD5 d3ef99ebd081262dbe6ffd2aefb8519c
BLAKE2b-256 70e4f8ef95baffd0b11fafd548a35cfe3f6b3255bbabe1717d83640104da132b

See more details on using hashes here.

Provenance

The following attestation bundles were made for qc_grader-2026.6.29.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.6.29-py3-none-any.whl.

File metadata

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

File hashes

Hashes for qc_grader-2026.6.29-py3-none-any.whl
Algorithm Hash digest
SHA256 9e2ac767fa7677adfe8610e455835e18ed9b93008296c9c6ea6c3b2b53b83649
MD5 b606ff1bdb0622d3a85e393a777da65f
BLAKE2b-256 f5744c5b2456b3c379bb7bb2c40cff659969eadc03073f1c46c2251a56c970e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for qc_grader-2026.6.29-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