old_contents: """
  Example on how to use: load_qasm_file
  
  """
  from qiskit.wrapper import load_qasm_file
  from qiskit import QISKitError, execute, Aer
  
  try:
      qc = load_qasm_file("examples/qasm/entangled_registers.qasm")
  
      # See a list of available local simulators
      print("Aer backends: ", Aer.backends())
      sim_backend = Aer.get_backend('qasm_simulator')
  
  
      # Compile and run the Quantum circuit on a local simulator backend
      job_sim = execute(qc, sim_backend)
      sim_result = job_sim.result()
  
      # Show the results
      print("simulation: ", sim_result)
      print(sim_result.get_counts(qc))
  
  except QISKitError as ex:
      print('There was an internal Qiskit error. Error = {}'.format(ex))
  
  
new_contents: """
  Example on how to load a file into a QuantumCircuit
  
  """
  from qiskit import QuantumCircuit
  from qiskit import QISKitError, execute, Aer
  
  try:
      circ = QuantumCircuit.from_qasm_file("examples/qasm/entangled_registers.qasm")
      print(circ.draw())
  
      # See the backend
      sim_backend = Aer.get_backend('qasm_simulator')
  
  
      # Compile and run the Quantum circuit on a local simulator backend
      job_sim = execute(circ, sim_backend)
      sim_result = job_sim.result()
  
      # Show the results
      print("simulation: ", sim_result)
      print(sim_result.get_counts(circ))
  
  except QISKitError as ex:
      print('There was an internal Qiskit error. Error = {}'.format(ex))
  
  
subject: load qasm exampe (#1294)