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

Update ClassicalSimulator to use simulation infrastructure #6432

Conversation

shef4
Copy link
Contributor

@shef4 shef4 commented Jan 30, 2024

Related issue - #6343

TypeError: ClassicalStateSimulator.__init__() missing 3 required positional arguments: 'initial_state', 'qubits', and 'classical_data'

shef4 and others added 30 commits September 28, 2023 11:54
updat with latest version
Allow specifying settings field from Cirq-ionq (quantumlib#5817)
on 3+ qubits into single qubit measurements
if -and only if- the result isn't stored (i.e. key is None)
and test for changes in RoutCQC
removed unintended change
updates from review- varible names, ciruit build
@shef4
Copy link
Contributor Author

shef4 commented Feb 24, 2024

Hi @NoureldinYosri, I'm not sure what is causing this CI fail, any insight would be really appreciated.

FAILED dev_tools/docker_test.py::test_docker_pre - assert 1 == 0
 +  where 1 = CompletedProcess(args=['docker run cirq_image_pre python -c "import cirq; assert cirq.__version__ is not None"'], returncode=1).returncode
= 1 failed, 20135 passed, 146 skipped, 86 xfailed, 726 warnings in 365.34s (0:06:05) =

@NoureldinYosri
Copy link
Collaborator

NoureldinYosri commented Feb 26, 2024

@shef4 I temporarily supressed that test because it is failing at head.

@shef4
Copy link
Contributor Author

shef4 commented Feb 26, 2024

@NoureldinYosri Thanks, glad to know it's working. Learnt some interesting concepts from this issue!

cirq-core/cirq/sim/classical_simulator.py Outdated Show resolved Hide resolved
cirq-core/cirq/sim/classical_simulator.py Outdated Show resolved Hide resolved
cirq-core/cirq/sim/classical_simulator.py Outdated Show resolved Hide resolved
cirq-core/cirq/sim/classical_simulator.py Show resolved Hide resolved
cirq-core/cirq/sim/classical_simulator.py Outdated Show resolved Hide resolved
cirq-core/cirq/sim/classical_simulator.py Outdated Show resolved Hide resolved
cirq-core/cirq/sim/classical_simulator.py Outdated Show resolved Hide resolved
cirq-core/cirq/sim/classical_simulator.py Show resolved Hide resolved
@NoureldinYosri NoureldinYosri merged commit a2425eb into quantumlib:main Mar 19, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants