Skip to content

Commit

Permalink
Remove reference to decomposer from docstring to ConsolidateBlocks
Browse files Browse the repository at this point in the history
The previous doc string was a bit imprecise. It also referred to a decomposer which although
implied, is not meant to be accessible by the user.
  • Loading branch information
jlapeyre committed Jul 12, 2023
1 parent 87b979e commit bf0a1f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qiskit/transpiler/passes/optimization/consolidate_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def __init__(
):
"""ConsolidateBlocks initializer.
The decomposer used is kak_basis_gate if it has non-None value. Otherwise
the decomposer is basis_gates if it has non-None value. If both are None,
then a default decomposer is used.
If `kak_basis_gate` is not `None` it will be used as the basis gate for KAK decomposition.
Otherwise, if `basis_gates` is not `None` a basis gate will be chosen from this list.
Otherwise the basis gate will be `CXGate`.
Args:
kak_basis_gate (Gate): Basis gate for KAK decomposition.
Expand Down

0 comments on commit bf0a1f4

Please sign in to comment.