We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qiskit Aer does not handle isolated qubits (ie., not in a register)
from qiskit import Aer, QuantumCircuit, execute from qiskit.circuit import Qubit, Clbit sim = Aer.get_backend("qasm_simulator") bits = [Qubit(), Clbit(), Clbit()] qc = QuantumCircuit(bits) qc.x(bits[0]) qc.measure(bits[0], bits[1]) qc.measure(bits[0], bits[2]) result = execute( qc, backend=sim ).result()
Gives
Simulation failed and returned the following error message: ERROR: Failed to load qobj: Invalid Qobj experiment: not enough memory slots.
Completes with
{'1 1': 1024}
As of https://github.com/Qiskit/qiskit-terra/blob/b4bc559228c3898817978c3d8c3fc97372beecad/qiskit/circuit/bit.py#L65 Qiskit Terra allows clbits to not be in registers (or be in multiple registers!). This seems to break result handling.
The text was updated successfully, but these errors were encountered:
@taalexander Could you test with 0.12.0? This looks similar to #1660 and resolved by #1717.
Sorry, something went wrong.
I can confirm 0.12.0 resolves this.
No branches or pull requests
Informations
What is the current behavior?
Qiskit Aer does not handle isolated qubits (ie., not in a register)
Steps to reproduce the problem
Gives
What is the expected behavior?
Completes with
Suggested solutions
As of https://github.com/Qiskit/qiskit-terra/blob/b4bc559228c3898817978c3d8c3fc97372beecad/qiskit/circuit/bit.py#L65
Qiskit Terra allows clbits to not be in registers (or be in multiple registers!). This seems to break result handling.
The text was updated successfully, but these errors were encountered: