Quantum, Qiskit, Quantum Mechanics, Python, Programming.
classical bit. The circuit is run on Qiskit’s qasm_simulator and stored in the answer dictionary: q=QuantumRegister(n+1) c=ClassicalRegister(n) circuit=QuantumCircuit(q,c) '''initialization''' circuit.initialize(psi,q[1:]) circuit.barrier() '''time steps''' for i in range(iterations):