Skip to content

Commit

Permalink
rename fixed-point to fixed-sized
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryoris committed May 20, 2021
1 parent ceedc70 commit 456020a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def __init__(
state :math:`|a\rangle` or :math:`|b\rangle`. The two input
registers must have the same number of qubits.
kind: The kind of adder, can be ``'full'`` for a full adder, ``'half'`` for a half
adder, or ``'fixed'`` for a fixed-point adder. A full adder includes both carry-in
and carry-out, a half only carry-out, and a fixed-point adder neither carry-in
adder, or ``'fixed'`` for a fixed-sized adder. A full adder includes both carry-in
and carry-out, a half only carry-out, and a fixed-sized adder neither carry-in
nor carry-out.
name: The name of the circuit object.
Raises:
Expand Down
4 changes: 2 additions & 2 deletions qiskit/circuit/library/arithmetic/adders/draper_qft_adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def __init__(
state :math:`|a\rangle` or :math:`|b\rangle`. The two input
registers must have the same number of qubits.
kind: The kind of adder, can be ``'half'`` for a half adder or
``'fixed'`` for a fixed-point adder. A half adder contains a carry-out to represent
the most-significant bit, but the fixed-point adder doesn't and hence performs
``'fixed'`` for a fixed-sized adder. A half adder contains a carry-out to represent
the most-significant bit, but the fixed-sized adder doesn't and hence performs
addition modulo ``2 ** num_state_qubits``.
name: The name of the circuit object.
Raises:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def __init__(
Args:
num_state_qubits: The size of the register.
kind: The kind of adder, can be ``'full'`` for a full adder, ``'half'`` for a half
adder, or ``'fixed'`` for a fixed-point adder. A full adder includes both carry-in
and carry-out, a half only carry-out, and a fixed-point adder neither carry-in
adder, or ``'fixed'`` for a fixed-sized adder. A full adder includes both carry-in
and carry-out, a half only carry-out, and a fixed-sized adder neither carry-in
nor carry-out.
name: The name of the circuit.
Expand Down

0 comments on commit 456020a

Please sign in to comment.