Skip to content

Commit 29d8bb0

Browse files
authored
Merge branch 'Qiskit:main' into mid-circ-meas
2 parents 50ffbd8 + 3b26002 commit 29d8bb0

File tree

9 files changed

+159
-82
lines changed

9 files changed

+159
-82
lines changed

crates/circuit/src/parameter_expression.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use num_complex::Complex64;
2121
use std::collections::hash_map::DefaultHasher;
2222
use std::fmt;
2323
use std::hash::{Hash, Hasher};
24+
use std::sync::Arc;
2425

2526
use pyo3::prelude::*;
2627
use pyo3::IntoPyObjectExt;
@@ -84,7 +85,7 @@ impl ParameterExpression {
8485
.replace("__end_sympy_replace__", "$");
8586

8687
ParameterExpression {
87-
expr: SymbolExpr::Symbol(Box::new(name)),
88+
expr: SymbolExpr::Symbol(Arc::new(name)),
8889
}
8990
}
9091

0 commit comments

Comments
 (0)