Skip to content

Commit

Permalink
[NFC] Minor copy edits for consistent spellings, etc. (#2073)
Browse files Browse the repository at this point in the history
* [NFC] Minor copy edits for consistent spellings, etc.

* Update include/cudaq/Optimizer/Transforms/Passes.td

Co-authored-by: Ben Howe <141149032+bmhowe23@users.noreply.github.com>

---------

Co-authored-by: Ben Howe <141149032+bmhowe23@users.noreply.github.com>
  • Loading branch information
schweitzpgi and bmhowe23 authored Aug 12, 2024
1 parent 7924b17 commit 018f582
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions include/cudaq/Optimizer/Transforms/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,27 @@
include "mlir/Pass/PassBase.td"

def AddWireset : Pass<"add-wireset", "mlir::ModuleOp"> {
let summary = "Adds a topology-less `quake.wireset` to the module";
let summary = "Adds a topology-less `quake.wire_set` to the module.";
let description = [{
Adds a `quake.wireset` operation without tological info to the module.
Adds a `quake.wire_set` operation without any topological information to the
ModuleOp.
}];
}

def AssignWireIndices : Pass<"assign-wire-indices", "mlir::func::FuncOp"> {
let summary = "Replaces wires with wires from a `quake.wireset`";
let summary = "Replaces `null_wire` with `borrow_wire` from a `wire_set`.";
let description = [{
Replaces all instances of `quake.null_wire_op` with `quake.borrow_wire_op`s
from a common `quake.wireset` without any topological information.
Each wire is assigned a unique identifier (the index into the
`quake.wireset`) through this process.
Replaces all instances of `quake.null_wire` with `quake.borrow_wire` from a
common `quake.wire_set` without any topological information. Each wire is
assigned a unique identifier (the index into the `quake.wire_set`) through
this process.
}];
}

def ApplyControlNegations :
Pass<"apply-control-negations", "mlir::func::FuncOp"> {
let summary =
"Replace all operations with negative controls with positive controls and X operations.";
"Replace all `Ops` with negated controls with normal controls and `XOp`s.";

let description = [{
For every quantum operation with a negative control, replace that operation
Expand Down

0 comments on commit 018f582

Please sign in to comment.