Skip to content
14 changes: 11 additions & 3 deletions cirq-google/cirq_google/cloud/quantum/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from cirq_google.cloud.quantum import gapic_version as package_version

__version__ = package_version.__version__

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this generated or written? If written consider taking it out. The gapic_version.__version__ is currently a placeholder at 0.0.0 so there is no information.

Also this module is a part of the cirq-google package which has its own version at cirq_google.__version__. I don't see a reason to define and maintain a separate version value here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is generated, though I can update that version number if you like. Perhaps to have it reference cirq_google.__version__?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete it. It is not there in the main so there is no way any code needs it.


from cirq_google.cloud.quantum_v1alpha1.services.quantum_engine_service.client import (
QuantumEngineServiceClient,
Expand All @@ -32,6 +36,7 @@
from cirq_google.cloud.quantum_v1alpha1.types.engine import DeleteQuantumReservationRequest
from cirq_google.cloud.quantum_v1alpha1.types.engine import GetQuantumCalibrationRequest
from cirq_google.cloud.quantum_v1alpha1.types.engine import GetQuantumJobRequest
from cirq_google.cloud.quantum_v1alpha1.types.engine import GetQuantumProcessorConfigRequest
from cirq_google.cloud.quantum_v1alpha1.types.engine import GetQuantumProcessorRequest
from cirq_google.cloud.quantum_v1alpha1.types.engine import GetQuantumProgramRequest
from cirq_google.cloud.quantum_v1alpha1.types.engine import GetQuantumReservationRequest
Expand Down Expand Up @@ -61,6 +66,7 @@
from cirq_google.cloud.quantum_v1alpha1.types.engine import UpdateQuantumJobRequest
from cirq_google.cloud.quantum_v1alpha1.types.engine import UpdateQuantumProgramRequest
from cirq_google.cloud.quantum_v1alpha1.types.engine import UpdateQuantumReservationRequest
from cirq_google.cloud.quantum_v1alpha1.types.quantum import DeviceConfigKey
from cirq_google.cloud.quantum_v1alpha1.types.quantum import DeviceConfigSelector
from cirq_google.cloud.quantum_v1alpha1.types.quantum import ExecutionStatus
from cirq_google.cloud.quantum_v1alpha1.types.quantum import GcsLocation
Expand All @@ -70,14 +76,14 @@
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumJob
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumJobEvent
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumProcessor
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumProcessorConfig
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumProgram
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumReservation
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumReservationBudget
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumReservationGrant
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumResult
from cirq_google.cloud.quantum_v1alpha1.types.quantum import QuantumTimeSlot
from cirq_google.cloud.quantum_v1alpha1.types.quantum import SchedulingConfig
from cirq_google.cloud.quantum_v1alpha1.types.quantum import DeviceConfigKey

__all__ = (
'QuantumEngineServiceClient',
Expand All @@ -93,6 +99,7 @@
'DeleteQuantumReservationRequest',
'GetQuantumCalibrationRequest',
'GetQuantumJobRequest',
'GetQuantumProcessorConfigRequest',
'GetQuantumProcessorRequest',
'GetQuantumProgramRequest',
'GetQuantumReservationRequest',
Expand Down Expand Up @@ -122,6 +129,7 @@
'UpdateQuantumJobRequest',
'UpdateQuantumProgramRequest',
'UpdateQuantumReservationRequest',
'DeviceConfigKey',
'DeviceConfigSelector',
'ExecutionStatus',
'GcsLocation',
Expand All @@ -131,12 +139,12 @@
'QuantumJob',
'QuantumJobEvent',
'QuantumProcessor',
'QuantumProcessorConfig',
'QuantumProgram',
'QuantumReservation',
'QuantumReservationBudget',
'QuantumReservationGrant',
'QuantumResult',
'QuantumTimeSlot',
'SchedulingConfig',
'DeviceConfigKey',
)
16 changes: 16 additions & 0 deletions cirq-google/cirq_google/cloud/quantum/gapic_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.0.0" # {x-release-please-version}
14 changes: 11 additions & 3 deletions cirq-google/cirq_google/cloud/quantum_v1alpha1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from . import gapic_version as package_version

__version__ = package_version.__version__


from .services.quantum_engine_service import QuantumEngineServiceClient
from .services.quantum_engine_service import QuantumEngineServiceAsyncClient
Expand All @@ -28,6 +32,7 @@
from .types.engine import DeleteQuantumReservationRequest
from .types.engine import GetQuantumCalibrationRequest
from .types.engine import GetQuantumJobRequest
from .types.engine import GetQuantumProcessorConfigRequest
from .types.engine import GetQuantumProcessorRequest
from .types.engine import GetQuantumProgramRequest
from .types.engine import GetQuantumReservationRequest
Expand Down Expand Up @@ -57,6 +62,7 @@
from .types.engine import UpdateQuantumJobRequest
from .types.engine import UpdateQuantumProgramRequest
from .types.engine import UpdateQuantumReservationRequest
from .types.quantum import DeviceConfigKey
from .types.quantum import DeviceConfigSelector
from .types.quantum import ExecutionStatus
from .types.quantum import GcsLocation
Expand All @@ -66,14 +72,14 @@
from .types.quantum import QuantumJob
from .types.quantum import QuantumJobEvent
from .types.quantum import QuantumProcessor
from .types.quantum import QuantumProcessorConfig
from .types.quantum import QuantumProgram
from .types.quantum import QuantumReservation
from .types.quantum import QuantumReservationBudget
from .types.quantum import QuantumReservationGrant
from .types.quantum import QuantumResult
from .types.quantum import QuantumTimeSlot
from .types.quantum import SchedulingConfig
from .types.quantum import DeviceConfigKey

__all__ = (
'QuantumEngineServiceAsyncClient',
Expand All @@ -86,11 +92,13 @@
'DeleteQuantumJobRequest',
'DeleteQuantumProgramRequest',
'DeleteQuantumReservationRequest',
'DeviceConfigKey',
'DeviceConfigSelector',
'ExecutionStatus',
'GcsLocation',
'GetQuantumCalibrationRequest',
'GetQuantumJobRequest',
'GetQuantumProcessorConfigRequest',
'GetQuantumProcessorRequest',
'GetQuantumProgramRequest',
'GetQuantumReservationRequest',
Expand Down Expand Up @@ -120,6 +128,7 @@
'QuantumJob',
'QuantumJobEvent',
'QuantumProcessor',
'QuantumProcessorConfig',
'QuantumProgram',
'QuantumReservation',
'QuantumReservationBudget',
Expand All @@ -134,5 +143,4 @@
'UpdateQuantumJobRequest',
'UpdateQuantumProgramRequest',
'UpdateQuantumReservationRequest',
'DeviceConfigKey',
)
160 changes: 160 additions & 0 deletions cirq-google/cirq_google/cloud/quantum_v1alpha1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
"get_quantum_processor"
]
},
"GetQuantumProcessorConfig": {
"methods": [
"get_quantum_processor_config"
]
},
"GetQuantumProgram": {
"methods": [
"get_quantum_program"
Expand Down Expand Up @@ -210,6 +215,161 @@
"get_quantum_processor"
]
},
"GetQuantumProcessorConfig": {
"methods": [
"get_quantum_processor_config"
]
},
"GetQuantumProgram": {
"methods": [
"get_quantum_program"
]
},
"GetQuantumReservation": {
"methods": [
"get_quantum_reservation"
]
},
"GetQuantumResult": {
"methods": [
"get_quantum_result"
]
},
"ListQuantumCalibrations": {
"methods": [
"list_quantum_calibrations"
]
},
"ListQuantumJobEvents": {
"methods": [
"list_quantum_job_events"
]
},
"ListQuantumJobs": {
"methods": [
"list_quantum_jobs"
]
},
"ListQuantumProcessors": {
"methods": [
"list_quantum_processors"
]
},
"ListQuantumPrograms": {
"methods": [
"list_quantum_programs"
]
},
"ListQuantumReservationBudgets": {
"methods": [
"list_quantum_reservation_budgets"
]
},
"ListQuantumReservationGrants": {
"methods": [
"list_quantum_reservation_grants"
]
},
"ListQuantumReservations": {
"methods": [
"list_quantum_reservations"
]
},
"ListQuantumTimeSlots": {
"methods": [
"list_quantum_time_slots"
]
},
"QuantumRunStream": {
"methods": [
"quantum_run_stream"
]
},
"ReallocateQuantumReservationGrant": {
"methods": [
"reallocate_quantum_reservation_grant"
]
},
"UpdateQuantumJob": {
"methods": [
"update_quantum_job"
]
},
"UpdateQuantumProgram": {
"methods": [
"update_quantum_program"
]
},
"UpdateQuantumReservation": {
"methods": [
"update_quantum_reservation"
]
}
}
},
"rest": {
"libraryClient": "QuantumEngineServiceClient",
"rpcs": {
"CancelQuantumJob": {
"methods": [
"cancel_quantum_job"
]
},
"CancelQuantumReservation": {
"methods": [
"cancel_quantum_reservation"
]
},
"CreateQuantumJob": {
"methods": [
"create_quantum_job"
]
},
"CreateQuantumProgram": {
"methods": [
"create_quantum_program"
]
},
"CreateQuantumReservation": {
"methods": [
"create_quantum_reservation"
]
},
"DeleteQuantumJob": {
"methods": [
"delete_quantum_job"
]
},
"DeleteQuantumProgram": {
"methods": [
"delete_quantum_program"
]
},
"DeleteQuantumReservation": {
"methods": [
"delete_quantum_reservation"
]
},
"GetQuantumCalibration": {
"methods": [
"get_quantum_calibration"
]
},
"GetQuantumJob": {
"methods": [
"get_quantum_job"
]
},
"GetQuantumProcessor": {
"methods": [
"get_quantum_processor"
]
},
"GetQuantumProcessorConfig": {
"methods": [
"get_quantum_processor_config"
]
},
"GetQuantumProgram": {
"methods": [
"get_quantum_program"
Expand Down
16 changes: 16 additions & 0 deletions cirq-google/cirq_google/cloud/quantum_v1alpha1/gapic_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading
Loading