Skip to content

Commit

Permalink
chore(deps-rs): Update hugr and tket-json-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Jul 17, 2024
1 parent d247ffe commit 177fc2a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 24 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ missing_docs = "warn"

[workspace.dependencies]

hugr = "0.7.0"
hugr-cli = "0.1.3"
hugr-core = "0.4.0"
hugr = "0.8.0"
hugr-cli = "0.1.4"
hugr-core = "0.5.0"
portgraph = "0.12"
pyo3 = "0.21.2"
itertools = "0.13.0"
tket-json-rs = "0.4.2"
tket-json-rs = "0.5.0"
tracing = "0.1.37"
portmatching = "0.3.1"
bytemuck = "1.16.1"
Expand Down
3 changes: 1 addition & 2 deletions tket2/src/passes/pytket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ mod test {
)?;

circ = {
let mut dfg =
cfg.simple_entry_builder(two_qbs.clone(), 1, ExtensionSet::new())?;
let mut dfg = cfg.simple_entry_builder(two_qbs.clone(), 1)?;
let [q1, q2] = dfg.input_wires_arr();

let [q1] = dfg.add_dataflow_op(Tk2Op::H, [q1])?.outputs_arr();
Expand Down
14 changes: 6 additions & 8 deletions tket2/src/serialize/pytket/op/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,12 @@ impl NativeOp {

let params = (num_params > 0).then(|| vec!["".into(); num_params]);

Some(circuit_json::Operation {
op_type: serial_op,
n_qb: Some(num_qubits as u32),
params,
op_box: None,
signature: Some([vec!["Q".into(); num_qubits], vec!["B".into(); num_bits]].concat()),
conditional: None,
})
let mut op = circuit_json::Operation::default();
op.op_type = serial_op;
op.n_qb = Some(num_qubits as u32);
op.params = params;
op.signature = Some([vec!["Q".into(); num_qubits], vec!["B".into(); num_bits]].concat());
Some(op)
}

/// Returns the dataflow signature for this operation.
Expand Down

0 comments on commit 177fc2a

Please sign in to comment.