Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Implementation of noise protocol. #128

Merged
merged 95 commits into from
Nov 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
8c93af0
First attempt at error protocol.
RolandMacDoland Oct 23, 2023
04f34a8
change errors to exceptions, rename protocol
gvelikova Oct 24, 2023
1210b96
protocols renaming
gvelikova Oct 25, 2023
404ebaa
cleaned outstanding naming issues
gvelikova Oct 26, 2023
872b5f1
draft readout corruption, needs polishing and tests
gvelikova Oct 27, 2023
bf1d15b
added a simple test
gvelikova Oct 27, 2023
70103e0
slight change to the test
gvelikova Oct 27, 2023
8656c77
some non-ideal fixes for mypy
gvelikova Oct 27, 2023
3d30092
Merge branch 'main' into rg/errors-module
gvelikova Oct 27, 2023
5c81f01
linting
gvelikova Oct 27, 2023
d84bfe4
linting
gvelikova Oct 27, 2023
a0c5470
error definition
gvelikova Oct 27, 2023
b2842dd
cleaning up
gvelikova Oct 30, 2023
9cee440
tidying
gvelikova Oct 30, 2023
54d644a
Add error option for expectation.
RolandMacDoland Nov 1, 2023
db9ce1e
Add error for expectation and warning in no measurement case.
RolandMacDoland Nov 1, 2023
9f4219b
Make options optional.
RolandMacDoland Nov 1, 2023
fd62673
Pass readout error for tomography.
RolandMacDoland Nov 1, 2023
8935b3d
Correct logger import.
RolandMacDoland Nov 1, 2023
b2d6647
Fix name.
RolandMacDoland Nov 1, 2023
d63e9b1
First attempt to test readout errors with tomography.
RolandMacDoland Nov 1, 2023
f6360b6
Harmonise subclasses to base class.
RolandMacDoland Nov 2, 2023
b4f542f
Correct logging.
RolandMacDoland Nov 2, 2023
770e13d
Default options and correct function name.
RolandMacDoland Nov 2, 2023
1049895
Extract bitstring corruption functionality and pass options.
RolandMacDoland Nov 2, 2023
f3a3275
Test bitstring corruption and measurement protocols.
RolandMacDoland Nov 2, 2023
cd653e8
Merge branch 'main' into rg/errors-module
RolandMacDoland Nov 2, 2023
0f3a9ec
Tests for integration with measurements and bitstring corruption.
RolandMacDoland Nov 2, 2023
44332cc
fix incorrect counts after readout
gvelikova Nov 2, 2023
aa306dc
fixes
gvelikova Nov 2, 2023
8267b82
Moving old bitstring corruption functionality.
RolandMacDoland Nov 3, 2023
bc5756a
Simplify types and use old bitstring corruption.
RolandMacDoland Nov 3, 2023
022c788
Propagate error protocol for shadows.
RolandMacDoland Nov 3, 2023
b47dbd6
Add tests for bitstring corruption and integration with measurements.
RolandMacDoland Nov 3, 2023
7e82e4e
Merge branch 'main' into rg/errors-module
RolandMacDoland Nov 3, 2023
bae8eb3
Fix conflicts.
RolandMacDoland Nov 3, 2023
439f9f8
changed back the readout incorporation function and tests
gvelikova Nov 3, 2023
d6f0bee
Add docs section about protocols for realistic simulations.
RolandMacDoland Nov 3, 2023
fb51ed3
Fix lint.
RolandMacDoland Nov 3, 2023
4b26502
Remove obsolete code.
RolandMacDoland Nov 3, 2023
3651cbd
Merge branch 'main' into rg/errors-module
RolandMacDoland Nov 3, 2023
23989c5
added placeholder readmes on noisy simulations/error mitigation
gvelikova Nov 6, 2023
35f95d3
adressing minor issues
gvelikova Nov 6, 2023
83257de
placeholder index.md
gvelikova Nov 6, 2023
4538497
some cleaning up
gvelikova Nov 6, 2023
e8e2773
Add doc files.
RolandMacDoland Nov 6, 2023
64b7a0d
simplify corruption function
gvelikova Nov 6, 2023
1d170c8
improve on docstrings
gvelikova Nov 6, 2023
cc85eb3
Merge branch 'main' into rg/errors-module
gvelikova Nov 6, 2023
bd0d046
renamed errors to noise
gvelikova Nov 6, 2023
7f09e26
Comment and better logging condition.
RolandMacDoland Nov 6, 2023
9038c09
Better logging.
RolandMacDoland Nov 6, 2023
ccf5b6d
Better logging.
RolandMacDoland Nov 6, 2023
c713808
Remove unnecessary comment.
RolandMacDoland Nov 6, 2023
6b9d806
Clean-up.
RolandMacDoland Nov 6, 2023
2338fdb
rename the remaining errors to noise
gvelikova Nov 6, 2023
0a50a8d
merged
gvelikova Nov 6, 2023
9c5a10f
adding noise to models
gvelikova Nov 6, 2023
674f1c3
adding noise to qnn
gvelikova Nov 7, 2023
99fb61c
readme renamed to noise
gvelikova Nov 7, 2023
2ca1ae6
changed warning
gvelikova Nov 7, 2023
b50c531
[Refactor] Train loop; make sure qadence runs on GPUs correctly (#135)
dominikandreasseitz Nov 6, 2023
69abe6c
[Fix] Braket CPHASE always having fixed parameters (#162)
dominikandreasseitz Nov 6, 2023
1164a31
fix documentation warning
gvelikova Nov 7, 2023
af3299f
Merge branch 'main' into rg/errors-module
gvelikova Nov 7, 2023
882d730
added a noise.md
gvelikova Nov 7, 2023
1c2d226
Abstract noise application in module.
RolandMacDoland Nov 7, 2023
95a9f43
Add test for non-deterministic bit flipping.
RolandMacDoland Nov 7, 2023
ab02534
Better tests.
RolandMacDoland Nov 7, 2023
74dfcd3
correct the warning
gvelikova Nov 7, 2023
79db467
Merge branch 'main' into rg/errors-module
gvelikova Nov 7, 2023
0838d74
A section about noise usage.
RolandMacDoland Nov 7, 2023
8d13531
Re-run probabilitic test.
RolandMacDoland Nov 7, 2023
72a334b
Better docstring.
RolandMacDoland Nov 7, 2023
3995d82
Merge branch 'main' into rg/errors-module
RolandMacDoland Nov 7, 2023
1c6d6c0
Correct argument passing to superclass.
RolandMacDoland Nov 7, 2023
37f7644
Fix lint.
RolandMacDoland Nov 7, 2023
a6830f8
Enable sessions for variable reuse.
RolandMacDoland Nov 7, 2023
f0a73fd
Merge branch 'main' into rg/errors-module
RolandMacDoland Nov 8, 2023
2d81353
Fix docstrings.
RolandMacDoland Nov 8, 2023
72e1f75
changed to torch.Tensor
gvelikova Nov 8, 2023
211a7b8
refactoring
gvelikova Nov 8, 2023
000e47b
functorch for bit flipping
gvelikova Nov 8, 2023
8f1685c
docstring
gvelikova Nov 8, 2023
01be3f7
some shortening
gvelikova Nov 8, 2023
4ab9c5e
arg type
gvelikova Nov 8, 2023
37b2473
torch imports
gvelikova Nov 8, 2023
57c30cb
minor fixes
gvelikova Nov 9, 2023
c7718a1
change in the bit flipping function for performance
gvelikova Nov 9, 2023
3d6eb93
Log the file path.
RolandMacDoland Nov 9, 2023
246c0aa
Merge branch 'main' into rg/errors-module
RolandMacDoland Nov 9, 2023
4072050
Fix imports.
RolandMacDoland Nov 9, 2023
180606c
Merge branch 'main' into rg/errors-module
RolandMacDoland Nov 9, 2023
1c600ce
minor docstring-related fixes
gvelikova Nov 9, 2023
b77e820
removing numpy.array as an output/input option
gvelikova Nov 9, 2023
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 qadence/noise/readout.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def create_noise_matrix(


def bs_corruption(
err_idx: list,
err_idx: torch.Tensor,
gvelikova marked this conversation as resolved.
Show resolved Hide resolved
sample: torch.Tensor,
) -> Counter:
"""
Expand Down