Replies: 1 comment 5 replies
-
Hi @mertall, I suspect the issue is that SX was added in recent commits, and not been released yet. If you try installing from github directly it should work, if not let me know! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have been experimenting with Quimb with "peak circuits". I am trying to run the program with a GPU on google collab. I run into an issue when I pull the code directly from GitHub, as I need logic for SX gate.
`/usr/local/lib/python3.11/dist-packages/quimb/tensor/circuit.py in parse_openqasm2_str(contents)
314 qubits = tuple(
315 sitemap[qubit.strip()] for qubit in qubits.split(",")
--> 316 )
317 gates.append(Gate(label, params, qubits))
318 continue
/usr/local/lib/python3.11/dist-packages/quimb/tensor/circuit.py in init(self, label, params, qubits, controls, round, parametrize)
1170 **gate_opts,
1171 ):
-> 1172 if contract in ("auto-mps", "nonlocal"):
1173 _apply_controlled_gate_mps(psi, gate, tags=tags, **gate_opts)
1174 elif contract in (
ValueError: Unknown gate: SX.`
I am not sure how to resolve this error, I see the SX gate in the package contents. I looked at the logic for _apply_cntrolled_gate_mps... One thought I had was adding SX to the tag excplicity as a param during the add gate logic.
Looking forward to your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions