44
44
using namespace mlir ;
45
45
using namespace mlir ::pulse;
46
46
47
- void quantumCircuitPulseSchedulingPass ::runOnOperation () {
47
+ void QuantumCircuitPulseSchedulingPass ::runOnOperation () {
48
48
// check for command line override of the scheduling method
49
49
if (schedulingMethod.hasValue ()) {
50
50
if (schedulingMethod.getValue () == " alap" )
@@ -72,7 +72,7 @@ void quantumCircuitPulseSchedulingPass::runOnOperation() {
72
72
});
73
73
}
74
74
75
- void quantumCircuitPulseSchedulingPass ::scheduleAlap (
75
+ void QuantumCircuitPulseSchedulingPass ::scheduleAlap (
76
76
mlir::pulse::CallSequenceOp quantumCircuitCallSequenceOp) {
77
77
78
78
auto quantumCircuitSequenceOp = getSequenceOp (quantumCircuitCallSequenceOp);
@@ -155,20 +155,20 @@ void quantumCircuitPulseSchedulingPass::scheduleAlap(
155
155
LLVM_DEBUG (llvm::dbgs () << " \t total duration of quantum circuit "
156
156
<< totalDurationOfQuantumCircuit << " \n " );
157
157
158
- // setting duration of the quantum circuit
159
- PulseOpSchedulingInterface::setDuration (quantumCircuitSequenceOp ,
158
+ // setting duration of the quantum call circuit
159
+ PulseOpSchedulingInterface::setDuration (quantumCircuitCallSequenceOp ,
160
160
totalDurationOfQuantumCircuit);
161
- // setting timepoint of the quantum circuit; at this point, we can add
161
+ // setting timepoint of the quantum call circuit; at this point, we can add
162
162
// totalDurationOfQuantumCircuit to above <=0 timepoints, so that they become
163
163
// >=0, however, that would require walking the IR again. Instead, we add a
164
- // postive timepoint to the parent op, i.e., quantum circuit sequence op, and
165
- // later passes would need to add this value as an offset to determine the
164
+ // postive timepoint to the parent op, i.e., quantum circuit call sequence op,
165
+ // and later passes would need to add this value as an offset to determine the
166
166
// effective timepoints
167
- PulseOpSchedulingInterface::setTimepoint (quantumCircuitSequenceOp ,
167
+ PulseOpSchedulingInterface::setTimepoint (quantumCircuitCallSequenceOp ,
168
168
totalDurationOfQuantumCircuit);
169
169
}
170
170
171
- int quantumCircuitPulseSchedulingPass ::getNextAvailableTimeOfPorts (
171
+ int QuantumCircuitPulseSchedulingPass ::getNextAvailableTimeOfPorts (
172
172
mlir::ArrayAttr ports) {
173
173
int nextAvailableTimeOfAllPorts = 0 ;
174
174
for (auto attr : ports) {
@@ -184,7 +184,7 @@ int quantumCircuitPulseSchedulingPass::getNextAvailableTimeOfPorts(
184
184
return nextAvailableTimeOfAllPorts;
185
185
}
186
186
187
- void quantumCircuitPulseSchedulingPass ::updatePortAvailabilityMap (
187
+ void QuantumCircuitPulseSchedulingPass ::updatePortAvailabilityMap (
188
188
mlir::ArrayAttr ports, int updatedAvailableTime) {
189
189
for (auto attr : ports) {
190
190
const std::string portName = attr.dyn_cast <StringAttr>().getValue ().str ();
@@ -194,7 +194,7 @@ void quantumCircuitPulseSchedulingPass::updatePortAvailabilityMap(
194
194
}
195
195
}
196
196
197
- mlir::pulse::SequenceOp quantumCircuitPulseSchedulingPass ::getSequenceOp (
197
+ mlir::pulse::SequenceOp QuantumCircuitPulseSchedulingPass ::getSequenceOp (
198
198
mlir::pulse::CallSequenceOp callSequenceOp) {
199
199
auto seqAttr = callSequenceOp->getAttrOfType <FlatSymbolRefAttr>(" callee" );
200
200
assert (seqAttr && " Requires a 'callee' symbol reference attribute" );
@@ -206,10 +206,10 @@ mlir::pulse::SequenceOp quantumCircuitPulseSchedulingPass::getSequenceOp(
206
206
return sequenceOp;
207
207
}
208
208
209
- llvm::StringRef quantumCircuitPulseSchedulingPass ::getArgument () const {
209
+ llvm::StringRef QuantumCircuitPulseSchedulingPass ::getArgument () const {
210
210
return " quantum-circuit-pulse-scheduling" ;
211
211
}
212
212
213
- llvm::StringRef quantumCircuitPulseSchedulingPass ::getDescription () const {
213
+ llvm::StringRef QuantumCircuitPulseSchedulingPass ::getDescription () const {
214
214
return " Scheduling a quantum circuit at pulse level." ;
215
215
}
0 commit comments