Please refer to the topic on function Statevector: https://qiskit.org/documentation/stubs/qiskit.quantum_info.Statevector.html#statevector
instantiate a quantum circuit of one qubit:
QuantumCircuit(1)
instantiate the form of the state vector for this one qubit:Statevector([sqrt(0.3), sqrt(0.7)])
which says that this one qubit is described by a state vector of the form $|\psi\rangle = \sqrt(0.3)|0\rangle + \sqrt(0.7)|1\rangle$
Following the spirit of the documentation, the below must say $|\psi\rangle = \sqrt(0.2)|0\rangle + \sqrt(0.2)|1\rangle + \sqrt(0.6)|2\rangle$
Statevector([sqrt(0.2), sqrt(0.2), sqrt(0.6)])
?
The code below evaluates programmatically but I am unsure it is sane.