line 225, in qregs = [self._reg[i] for i in wires]
line 122, in getitem raise CircuitError(“expected integer or slice index into register”)
qiskit.circuit.exceptions.CircuitError: ‘expected integer or slice index into register’
I have tried to read about the np int wires issue, but from what I can gather the issue was resolved? Below is what I believe to be creation of a Bell state on Qiskit hardware that ought to work? Please let me know if I have made a mistake in my code and I will try figure it out from the docs.
from qiskit import IBMQ import pennylane as qml IBMQ.load_account() provider = IBMQ.get_provider(hub='ibm-q', group='open', project='main') device = qml.device('qiskit.ibmq', provider=provider, backend='ibmq_valencia', wires=2, shots=10) @qml.qnode(device) def circuit(): qml.Hadamard(wires=0) qml.CNOT(wires=[0, 1]) return qml.probs(wires=[0, 1]) print(circuit())