Upgrade cirq from 0.13.1 to ~= 1.0 and etc. #15
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
./scripts/test_all.sh gpu
for testing cuquantum ops together.For the recent
qsim 0.16.1
compatibility with Cirq, TFQ also needsCirq >= 1.0
. In this case, there are some deprecated & changed features.cirq_google.XMON
was deprecated : [cirq-google] Proposal: Remove XmonDevice, Bristlecone, Foxtail and rename optimize_for_xmon. quantumlib/Cirq#4856QuantumEngineSampler
was deprecated : Deprecate QuantumEngineSampler quantumlib/Cirq#5371cirq.CNOT
interface was changed.cirq.SingleQubitGate
was deprecated.cirq.testing.SingleQubitGate
: https://github.com/quantumlib/Cirq/pull/5272/filescirq.Gate
.ParseContext ProtoParse()
has bug.2023-05-02 04:52:39.342483: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at tfq_adj_grad_op_cuquantum.cu.cc:87 : INVALID_ARGUMENT: Unparseable proto: junk
and segfault.Test_simulate_state_large was too large.
SampledExpectationCuquantum
op bugcircuit_execution_ops_test:ExecutionOpsConsistentyTest.test_sampled_expectation_no_circuits4
failedLots of warnings fixed:
for (int … → for (size_t …
i--
), it should use int because it never goes under0
insize_t
, it runs forever.Adjoint gradient cuquantum op numerical error bug was fixed
BulkSetAmpl()
function forcuStatevec
state space. so, I temporarily added a cuda kernel.Added 4 Keras major layers (
Expectation
,SampledExpectation
,Sample
,State
)use_cuquantum
tests.backend
anduse_cuquantum
were unified.backend == 'noiseless' or backend is None
will be the first condition to checkuse_cuquantum
is required or not.quantum_concurrent
option together, to make itFalse
wheneveruse_cuquantum is True
.Fixed and verified
./scripts/test_all.sh gpu
passes.