from qiskit import QuantumCircuit

qc = QuantumCircuit(1)
init_state = [0, 1]
qc.initialize(init_state, 0)
qc.draw()

from qiskit import assemble, Aer
backend = Aer.get_backend('statevector_simulator')

## optional ##
# assemble a list of circuits and create Qobj
qobj = assemble(qc) # A backwards compat (上位互換) alias for QasmQobj

result = backend.run(qobj).result()

result.get_statevector()

from qiskit import execute
result = execute(qc, backend).result()
result.get_statevector()

