Skip to content

Commit 0c69677

Browse files
committed
Fix
1 parent ff2a7e0 commit 0c69677

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/pecos-qis-core/src/ccengine.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@ use pecos_engines::{
2525
use pecos_qis_ffi_types::{Operation, OperationCollector as OperationList, QuantumOp};
2626
use pecos_rng::PecosRng;
2727
use std::collections::BTreeMap;
28+
use std::thread::JoinHandle;
2829

30+
// These imports are only used by PersistentDynamicWorker (Linux only)
31+
#[cfg(not(target_os = "macos"))]
2932
use std::sync::Mutex;
33+
#[cfg(not(target_os = "macos"))]
3034
use std::sync::mpsc::{self, Receiver, Sender};
31-
use std::thread::JoinHandle;
3235

3336
/// Result from worker thread - returns both the operations and the interface
3437
type WorkerResult = Result<(OperationList, BoxedInterface), String>;

0 commit comments

Comments
 (0)