I was trying to run this code on a quantum computer but I was getting an error can anyone suggest how to resolve this error?
enter preformatted text here
vector = [(159+625j), (3+71j)]
norm = np.linalg.norm(vector)
qc = QuantumCircuit(1) # Create a quantum circuit with one qubit
initial_state = vector/np.linalg.norm(vector)
print('initial state is')
print(initial_state)
qc.initialize(initial_state, 0)
qc.x(0) ###### for not gate
qc.h(0) ####### for hadamard gate
qc.snapshot('final', snapshot_type='statevector')
a = qc.draw()
print(a)
IBMQ.load_account()
#provider = IBMQ.get_provider = ('ibm-q')
provider = IBMQ.load_account()
qcomp= provider.get_backend('ibmq_belem')
job = execute(qc,backend=qcomp)
from qiskit.tools.monitor import job_monitor
job_monitor(job)
result = job.result()
plot_histogram(result.get_counts(qc))
When I ran this through the quantum computer I am getting this error:
Cannot unroll the circuit to the given basis, ['id', 'rz', 'sx', 'x', 'cx', 'reset'].
No rule to expand instruction multiplex1_dg.