Skip to content

Commit

Permalink
fix!: quantum extension name wrong way round (#582)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: quantum extension renamed from "quantum.tket2" to
"tket2.quantum"
  • Loading branch information
ss2165 authored Sep 4, 2024
1 parent bf73511 commit 06a6838
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
Binary file modified test_files/eccs/nam_4_2.rwr
Binary file not shown.
Binary file modified test_files/eccs/nam_6_3.rwr
Binary file not shown.
Binary file modified test_files/eccs/small_eccs.rwr
Binary file not shown.
Binary file modified tket2-eccs/src/tket2_eccs/data/nam_6_3.rwr
Binary file not shown.
2 changes: 1 addition & 1 deletion tket2-py/tket2/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Pauli(Enum):
Z = auto()

def to_custom(self) -> CustomOp:
extension_name = "quantum.tket2"
extension_name = "tket2.quantum"
gate_name = self.name
return CustomOp(extension_name, gate_name, [QB_T], [QB_T])

Expand Down
2 changes: 1 addition & 1 deletion tket2/src/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl CustomSignatureFunc for Tk1Signature {
}

/// Name of tket 2 extension.
pub const TKET2_EXTENSION_ID: ExtensionId = ExtensionId::new_unchecked("quantum.tket2");
pub const TKET2_EXTENSION_ID: ExtensionId = ExtensionId::new_unchecked("tket2.quantum");

/// The name of the symbolic expression opaque type arg.
pub const SYM_EXPR_NAME: SmolStr = SmolStr::new_inline("SymExpr");
Expand Down

0 comments on commit 06a6838

Please sign in to comment.