Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
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 src/Python/qsharp-core/qsharp/clients/iqsharp.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def _simulate_noise(self, op, **kwargs) -> Any:
def _get_noise_model(self) -> str:
return self._execute('%experimental.noise_model')

def _set_noise_model(self, op, json_data : str) -> None:
def _set_noise_model(self, json_data : str) -> None:
# We assume json_data is already serialized, so that we skip the support
# provided by _execute_magic and call directly.
return self._execute(f'%experimental.noise_model {json_data}')
Expand Down
1 change: 1 addition & 0 deletions src/Python/qsharp-core/qsharp/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import qsharp
from qsharp.loader import QSharpCallable
import json

## EXPORTS ##

Expand Down