Closed kevinsung closed 11 months ago
# Check your answer from qc_grader.challenges.test_challenge import grade_ex1a answer_1a = 'test answer' grade_ex1a(answer_1a) # always passes
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In[3], line 2 1 # Check your answer ----> 2 from qc_grader.challenges.test_challenge import grade_ex1a 3 answer_1a = 'test answer' 4 grade_ex1a(answer_1a) # always passes File /usr/local/venvs/spring-challenge-2023-Z2vuRc2j/lib/python3.10/site-packages/qc_grader/challenges/test_challenge/__init__.py:14 1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 3 (...) 11 # copyright notice, and modified files need to carry a notice indicating 12 # that they have been altered from the originals. ---> 14 from .exercise1 import ( 15 grade_ex1a, 16 grade_ex1b, 17 grade_ex1c, 18 grade_ex1d 19 ) 21 from .exercise2 import grade_ex2a File /usr/local/venvs/spring-challenge-2023-Z2vuRc2j/lib/python3.10/site-packages/qc_grader/challenges/test_challenge/exercise1.py:17 14 from pathlib import Path 15 from typeguard import typechecked ---> 17 from qc_grader.grader.grade import grade 20 challenge_id = Path(__file__).parent.name 23 @typechecked 24 def grade_ex1a(answer: str) -> None: File /usr/local/venvs/spring-challenge-2023-Z2vuRc2j/lib/python3.10/site-packages/qc_grader/grader/grade.py:21 18 from qiskit import execute 19 from qiskit.providers.ibmq.job import IBMQJob ---> 21 from .api import ( 22 get_access_token, 23 get_grading_endpoint, 24 get_problem_set_endpoint, 25 get_submission_endpoint, 26 send_request, 27 do_grade_only 28 ) 29 from .common import ( 30 ValidationResult, 31 calc_depth, 32 get_provider, 33 serialize_answer 34 ) 37 def grade( 38 answer: Any, 39 question: Union[str, int], 40 challenge: Optional[str] = None, 41 **kwargs: Any 42 ) -> Tuple[bool, Optional[Union[str, int, float]], Optional[Union[str, int, float]]]: File /usr/local/venvs/spring-challenge-2023-Z2vuRc2j/lib/python3.10/site-packages/qc_grader/grader/api.py:22 19 from typing import Dict, List, Mapping, Optional, Union 21 from qc_grader import __version__ ---> 22 from .common import MaxContentError, normalize_slash 25 is_staging: bool = 'auth-dev' in os.getenv('QXAuthURL', 'auth-dev') 27 # possible challenge grading endpoints: https://qac-grading-dev.quantum-computing.ibm.com/ File /usr/local/venvs/spring-challenge-2023-Z2vuRc2j/lib/python3.10/site-packages/qc_grader/grader/common.py:38 35 from qiskit.result import ProbDistribution, QuasiDistribution 36 from qiskit.algorithms.minimum_eigensolvers.vqe import VQEResult ---> 38 from qiskit_ibm_runtime.qiskit.primitives import ( 39 SamplerResult as sampler_result, 40 EstimatorResult as estimator_result 41 ) 43 from networkx import Graph 46 ValidationResult = Tuple[bool, Optional[Union[str, int, float]]] ModuleNotFoundError: No module named 'qiskit_ibm_runtime.qiskit'
this issue is being closed because it is no longer reproducible