mod.rs 393 B

1234567891011121314151617181920212223242526
  1. use traits::Backend;
  2. use gate::Gate;
  3. use std::collections::HashMap;
  4. pub struct OpenCL {
  5. }
  6. impl Backend for OpenCL {
  7. fn apply_gate(&mut self, gate: Gate, target: u8) {
  8. }
  9. fn apply_controlled_gate(&mut self, gate: Gate, control: u8, target: u8) {
  10. }
  11. fn measure(&mut self) -> u8 {
  12. 1
  13. }
  14. fn measure_many(&mut self, iters: u64) -> HashMap<u8, u64> {
  15. HashMap::new()
  16. }
  17. }