Skip to content

Commit 94c8288

Browse files
authored
DumpOperation doesn't need its argument to have an adjoint (#2421)
Fixes #2341
1 parent c836ebe commit 94c8288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/Std/Diagnostics.qs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function DumpRegister(register : Qubit[]) : Unit {
9090
/// the matrix displayed may reflect any global phase that has accumulated from operations
9191
/// on those other qubits.
9292
@SimulatableIntrinsic()
93-
operation DumpOperation(nQubits : Int, op : Qubit[] => Unit is Adj) : Unit {
93+
operation DumpOperation(nQubits : Int, op : Qubit[] => Unit) : Unit {
9494
use (targets, extra) = (Qubit[nQubits], Qubit[nQubits]);
9595
for i in 0..nQubits - 1 {
9696
H(targets[i]);

0 commit comments

Comments
 (0)