Skip to content

Commit 1f03425

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent f340a28 commit 1f03425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: quantum/half_adder.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def half_adder(bit0: int, bit1: int) -> q.result.counts.Counts:
4444
qc_ha.barrier()
4545

4646
# extract outputs
47-
qc_ha.measure(2, 0) # extract XOR value
48-
qc_ha.measure(3, 1) # extract AND value
47+
qc_ha.measure(2, 0) # extract XOR value
48+
qc_ha.measure(3, 1) # extract AND value
4949

5050
# Execute the circuit on the qasm simulator
5151
job = q.execute(qc_ha, simulator, shots=1000)

0 commit comments

Comments
 (0)