original_docstring: 
      
      # Scenario 3:   
      
      # We have to consider ONLY qubits q3, which has been entangled with q4  
      definitive_results.append(inverted_list[3])
      
docstring: Scenario 3:
  We have to consider ONLY qubits q3, which has been entangled with q4
  definitive_results.append(inverted_list[3])
docstring_tokens: Scenario 3 : We have to consider ONLY qubits q3 which has been entangled with q4 definitive_results . append ( inverted_list [ 3 ] )
code: def circuit_measure (backend_name, encoding_circuit, bob_basis, nth_circuit):	
    
      i = nth_circuit
      
      list_of_results = []
      inverted_list = []
      
      definitive_results = []
      
      for k in range(5):
  
          if bob_basis[5*i + k] == 0: # Bob chooses {|0>, |1>} basis
              # Measurement with the default {|0>, |1>} basis
              encoding_circuit.measure(k,k)
                      
          if bob_basis[5*i + k] == 1: # Bob chooses {|+>, |->} basis
              # Measurement with the {|+>, |->} basis
              x_measure(encoding_circuit, k, k)
       
      backend = provider.get_backend(backend_name)
      job = execute(encoding_circuit, backend, shots=1, memory=True)
      result = job.result()
      list_of_results = result.get_memory()
              
      list_of_results = list(map(int, str(list_of_results[0]))) 
      # But these results are ordered backwards!
      # Their order must be inverted!
      
      for k in range(5):
          inverted_list.append(list_of_results[4-k])
    
      
      # Scenario 1-2:
      definitive_results = inverted_list
      """
      
      # Scenario 3:   
      
      # We have to consider ONLY qubits q3, which has been entangled with q4  
      definitive_results.append(inverted_list[3])
      """
      """
      encoding_circuit.draw("mpl")
      print("\nlist_of_results:", list_of_results)
      print("inverted_list:", inverted_list)
      print("definitive_results:", definitive_results)
      """
      
      return definitive_results
code_tokens: def circuit_measure ( backend_name , encoding_circuit , bob_basis , nth_circuit ) : i = nth_circuit list_of_results = [ ] inverted_list = [ ] definitive_results = [ ] for k in range ( 5 ) : if bob_basis [ 5 * i + k ] == 0 : encoding_circuit . measure ( k , k ) if bob_basis [ 5 * i + k ] == 1 : x_measure ( encoding_circuit , k , k ) backend = provider . get_backend ( backend_name ) job = execute ( encoding_circuit , backend , shots = 1 , memory = True ) result = job . result ( ) list_of_results = result . get_memory ( ) list_of_results = list ( map ( int , str ( list_of_results [ 0 ] ) ) ) for k in range ( 5 ) : inverted_list . append ( list_of_results [ 4 - k ] ) definitive_results = inverted_list """
      encoding_circuit.draw("mpl")
      print("\nlist_of_results:", list_of_results)
      print("inverted_list:", inverted_list)
      print("definitive_results:", definitive_results)
      """ return definitive_results
short_docstring: Scenario 3:
   We have to consider ONLY qubits q3, which has been entangled with q4
  definitive_results.append(inverted_list[3])
short_docstring_tokens: Scenario 3 : We have to consider ONLY qubits q3 which has been entangled with q4 definitive_results . append ( inverted_list [ 3 ] )
comment: # Bob chooses {|0>, |1>} basis$SEP$# Measurement with the default {|0>, |1>} basis$SEP$# Bob chooses {|+>, |->} basis$SEP$# Measurement with the {|+>, |->} basis$SEP$# But these results are ordered backwards!$SEP$# Their order must be inverted!$SEP$# Scenario 1-2:$SEP$"""
      
      # Scenario 3:   
      
      # We have to consider ONLY qubits q3, which has been entangled with q4  
      definitive_results.append(inverted_list[3])
      """$SEP$"""
      encoding_circuit.draw("mpl")
      print("\nlist_of_results:", list_of_results)
      print("inverted_list:", inverted_list)
      print("definitive_results:", definitive_results)
      """