Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: quantum extension name wrong way round #582

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix!: quantum extension name wrong way round
BREAKING CHANGE: quantum extension renamed from "quantum.tket2" to "tket2.quantum"
  • Loading branch information
ss2165 committed Sep 4, 2024
commit 6da9b4ece5287a4176214a28aed35d041cf3bb71
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
Loading