Skip to content

MQT predictor installation #135

Closed Answered by burgholzer
tanmay0550 asked this question in Q&A
Sep 30, 2023 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

I can reproduce your error with the following steps

git clone https://github.com/cda-tum/mqt-predictor
cd mqt-predictor
python3 -m venv .venv
. .venv/bin/activate
pip install -U pip setuptools wheel
pip install .

I traced back the issue to the following package version issue:
The above command install pytket-qiskit 0.39.0.
That package declares a dependency on pytket~=0.15.
Due to the way dependencies work in Python, this installs pytket-1.20.1, when in reality the TKET developers most likely intended to write pytket~=0.15.0, which would have led to pytket-1.15.0 being installed.
To resolve the problems you are seeing, you can simply downgrade to a compatible pytket version via

pip uninst…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@burgholzer
Comment options

@tanmay0550
Comment options

@tanmay0550
Comment options

@burgholzer
Comment options

Answer selected by burgholzer
@tanmay0550
Comment options

@burgholzer
Comment options

@tanmay0550
Comment options

@burgholzer
Comment options

Comment options

You must be logged in to vote
1 reply
@nquetschlich
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants