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

Initialize processor sampler with the default device config key #6521

Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
use new FakeEngineContext
  • Loading branch information
senecameeks committed Mar 25, 2024
commit eaf153c8bf2a7b5e694b66449d7679af9509b7fb
7 changes: 3 additions & 4 deletions cirq-google/cirq_google/engine/engine_processor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ def __init__(self):
super().__init__()
self._processor = quantum.QuantumProcessor()

@duet.sync
async def get_processor_async(
self, project_id: str = "", processor_id: str = ""
def get_processor(
self, unused_project_id: str = "", unused_processor_id: str = ""
) -> quantum.QuantumProcessor:
return self._processor

Expand Down Expand Up @@ -352,7 +351,7 @@ def test_get_sampler_loads_processor_with_default_device_configuration() -> None
)
)
)
processor = cg.EngineProcessor('a', 'p', EngineContext(client=client))
processor = cg.EngineProcessor('a', 'p', FakeEngineContext(client=client))
sampler = processor.get_sampler()

assert sampler.run_name == "run"
Expand Down
Loading