<jupyter_start><jupyter_text>Quantum Phonic playlistPostprocessing playlists based off of strawberryfields, a python library for high-level functions for near term phonic devices.<jupyter_code>def degrees_sep(song_id_in): 
    
    state = []
    for i,x in enumerate(search_id_monad(song_id_in)[0]):
        state.append((search_id_monad(song_id_in)[0][0], x))

    return state

print(degrees_sep(10000))
def multi_degrees_sep(song_id_in, level): 
    
    state = []
    for i,x in enumerate(search_id_monad(song_id_in)[0]):
        state.append((search_id_monad(song_id_in)[0][0], x))
        
    state2 = []
    
    state3 = []
    for i,y in enumerate(state):
        try:
            # takes current state
            current = state[i][1]
            # prints out state
            print(state[i][1])
            # appends state
            state2.append(state[i][1])
            # finds relationships
            #ndegree = degrees_sep(song_id_in)
            
        except:
            continue
    
    return {'First Degree': state,
            'placeholder': state2}

multi_degrees_sep(10000,1)<jupyter_output>10000
18201
2611
35170
26469
26655
18360
8941
49579
3038
11263
11720
11185
19080
26064
18835
1449
19030
10249
19130<jupyter_text>state = [('a','b'),         ('c','d')]state[0][1]<jupyter_code>from strawberryfields.apps import data, plot, sample, clique
import numpy as np
import networkx as nx
import plotly

def visualize_deg_sep(song_id_in):
    G = nx.Graph()
    G.add_nodes_from(search_id_monad(song_id_in)[0])
    G.add_edges_from(degrees_sep(song_id_in))
    
    maximal_clique = search_id_monad(song_id_in)[0]

    
    return plot.graph(G, 
               maximal_clique, 
               subgraph_node_colour='#1DB954',
               subgraph_edge_colour='#1DB954',
               graph_node_colour='#ffffff',
               graph_edge_colour='#ffffff',
               background_color='#191414',
               graph_node_size=5)

visualize_deg_sep(10000)<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup