Skip to content

add metadata + fix error #974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 41 additions & 38 deletions algorithms/qaoa/maxcut/qaoa_maxcut.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ qfunc mixer_layer(beta: real, qba: qbit[]) {
}, qba);
}

qfunc qaoa_ansatz(cost_layer: qfunc (real, qbit[]), num_layers: int, gammas: real[], betas: real[], qba: qbit[]) {
hadamard_transform(qba);
repeat (i: num_layers) {
qfunc qaoa_ansatz(cost_layer: qfunc (real, qbit[]), gammas: real[], betas: real[], qba: qbit[]) {
repeat (i: betas.len) {
cost_layer(gammas[i], qba);
mixer_layer(betas[i], qba);
}
Expand All @@ -17,6 +16,7 @@ qfunc maxcut_cost_layer(gamma: real, v: qbit[]) {
}

qfunc main(params: real[8], output v: qbit[5]) {
allocate(v.size, v);
qaoa_ansatz(maxcut_cost_layer, 4, params[0:4], params[4:8], v);
allocate(v);
hadamard_transform(v);
qaoa_ansatz(maxcut_cost_layer, params[0:4], params[4:8], v);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@
"machine_precision": 8,
"custom_hardware_settings": {
"basis_gates": [
"tdg",
"sx",
"h",
"ry",
"u",
"cz",
"rx",
"u1",
"y",
"x",
"id",
"u2",
"cy",
"sxdg",
"s",
"sdg",
"r",
"sxdg",
"id",
"cx",
"rz",
"u2",
"u",
"h",
"p",
"s",
"tdg",
"rx",
"z",
"t",
"z"
"y",
"rz",
"sx",
"cy",
"r",
"cz",
"ry"
],
"is_symmetric_connectivity": true
},
Expand All @@ -39,6 +39,6 @@
"pretty_qasm": true,
"transpilation_option": "auto optimize",
"timeout_seconds": 300,
"random_seed": 415303440
"random_seed": 536323933
}
}
14 changes: 7 additions & 7 deletions tests/resources/timeouts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ arithmetic_expression_example.ipynb: 30
arithmetic_expression_example.qmod: 10
arithmetic_expressions.ipynb: 40
auxiliary_management.ipynb: 40
bb84_implementation.ipynb: 150
bb84_implementation.qmod: 150
bell_state_of_2_qubits.qmod: 10
bernstein_vazirani.ipynb: 32
bernstein_vazirani_example.qmod: 32
Expand All @@ -48,6 +50,8 @@ bitwise_or_integer_example.qmod: 10
bitwise_xor_2vars_example.qmod: 10
bitwise_xor_example.ipynb: 30
bitwise_xor_integer_example.qmod: 10
bpde.ipynb: 600
bpde.qmod: 10
classical_variables_and_operations.ipynb: 20
classical_variables_and_operations.qmod: 10
classiq_discrete_quantum_walk.ipynb: 300
Expand Down Expand Up @@ -224,8 +228,8 @@ protein_folding.qmod: 240
qaoa.ipynb: 450
qaoa_knapsack.ipynb: 300
qaoa_knapsack.qmod: 300
qaoa_max_cut.qmod: 300
qaoa_maxcut.ipynb: 300
qaoa_maxcut.qmod: 300
qct_qst.ipynb: 30
qct_qst_type1.qmod: 20
qct_qst_type2.qmod: 20
Expand Down Expand Up @@ -264,6 +268,8 @@ qsvt_matrix_inversion.ipynb: 180
qsvt_matrix_inversion.qmod: 156
quantum_autocallable_option_pricing.ipynb: 700
quantum_autoencoder.ipynb: 120
quantum_compression_algorithm_for_symmetric_states.ipynb: 60
quantum_compression_algorithm_for_symmetric_states.qmod: 60
quantum_counting.ipynb: 300
quantum_counting_iqae.qmod: 200
quantum_counting_qpe.qmod: 200
Expand Down Expand Up @@ -334,9 +340,3 @@ whats_classiq.ipynb: 400
whats_classiq.qmod: 1000
whitebox_fuzzing.ipynb: 720
whitebox_fuzzing.qmod: 720
bb84_implementation.ipynb: 150
bb84_implementation.qmod: 150
quantum_compression_algorithm_for_symmetric_states.ipynb: 60
quantum_compression_algorithm_for_symmetric_states.qmod: 60
bpde.ipynb: 600
bpde.qmod: 10