Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Qiskit/qiskit into spo-to-matrix-de…
Browse files Browse the repository at this point in the history
…terminism
  • Loading branch information
kevinhartman committed Nov 14, 2024
2 parents 23ba5f4 + b258efc commit c68cb58
Show file tree
Hide file tree
Showing 24 changed files with 866 additions and 221 deletions.
10 changes: 5 additions & 5 deletions crates/accelerate/src/twirling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ fn twirl_gate(
params: None,
extra_attrs: ExtraInstructionAttributes::new(None, None, None, None),
#[cfg(feature = "cache_pygates")]
py_op: std::cell::OnceCell::new(),
py_op: std::sync::OnceLock::new(),
},
)?;
out_circ.push(
Expand All @@ -221,7 +221,7 @@ fn twirl_gate(
params: None,
extra_attrs: ExtraInstructionAttributes::new(None, None, None, None),
#[cfg(feature = "cache_pygates")]
py_op: std::cell::OnceCell::new(),
py_op: std::sync::OnceLock::new(),
},
)?;

Expand All @@ -235,7 +235,7 @@ fn twirl_gate(
params: None,
extra_attrs: ExtraInstructionAttributes::new(None, None, None, None),
#[cfg(feature = "cache_pygates")]
py_op: std::cell::OnceCell::new(),
py_op: std::sync::OnceLock::new(),
},
)?;
out_circ.push(
Expand All @@ -247,7 +247,7 @@ fn twirl_gate(
params: None,
extra_attrs: ExtraInstructionAttributes::new(None, None, None, None),
#[cfg(feature = "cache_pygates")]
py_op: std::cell::OnceCell::new(),
py_op: std::sync::OnceLock::new(),
},
)?;

Expand Down Expand Up @@ -361,7 +361,7 @@ fn generate_twirled_circuit(
)),
extra_attrs: inst.extra_attrs.clone(),
#[cfg(feature = "cache_pygates")]
py_op: std::cell::OnceCell::new(),
py_op: std::sync::OnceLock::new(),
};
#[cfg(feature = "cache_pygates")]
new_inst.py_op.set(new_inst_obj).unwrap();
Expand Down
Loading

0 comments on commit c68cb58

Please sign in to comment.