Skip to content

Commit 07858ce

Browse files
ruff
1 parent 0aadf8e commit 07858ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graphix/noise_models/depolarising.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def command(self, cmd: CommandOrNoise, rng: Generator | None = None) -> list[Com
111111
if cmd.kind == CommandKind.N:
112112
return [cmd, ApplyNoise(noise=DepolarisingNoise(self.prepare_error_prob), nodes=[cmd.node])]
113113
if cmd.kind == CommandKind.E:
114-
return [cmd, ApplyNoise(noise=TwoQubitDepolarisingNoise(self.entanglement_error_prob), nodes=list(cmd.nodes))]
114+
return [
115+
cmd,
116+
ApplyNoise(noise=TwoQubitDepolarisingNoise(self.entanglement_error_prob), nodes=list(cmd.nodes)),
117+
]
115118
if cmd.kind == CommandKind.M:
116119
return [ApplyNoise(noise=DepolarisingNoise(self.measure_channel_prob), nodes=[cmd.node]), cmd]
117120
if cmd.kind == CommandKind.X:

0 commit comments

Comments
 (0)