we only support qubit types defined in cirq-core. cirq-rigetti and cirq-pasqal both define custom qubit types, which currently result in internal server errors when submitted to superstaq, e.g.
we should add a validator to reject these circuits client-side with a helpful message
something like this should be sufficient:
supported_qid_types = (
cirq.LineQubit, cirq.LineQid, cirq.GridQubit, cirq.GridQid, cirq.NamedQubit, cirq.NamedQid
)
if not all(isinstance(q, supported_qid_types) for q in circuit.all_qubits()):
raise ...
What is happening?
we only support qubit types defined in cirq-core. cirq-rigetti and cirq-pasqal both define custom qubit types, which currently result in internal server errors when submitted to superstaq, e.g.
we should add a validator to reject these circuits client-side with a helpful message
something like this should be sufficient:
What are the current alternatives?
Any additional context?
No response