Can we initialize two different arrays in two different qubits in a 2 qubit quantum circuit? I tried in IBMq but it showing error. So don't understand.
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit num_of_qubits = 2 q1,q2 = QuantumRegister(1, 'q1'),QuantumRegister(1, 'q2') creg_c = ClassicalRegister(2, 'c') qc = QuantumCircuit(q1,q2,creg_c) qc.initialize(message_chunks,q1) qc.initialize(key_chunks,q2)
tried with this. but this error is showing.."'Desired statevector length not a positive power of 2.'" kindly help..