Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.08k stars 2.34k forks source link

Support for the Reset instruction for remote simulators #11270

Closed antalszava closed 1 month ago

antalszava commented 10 months ago

What should we add?

The remote simulators ibmq_qasm_simulator and simulator_statevector on IBM quantum experience raise the following error:

qiskit.exceptions.QiskitError: "Cannot unroll the circuit to the given basis, dict_keys(['diagonal', 'multiplexer', 'rxx', 'mcx', 'mcu1', 'mcry', 'u3', 'rz', 'z', 'mcrz', 'u2', 'mcrx', 'mcr', 'u1', 'mcswap', 'p', 'mcu3', 'ccx', 'kraus', 'y', 'mcz', 'delay', 'cx', 'measure', 'cu2', 'sdg', 'initialize', 'x', 'cu3', 'unitary', 't', 'cp', 'mcsx', 'mcp', 'cz', 'rx', 'cy', 'csx', 'u', 'rzx', 'mcu2', 'sx', 'rzz', 'ry', 'r', 'ryy', 'cu1', 'cswap', 'mcy', 'swap', 'roerror', 'id', 'h', 's', 'tdg']). Instruction reset not found in equivalence library and no rule found to expand."

It would be great to be able to perform a reset operation on simulators too.

1ucian0 commented 1 month ago

With the retirement of remote simulators, this issue does not apply anymore. Therefore, closing as not-planned.