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

Extract BufferedDM/SV/MPS from ActOnDM/SV/MPSArgs #4979

Merged
merged 36 commits into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
00b7d45
Extract BufferedDensityMatrix from ActOnDensityMatrixArgs
daxfohl Feb 10, 2022
69574e7
state vector
daxfohl Feb 11, 2022
efa5e78
clean up code
daxfohl Feb 13, 2022
160cb4d
clean up code
daxfohl Feb 13, 2022
3097da4
clean up code
daxfohl Feb 13, 2022
6a323d6
format
daxfohl Feb 13, 2022
107c8e2
docs
daxfohl Feb 13, 2022
52c7546
test
daxfohl Feb 13, 2022
6eca8d9
coverage
daxfohl Feb 13, 2022
1a5b3f3
Merge branch 'master' into quantumstate
daxfohl Feb 13, 2022
a8b0ac4
Merge branch 'quantumstate' into quantumstate-sv
daxfohl Feb 13, 2022
1cf0323
Merge branch 'master' into quantumstate
daxfohl Feb 23, 2022
97ad2be
improve state vector
daxfohl Feb 24, 2022
9e623cd
improve state vector
daxfohl Feb 24, 2022
eabee77
replace deleted functions
daxfohl Feb 24, 2022
57177f7
replace deleted functions
daxfohl Feb 24, 2022
074ad2b
replace deleted functions
daxfohl Feb 24, 2022
f1fa7df
replace deleted functions
daxfohl Feb 24, 2022
a794315
Merge branch 'quantumstate-sv' into quantumstatem
daxfohl Feb 24, 2022
b9f6679
lint
daxfohl Feb 24, 2022
d7100e2
mps quantum state
daxfohl Feb 24, 2022
9165ab8
mps quantum state
daxfohl Feb 24, 2022
ee30b09
mps quantum state
daxfohl Feb 24, 2022
713cc94
mps quantum state
daxfohl Feb 24, 2022
4ce8a7b
mps quantum state
daxfohl Feb 24, 2022
4803e68
mps quantum state
daxfohl Feb 24, 2022
2ba1b14
mps quantum state
daxfohl Feb 24, 2022
9df8ef3
mps quantum state
daxfohl Feb 24, 2022
bc4e04b
coverage
daxfohl Feb 25, 2022
115a396
Merge branch 'master' into quantumstate
daxfohl Feb 25, 2022
7ad298b
fix merge errors
daxfohl Feb 25, 2022
1214001
Merge branch 'master' into quantumstate
daxfohl Mar 16, 2022
a2e8866
Merge branch 'master' into quantumstate
daxfohl Mar 18, 2022
cc315a4
Code review comments
daxfohl Mar 18, 2022
5768b68
Remove todo
daxfohl Mar 18, 2022
40b5e86
Merge branch 'master' into quantumstate
95-martin-orion Mar 21, 2022
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
422 changes: 293 additions & 129 deletions cirq-core/cirq/contrib/quimb/mps_simulator.py

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions cirq-core/cirq/contrib/quimb/mps_simulator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,3 +569,17 @@ def test_act_on_gate():
args.state_vector().reshape((2, 2, 2)),
cirq.one_hot(index=(0, 1, 0), shape=(2, 2, 2), dtype=np.complex64),
)


def test_deprectated():
q0 = cirq.LineQubit(0)
prng = np.random.RandomState(0)
args = ccq.mps_simulator.MPSState(
qubits=cirq.LineQubit.range(3),
prng=prng,
log_of_measurement_results={},
)
with cirq.testing.assert_deprecated(deadline='0.15'):
args.perform_measurement([q0], prng)
with cirq.testing.assert_deprecated(deadline='0.15'):
args.apply_op(cirq.X(q0), prng)
1 change: 1 addition & 0 deletions cirq-core/cirq/protocols/json_test_data/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
'ActOnArgsContainer',
'ActOnCliffordTableauArgs',
'ActOnDensityMatrixArgs',
'ActOnStabilizerArgs',
'ActOnStabilizerCHFormArgs',
'ActOnStateVectorArgs',
'ApplyChannelArgs',
Expand Down
Loading