def get_statevector(prog: QuantumCircuit) -> Any:
    state_backend = Aer.get_backend('statevector_simulator')
    statevec = execute(prog, state_backend).result()
    quantum_state = statevec.get_statevector()
    qubits = round(log2(len(quantum_state)))
    quantum_state = {(('|' + np.binary_repr(i, qubits)) + '>'): quantum_state[i] for i in range((2 ** qubits))}
    return quantum_state
def get_statevector(prog: QuantumCircuit) -> Any:
    state_backend = Aer.get_backend('statevector_simulator')
    statevec = execute(prog, state_backend).result()
    quantum_state = statevec.get_statevector()
    qubits = round(log2(len(quantum_state)))
    quantum_state = {(('|' + np.binary_repr(i, qubits)) + '>'): quantum_state[i] for i in range((2 ** qubits))}
    return quantum_state