If this question sounds trivial please bear with me as I am beginner in QC.
Code 1
qc = QuantumCircuit(1,1)
qc.measure(0,0)
qc.draw()
job = sim.run(qc) # run the experiment
result = job.result() # get the results
result.get_counts() # interpret the results as a "counts" dictionary
Output: {'0': 1024}
Code 2
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector
qc = QuantumCircuit(1,1)
ket = Statevector(qc)
print(ket.draw())
Output:
Statevector([1.+0.j, 0.+0.j],
dims=(2,))
Question 1
I understand that in 1st code, qubit is in zero state and in 2nd code statevector is as displayed above.
As statevector tells the state of a vector so [1.+0.j, 0.+0.j]
what exactly it is telling ? Is it saying that value of qubit is 1 in one basis and zero in other basis?
if so, where is it defined that there are only 2 basis, why not 3 or more..
Question 2
What exactly is the difference between two results {'0': 1024}
and [1.+0.j, 0.+0.j]
Question 3
If there would have been 2 qubits in the circuit, qc = QuantumCircuit(2,2)
then it will be called multi-qubit state correct?
Question 4 Value of a qubit is initialized as zero by default, why so?