# Importing standard Qiskit libraries
from qiskit import QuantumCircuit, execute, Aer, IBMQ

# Loading your IBM Q account(s)
provider = IBMQ.load_account()

n = 1000
circ = QuantumCircuit(n,n)

circ.h(0)
for i in range(1,n):
    circ.cx(0,i)

circ.measure(range(n),range(n))

backend = Aer.get_backend("qasm_simulator")
job = execute(circ,backend)
print(job.result().get_counts())