Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grade_lab0_ex1 #4

Open
Jer-lin opened this issue Jun 6, 2024 · 7 comments
Open

grade_lab0_ex1 #4

Jer-lin opened this issue Jun 6, 2024 · 7 comments

Comments

@Jer-lin
Copy link

Jer-lin commented Jun 6, 2024

In Challenge 2024... I could fase some error while doing my exercise in qiskit which shows like "grade_lab0_ex1 is not defined".... Also I couldn't install version: 1.0 instead version 1.1 how should I upgrade it.(I'm a pretty beginner)

@andercrespoo
Copy link

This may happen because you haven't ran the from qc_grader.challenges.iqc_2024 import grade_lab0_ex1 block yet and therefore the command is not defined in the code. Run first the "### Imports"code block, right below the token code block, to make sure that command is defined. In case you have more definition errors, run first all the blocks above the grader one to make sure everything is defined.

You can do this just by clicking all the way in the first block where it says "### INSTALL QISKIT: Cloud-based environment ###" and then keep on running all the block by pressing shift+enter or just go to each code blocks and run them one by one.

Hope this helps!

@E-HOLL
Copy link

E-HOLL commented Jun 6, 2024

I got a git-problem installing notebook0 in my Anaconda PC envitonment with
pip install git+https://github.com/qiskit-community/Quantum-Challenge-Grader.git
error: Running command git clone --filter=blob:none --quiet https://github.com/qiskit-community/Quantum-Challenge-Grader.git 'C:\Users\EHoll\AppData\Local\Temp\pip-req-build-0xz2229z'
It's the only problem
Does someone know what to do?

@Jer-lin
Copy link
Author

Jer-lin commented Jun 6, 2024 via email

@Simaesf
Copy link

Simaesf commented Jun 6, 2024

The grader installation fails in older versions of python (for me, I had python 3.8) due to failing in installing "networkx".
I updated my python to version 3.12.3 and the issue was resolved.

@vsinha027
Copy link

Hey I am trying to run lab_0 on Google colab, and ran into this error:
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 8>()
6 from qiskit_aer import AerSimulator
7 import matplotlib.pyplot as plt
----> 8 from qc_grader.challenges.iqc_2024 import grade_lab0_ex1

1 frames
/usr/local/lib/python3.10/dist-packages/qc_grader/challenges/iqc_2024/lab3.py in
4
5 from qiskit import QuantumCircuit
----> 6 from qiskit_serverless.core.function import QiskitFunction
7 from qiskit import QuantumCircuit
8 from qiskit_serverless.core.job import Job

ModuleNotFoundError: No module named 'qiskit_serverless'

@Jer-lin
Copy link
Author

Jer-lin commented Jun 7, 2024 via email

@reiyareiyareiya
Copy link

Although I couldn't run "from qc_grader.challenges.iqc_2024 import grade_lab0_ex1", in my case I solved the problem by first running "!pip install qiskit-transpiler-service".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants