Skip to content

Commit

Permalink
Fix angle naming pyquil
Browse files Browse the repository at this point in the history
  • Loading branch information
KilianPoirier committed Jun 21, 2024
1 parent 9e1eb6e commit e82f9bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ def parametric_qaoa_circuit(self) -> Program:
if each_gate.gate_label.type.value in ["MIXER", "COST"]:
gatelabel_pyquil = each_gate.gate_label.__repr__()
gatelabel_pyquil = (
"one" + gatelabel_pyquil[1:]
"one" + gatelabel_pyquil[3:]
if each_gate.gate_label.n_qubits == 1
else "two" + gatelabel_pyquil[1:]
else "two" + gatelabel_pyquil[3:]
)
angle_param = parametric_circuit.declare(gatelabel_pyquil.lower(), "REAL", 1)
each_gate.angle_value = angle_param
Expand Down

0 comments on commit e82f9bc

Please sign in to comment.