Skip to content

Commit dcc0efe

Browse files
committed
Update quantum_shannon_decomposition.py
1 parent 4b91be4 commit dcc0efe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cirq-core/cirq/transformers/analytical_decompositions/quantum_shannon_decomposition.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ def _single_qubit_decomposition(qubit: 'cirq.Qid', u: np.ndarray) -> 'op_tree.Op
121121
yield ops.ZPowGate(exponent=phi_2 / np.pi, global_shift=phase / phi_2).on(qubit)
122122

123123

124-
def _msb_demuxer(demux_qubits: 'List[cirq.Qid]', u1: np.ndarray, u2: np.ndarray) -> 'op_tree.OpTree':
124+
def _msb_demuxer(
125+
demux_qubits: 'List[cirq.Qid]', u1: np.ndarray, u2: np.ndarray
126+
) -> 'op_tree.OpTree':
125127
"""Demultiplexes a unitary matrix that is multiplexed in its most-significant-qubit.
126128
127129
Decomposition structure:

0 commit comments

Comments
 (0)