Closed hannah-mcdougall closed 2 months ago
Ouch. Seems like the current Permutation
definition is only valid for SerialCircuit::implicit_permutation
.
Would you mind renaming that struct to ImplicitPermutation
and adding a
/// A classic basis state permutation.
///
/// Used when defining Toffoli boxes.
#[derive(Deserialize, Serialize, Clone, Debug, PartialEq, Eq, Hash)]
#[serde(transparent)]
pub struct Permutation(Vec<(Vec<bool>, Vec<bool>)>);
to use in the Toffoli box?
Updated ToffoliBox permutation type to match tket schema and nexus dataclasses. This inconsistency caused failures when getting circuits that include a ToffoliBox from the database.
BREAKING CHANGE: Renamed
Permutation
toImplicitPermutation