diff --git a/ch05/simulator.py b/ch05/simulator.py index 9719ff9..3ba510b 100644 --- a/ch05/simulator.py +++ b/ch05/simulator.py @@ -85,7 +85,7 @@ def deallocate_qubit(self, qubit: SimulatedQubit): def _apply(self, unitary: qt.Qobj, ids: List[int]): if len(ids) == 1: - matrix = qt.circuit.gate_expand_1toN( + matrix = gate_expand_1toN( unitary, self.capacity, ids[0] ) else: