Open
Description
In decompose_protocol.py
, "_decompose_with_context_"
is never called without a valid DecompositionContext
. However, many of the type annotations, both in decompose_protocol.py
and in _decompose_with_context_
implementations across the project, specify context: DecompositionContext | None = None
. The None
option should be removed from all of these except at the very top level decompose_protocol
entrypoints (decompose
, decompose_once
, and decompose_once_with_qubits
), since AFAICT they'll never be hit.