Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/fixed_point/qsharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Signed": {
"github": {
"owner": "Microsoft",
"repo": "qsharp",
"repo": "qdk",
"ref": "v1.25.0",
"path": "library/signed"
}
Expand Down
2 changes: 1 addition & 1 deletion library/signed/qsharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Qtest": {
"github": {
"owner": "Microsoft",
"repo": "qsharp",
"repo": "qdk",
"ref": "v1.25.0",
"path": "library/qtest"
}
Expand Down
13 changes: 9 additions & 4 deletions samples/chemistry/SPSA/qsharp.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"dependencies": {
"Chemistry": {
"path": "../../../library/chemistry"
"dependencies": {
"Chemistry": {
"github": {
"ref": "v1.25.0",
"owner": "microsoft",
"repo": "qdk",
"path": "library/chemistry"
}
}
}
}
}
2 changes: 1 addition & 1 deletion samples/notebooks/benzene_molecule/benzene.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"from pathlib import Path\n",
"from qdk.widgets import MoleculeViewer\n",
"\n",
"# TODO: This data should come from calling qdk-chemistry Python APIs.\n",
"# Load cached molecule data from file.\n",
"molecule_data = Path(\"benzene_diradical.structure.xyz\").read_text()\n",
"cube_data = {\n",
" \"alpha_18\": Path(\"MO_alpha_18.cube\").read_text(),\n",
Expand Down
86 changes: 6 additions & 80 deletions samples/notebooks/carbon_error_correction/carbon.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -178,26 +178,10 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "8e05e0f8",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4410a84a0ec841a9a5daf7aa1e27c25b",
"version_major": 2,
"version_minor": 1
},
"text/plain": [
"<qsharp_widgets.Histogram object at 0x10e17b450>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"res = device.simulate(qir, shots=1000, type=\"clifford\")\n",
"corrected_logical_results = decoder.decode_results(res, \"Z\")\n",
Expand All @@ -214,39 +198,10 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "b0f2063e",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "f41032d29c7c4f31948d7089c786d40e",
"version_major": 2,
"version_minor": 1
},
"text/plain": [
"<qsharp_widgets.Histogram object at 0x108584510>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "eca2be5fcf0f468ca6f28458fef98dd3",
"version_major": 2,
"version_minor": 1
},
"text/plain": [
"<qsharp_widgets.Histogram object at 0x10e2a0690>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"noise = NoiseConfig()\n",
"\n",
Expand Down Expand Up @@ -289,39 +244,10 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"id": "35e7dc3c",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d79a1d1efe2449f08aa22c870acc2def",
"version_major": 2,
"version_minor": 1
},
"text/plain": [
"<qsharp_widgets.Histogram object at 0x10836de90>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "af464fa55640435ca6362061162b0e60",
"version_major": 2,
"version_minor": 1
},
"text/plain": [
"<qsharp_widgets.Histogram object at 0x10e134a90>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"flattened = [r for res in corrected_logical_results for r in res]\n",
"display(Histogram(map(str, flattened)))\n",
Expand Down
9 changes: 9 additions & 0 deletions source/samples_test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,15 @@ fn collect_qsharp_project_folders(path: &Path) -> Vec<PathBuf> {
if entry.is_dir() {
projects.append(&mut collect_qsharp_project_folders(entry));
} else if Some("qsharp.json") == entry.file_name().and_then(OsStr::to_str) {
if entry
.parent()
.expect("file should have parent dir")
.ends_with("SPSA")
{
// Skip the SPSA project since it has GitHub-based dependencies that
Comment thread
swernli marked this conversation as resolved.
// can't be resolved with the test filesystem.
continue;
}
projects.push(
path.canonicalize()
.expect("path should resolve to a canonical path"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ file might appear as:
"github": {
"ref": "v1.15.0",
"owner": "microsoft",
"repo": "qsharp",
"repo": "qdk",
"path": "library/chemistry"
}
}
Expand Down
Loading