You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
/// Applies an operation windowing over input but with constant target qubits.
78
+
/// Applies an operation windowing over input registers.
79
79
///
80
80
/// # Input
81
81
/// ## windowLen
82
82
/// The size of each window
83
83
/// ## op
84
-
/// An operation with three arguments, one index, controls, and target. When applied it will be supplied with a windowed component of the `qubits` parameter, the `target` qubits (constant) and an index of the current window
85
-
/// ## qubits
86
-
/// The qubits the operation windows over
87
-
/// ## target
88
-
/// The target provided to each windowed operation
89
-
operationApplyWindowed(windowLen : Int, op : (Int, Qubit[], Qubit[]) =>Unit, qubits : Qubit[], target : Qubit[]) : Unit {
90
-
letwindows=Windows(windowLen, qubits); // Create windows of non-target qubits
91
-
for (i, window) inEnumerated(windows) {
92
-
op(i, window, target);
93
-
}
84
+
/// An operation on registers that will be provided with the current window and its index
85
+
/// ## registers
86
+
/// The registers the operation windows over
87
+
////
88
+
/// # Type Parameters
89
+
/// ## 'T
90
+
/// The type of registers
91
+
operationApplyWindowed<'T>(windowLen : Int, op : (Int, 'T[]) =>Unit, register : 'T[]) : Unit {
0 commit comments