Skip to content

Commit 77259d0

Browse files
committed
Black check.
1 parent e282287 commit 77259d0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

qokit/qaoa_circuit.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ def append_x_term(qc: QuantumCircuit, q1: int, beta: float) -> None:
4949

5050

5151
def append_cost_operator_circuit(qc: QuantumCircuit, terms: Sequence, gamma: float) -> None:
52-
''' In the following, `gamma` is divided by factor of 2 in order
53-
to preserve the convention of (2 * gamma) in applying `rz` gates
54-
in `append_z_prod_term(...)` and that of (2 * beta) in applying `rx`
55-
gates in `append_x_term(...)`, which orginates from different conventions
56-
used between `QOKit` and `Qiskit`.'''
52+
"""In the following, `gamma` is divided by factor of 2 in order
53+
to preserve the convention of (2 * gamma) in applying `rz` gates
54+
in `append_z_prod_term(...)` and that of (2 * beta) in applying `rx`
55+
gates in `append_x_term(...)`, which orginates from different conventions
56+
used between `QOKit` and `Qiskit`."""
5757
for term in terms:
5858
if len(term) == 2 and (isinstance(term[1], tuple) or isinstance(term[1], list)):
5959
coeff, term_tuple = term

0 commit comments

Comments
 (0)