Quantum Challenge Grader
Grading client for the IBM Quantum Challenge grading service.
Run locally
Pre-requisites:
- IBM Quantum account
- Python (3.10 or later) environment with
- Classic Jupyter Notebook interface or JupyterLab
To install the grader locally:
-
In the Python environment, install the grading client:
pip install qc-grader -
Configure the
QC_API_KEYenvironment variablesFrom a terminal (before launching your JupyterLab environment), enter
export QC_API_KEY=your_ibmcloud_api_keywhere
your_ibmcloud_api_keyis 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_keyNote1: 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
QiskitRuntimeServiceby following this instruction once, you don't need to set-up the env variable. You can save your token by usingQiskitRuntimeServicelike below:from qiskit_ibm_runtime import QiskitRuntimeService QiskitRuntimeService.save_account( channel="ibm_quantum", token="<YOUR_TOKEN>", set_as_default=True, overwrite=True, )
Usage
-
Open an exercise notebook
- In IBM Quantum Lab, the notebooks can be found in the
quantum-challengefolder 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
- In IBM Quantum Lab, the notebooks can be found in the
-
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06842aba2b1568b28026df4486dcaf828e56ab91c7e420174a215450ecd6d6bb
|
|
| MD5 |
d3ef99ebd081262dbe6ffd2aefb8519c
|
|
| BLAKE2b-256 |
70e4f8ef95baffd0b11fafd548a35cfe3f6b3255bbabe1717d83640104da132b
|
Provenance
The following attestation bundles were made for qc_grader-2026.6.29.tar.gz:
Publisher:
release.yml on qiskit-community/Quantum-Challenge-Grader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qc_grader-2026.6.29.tar.gz -
Subject digest:
06842aba2b1568b28026df4486dcaf828e56ab91c7e420174a215450ecd6d6bb - Sigstore transparency entry: 2008533901
- Sigstore integration time:
-
Permalink:
qiskit-community/Quantum-Challenge-Grader@164a20a577005680f6c1d0482e85d8ed0a3f4ccd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/qiskit-community
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@164a20a577005680f6c1d0482e85d8ed0a3f4ccd -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e2ac767fa7677adfe8610e455835e18ed9b93008296c9c6ea6c3b2b53b83649
|
|
| MD5 |
b606ff1bdb0622d3a85e393a777da65f
|
|
| BLAKE2b-256 |
f5744c5b2456b3c379bb7bb2c40cff659969eadc03073f1c46c2251a56c970e8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qc_grader-2026.6.29-py3-none-any.whl -
Subject digest:
9e2ac767fa7677adfe8610e455835e18ed9b93008296c9c6ea6c3b2b53b83649 - Sigstore transparency entry: 2008534105
- Sigstore integration time:
-
Permalink:
qiskit-community/Quantum-Challenge-Grader@164a20a577005680f6c1d0482e85d8ed0a3f4ccd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/qiskit-community
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@164a20a577005680f6c1d0482e85d8ed0a3f4ccd -
Trigger Event:
push
-
Statement type: