Skip to content
Merged
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
4 changes: 2 additions & 2 deletions applications/optimization/adaptive_qaoa_lib.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "adaptiveqaoa",
"language": "python",
"name": "python3"
},
Expand All @@ -1330,7 +1330,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.12.12"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"friendly_name": "Robust Posture Optimization",
"description": "Use Hybrid quantum algorithm for solving the inverse kinematic problem of Robotic arm",
"problem_domain_tags": ["optimization"],
"qmod_type": ["application"],
"level": ["demos"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
qfunc q0_rotate(theta: real[], q0: qbit) {
RZ(theta[2], q0);
RY(theta[1], q0);
RX(theta[0], q0);
}

qfunc q1_rotate(theta: real[], q1: qbit) {
RZ(theta[5], q1);
RY(theta[4], q1);
RX(theta[3], q1);
}

qfunc pauli_Y_measure(q: qbit[]) {
S(q[0]);
H(q[0]);
S(q[1]);
H(q[1]);
}

qfunc main(theta: real[6], output q: qbit[2]) {
allocate(q);
q0_rotate(theta, q[0]);
q1_rotate(theta, q[1]);
q0_rotate(theta, q[1]);
pauli_Y_measure(q);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@
"basis_gates": [
"h",
"rx",
"u",
"s",
"cx",
"sx",
"rz",
"cy",
"u1",
"r",
"z",
"cx",
"u2",
"cz",
"t",
"y",
"sdg",
"u",
"sxdg",
"p",
"id",
"sdg",
"tdg",
"u2",
"z",
"r",
"u1",
"sxdg",
"cz",
"cy",
"x",
"ry",
"x"
"id",
"s",
"sx"
],
"is_symmetric_connectivity": true
},
Expand All @@ -36,7 +36,7 @@
"optimization_level": 1,
"output_format": ["qasm"],
"pretty_qasm": true,
"random_seed": 3858854528,
"random_seed": 181731280,
"synthesize_all_separately": false,
"timeout_seconds": 300,
"transpilation_option": "auto optimize"
Expand Down
Loading
Loading