Skip to content

Commit 2099d8e

Browse files
authored
chore(deps-rs): Update hugr and tket-json-rs (#493)
This should unblock #475 Edit: No, it wont. It is still blocked on a separate bug -.-
1 parent d247ffe commit 2099d8e

File tree

4 files changed

+21
-24
lines changed

4 files changed

+21
-24
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ missing_docs = "warn"
2424

2525
[workspace.dependencies]
2626

27-
hugr = "0.7.0"
28-
hugr-cli = "0.1.3"
29-
hugr-core = "0.4.0"
27+
hugr = "0.8.0"
28+
hugr-cli = "0.1.4"
29+
hugr-core = "0.5.0"
3030
portgraph = "0.12"
3131
pyo3 = "0.21.2"
3232
itertools = "0.13.0"
33-
tket-json-rs = "0.4.2"
33+
tket-json-rs = "0.5.0"
3434
tracing = "0.1.37"
3535
portmatching = "0.3.1"
3636
bytemuck = "1.16.1"

tket2/src/passes/pytket.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ mod test {
8181
)?;
8282

8383
circ = {
84-
let mut dfg =
85-
cfg.simple_entry_builder(two_qbs.clone(), 1, ExtensionSet::new())?;
84+
let mut dfg = cfg.simple_entry_builder(two_qbs.clone(), 1)?;
8685
let [q1, q2] = dfg.input_wires_arr();
8786

8887
let [q1] = dfg.add_dataflow_op(Tk2Op::H, [q1])?.outputs_arr();

tket2/src/serialize/pytket/op/native.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,12 @@ impl NativeOp {
127127

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

130-
Some(circuit_json::Operation {
131-
op_type: serial_op,
132-
n_qb: Some(num_qubits as u32),
133-
params,
134-
op_box: None,
135-
signature: Some([vec!["Q".into(); num_qubits], vec!["B".into(); num_bits]].concat()),
136-
conditional: None,
137-
})
130+
let mut op = circuit_json::Operation::default();
131+
op.op_type = serial_op;
132+
op.n_qb = Some(num_qubits as u32);
133+
op.params = params;
134+
op.signature = Some([vec!["Q".into(); num_qubits], vec!["B".into(); num_bits]].concat());
135+
Some(op)
138136
}
139137

140138
/// Returns the dataflow signature for this operation.

0 commit comments

Comments
 (0)