Skip to content

remove extra User-Agent #6232

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

Merged
merged 7 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
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
2 changes: 1 addition & 1 deletion cirq-ionq/cirq_ionq/ionq_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def _user_agent(self):
"""
cirq_version_string = f'cirq/{cirq_version}'
python_version_string = f'python/{platform.python_version()}'
return f'User-Agent: {cirq_version_string} ({python_version_string})'
return f'{cirq_version_string} ({python_version_string})'

def _target(self, target: Optional[str]) -> str:
"""Returns the target if not None or the default target.
Expand Down
6 changes: 1 addition & 5 deletions cirq-ionq/cirq_ionq/ionq_devices_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import warnings
import cirq
import cirq_ionq as ionq
import pytest
Expand Down Expand Up @@ -88,8 +89,3 @@ def test_validate_circuit_valid():
gate_domain={gate: gate.num_qubits() for gate in VALID_GATES},
)
device.validate_circuit(circuit)


def test_decompose_operation_deprecated():
with cirq.testing.assert_deprecated('Use cirq.optimize_for_target_gateset', deadline='v0.16'):
_ = ionq.decompose_to_device(cirq.CZ(*cirq.LineQubit.range(2)))