Skip to content

Commit

Permalink
change std string to llvm stringref
Browse files Browse the repository at this point in the history
  • Loading branch information
paul0403 committed Dec 17, 2024
1 parent 1dfa04b commit 199d97d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mlir/include/Quantum/IR/QuantumOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def CustomOp : UnitaryGate_Op<"custom", [DifferentiableGate, NoMemoryEffect,
// Note that number of out_qubits = number of in_qubits,
// and number of out_ctrl_qubits = number of in_ctrl_qubits
(ins
"std::string":$gate,
"llvm::StringRef":$gate,
"mlir::ValueRange":$in_qubits,
"mlir::ValueRange":$in_ctrl_qubits,
"mlir::ValueRange":$in_ctrl_values,
Expand All @@ -408,7 +408,7 @@ def CustomOp : UnitaryGate_Op<"custom", [DifferentiableGate, NoMemoryEffect,
OpBuilder<
// Convenience builder for a gate with parameters and no controls
(ins
"std::string":$gate,
"llvm::StringRef":$gate,
"mlir::ValueRange":$in_qubits,
"mlir::ValueRange":$params,
CArg<"bool", "false">:$adjoint
Expand All @@ -421,7 +421,7 @@ def CustomOp : UnitaryGate_Op<"custom", [DifferentiableGate, NoMemoryEffect,
OpBuilder<
// Convenience builder for a gate with controls and no parameters
(ins
"std::string":$gate,
"llvm::StringRef":$gate,
"mlir::ValueRange":$in_qubits,
"mlir::ValueRange":$in_ctrl_qubits,
"mlir::ValueRange":$in_ctrl_values,
Expand All @@ -435,7 +435,7 @@ def CustomOp : UnitaryGate_Op<"custom", [DifferentiableGate, NoMemoryEffect,
OpBuilder<
// Convenience builder for a gate with no parameters and no controls
(ins
"std::string":$gate,
"llvm::StringRef":$gate,
"mlir::ValueRange":$in_qubits,
CArg<"bool", "false">:$adjoint
),[{
Expand Down

0 comments on commit 199d97d

Please sign in to comment.