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.2.tar.gz (140.7 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.2-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qc_grader-2026.7.2.tar.gz
  • Upload date:
  • Size: 140.7 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.7.2.tar.gz
Algorithm Hash digest
SHA256 09f29e5173f63d7dc85bb5e5873eaa9c9af9fdd2f6e257b406fd31ea3853c533
MD5 efc5c3b95cca62e0f15716c070565439
BLAKE2b-256 e8f50cbd6a3f65ef661e6fd95bf9aeadb4a37496d325746fca754d33e8a690f2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qc_grader-2026.7.2-py3-none-any.whl
  • Upload date:
  • Size: 54.0 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.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f2cb9f6a518a0f7ddf75d108d1aae7ca5e79194d542d19fe0691b10740caee62
MD5 03fbf6f2faee4dfd899319ea9b560547
BLAKE2b-256 059c4bf1f670628acbce0b04455f06beb3bbca5c4fcbf60bf15decc423b9be03

See more details on using hashes here.

Provenance

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