Quantum, Qiskit, Quantum Mechanics, Python, Programming.
circuit.append(splitOp,q[:]) '''measurement''' for i in range(1,n+1): circuit.measure(i,i-1) #circuit.draw('mpl') answer = execute(circuit, backend=BasicAer.get_backend('qasm_simulator'), shots=5000).result().get_counts() The following code plots the results on a histogram: for a in range(N): s =