diff --git a/crates/pecos-python/src/sparse_sim.rs b/crates/pecos-python/src/sparse_sim.rs
index 6f5442e78..213b60121 100644
--- a/crates/pecos-python/src/sparse_sim.rs
+++ b/crates/pecos-python/src/sparse_sim.rs
@@ -10,13 +10,9 @@
// or implied. See the License for the specific language governing permissions and limitations under
// the License.
-// use pecos_core::VecSet;
-// use pecos_qsims::CliffordSimulator;
-// use pecos_qsims::SparseStab;
use pecos::prelude::*;
use pyo3::prelude::*;
use pyo3::types::{PyDict, PyTuple};
-use std::collections::HashMap;
#[pyclass]
pub struct SparseSim {
@@ -32,195 +28,117 @@ impl SparseSim {
}
}
+ fn reset(&mut self) {
+ self.inner.reset();
+ }
+
#[allow(clippy::too_many_lines)]
#[pyo3(signature = (symbol, location, params=None))]
- fn run_gate(
+ fn run_1q_gate(
&mut self,
symbol: &str,
- location: &Bound<'_, PyTuple>,
+ location: usize,
params: Option<&Bound<'_, PyDict>>,
- ) -> PyResult