From 78ab11bb639aa546dce12029a0de059aadff2341 Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Fri, 23 Aug 2024 16:02:36 +0100 Subject: [PATCH] Correct typo in `to_pickle` method --- crates/circuit/src/dag_circuit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/circuit/src/dag_circuit.rs b/crates/circuit/src/dag_circuit.rs index 6303c3869300..c472019f17fc 100644 --- a/crates/circuit/src/dag_circuit.rs +++ b/crates/circuit/src/dag_circuit.rs @@ -111,7 +111,7 @@ impl Hash for Wire { } impl Wire { - fn to_picke(&self, py: Python) -> PyObject { + fn to_pickle(&self, py: Python) -> PyObject { match self { Self::Qubit(bit) => (0, bit.0.into_py(py)).into_py(py), Self::Clbit(bit) => (1, bit.0.into_py(py)).into_py(py), @@ -574,7 +574,7 @@ impl DAGCircuit { ( endpoints.0.index(), endpoints.1.index(), - edge_w.clone().to_picke(py), + edge_w.clone().to_pickle(py), ) .to_object(py) }