Skip to content

Commit 1496371

Browse files
Remove unused code
1 parent 3ae3155 commit 1496371

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

examples/transpile.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
use core::f64;
21
use std::f64::consts::PI;
32

43
use anyhow::Result;
5-
use simple_qsim::{
6-
circuit::GateKind, gates::rz_dence_matrix, net::Net, qstate::QState, su2, Circuit,
7-
};
4+
use simple_qsim::{circuit::GateKind, qstate::QState, Circuit};
85

96
fn main() -> Result<()> {
107
let mut circuit = Circuit::new(2).H(0)?.gate_at(0, GateKind::RY(PI / 4.0))?;

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pub mod qstate;
66
pub mod su2;
77
pub mod su2equiv;
88
pub mod test_util;
9-
pub mod transpiler;
109

1110
use num_complex::Complex;
1211

src/net.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub fn h_dence_matrix() -> Matrix2<Qbit> {
4747

4848
pub struct Net {
4949
knots: Vec<Knot>,
50-
tile_width: f64,
50+
// tile_width: f64,
5151
g: i64,
5252
su2net: HashMap<ICoord, HashSet<Knot>>,
5353

@@ -62,7 +62,7 @@ impl Net {
6262
pub fn new(tile_width: f64) -> Self {
6363
Net {
6464
knots: Vec::new(),
65-
tile_width,
65+
// tile_width,
6666
g: (2.0 / tile_width) as i64,
6767
su2net: HashMap::new(),
6868
gate_set: Vec::new(),

src/transpiler.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)