Skip to content

Commit 5835e3c

Browse files
committed
Fixing the factor of 2.
1 parent 76fe36e commit 5835e3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qokit/qaoa_circuit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def append_cost_operator_circuit(qc: QuantumCircuit, terms: Sequence, gamma: flo
5656
elif any([isinstance(i, tuple) for i in term]):
5757
raise ValueError(f"Invalid term received: {term}")
5858
else:
59-
append_z_prod_term(qc, term, gamma / 2)
59+
append_z_prod_term(qc, term, gamma)
6060

6161

6262
def append_mixer_operator_circuit(qc: QuantumCircuit, beta: float) -> None:

0 commit comments

Comments
 (0)