Update app.py
Browse files
app.py
CHANGED
|
@@ -60,10 +60,10 @@ Generating quantum circuits with diffusion models. Official demo of [[paper-arxi
|
|
| 60 |
col1, col2 = st.columns(2)
|
| 61 |
|
| 62 |
srv = col1.text_input('SRV', "[1,1,1,2,2]")
|
| 63 |
-
num_of_qubits =
|
| 64 |
max_gates = col1.select_slider('Max gates', options=[4,8,12,16,20,24,28], value=16)
|
| 65 |
g = col1.slider('Guidance scale', min_value=0.0, max_value=15.0, value=7.5)
|
| 66 |
|
| 67 |
-
if
|
| 68 |
image = get_correct_qcs_image(ast.literal_eval(srv), num_of_qubits, max_gates, g)
|
| 69 |
-
|
|
|
|
| 60 |
col1, col2 = st.columns(2)
|
| 61 |
|
| 62 |
srv = col1.text_input('SRV', "[1,1,1,2,2]")
|
| 63 |
+
num_of_qubits = col2.radio('Number of qubits (should match SRV)', [3,4,5,6,7,8], index=2)
|
| 64 |
max_gates = col1.select_slider('Max gates', options=[4,8,12,16,20,24,28], value=16)
|
| 65 |
g = col1.slider('Guidance scale', min_value=0.0, max_value=15.0, value=7.5)
|
| 66 |
|
| 67 |
+
if col2.button('Generate circuits'):
|
| 68 |
image = get_correct_qcs_image(ast.literal_eval(srv), num_of_qubits, max_gates, g)
|
| 69 |
+
st.image(image, use_column_width=False)
|