Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Sep 16, 2024
1 parent 739a5c8 commit f527018
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 192 deletions.
7 changes: 6 additions & 1 deletion crates/accelerate/src/two_qubit_decompose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,6 @@ impl TwoQubitGateSequence {
global_phase: 0.,
}
}

fn __getstate__(&self) -> (TwoQubitSequenceVec, f64) {
(self.gates.clone(), self.global_phase)
}
Expand All @@ -1190,6 +1189,12 @@ impl TwoQubitGateSequence {
}
}

impl Default for TwoQubitGateSequence {
fn default() -> Self {
Self::new()
}
}

#[derive(Clone, Debug)]
#[allow(non_snake_case)]
#[pyclass(module = "qiskit._accelerate.two_qubit_decompose", subclass)]
Expand Down
Loading

0 comments on commit f527018

Please sign in to comment.