Quantum Computing, Quantum Physics, Programming, Physics, Science.
import Aer, execute from sympy import Matrix qc = QuantumCircuit(3) sim_ham({"XZY": 2, "ZXX": 5, "YXZ": 2}, 1 / (2 * np.pi), qc, [0, 1, 2], trotter=50) qc = qc.reverse_bits() backend = Aer.get_backend('statevector_simulator') result = execute(qc, backend).result() vec = result.get_statevector() vec