Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
[QI2-1071] Refactored usage of CLIENT_ID variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasKA committed Nov 26, 2024
1 parent e9fb8ae commit 4235734
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/e2e_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _get_auth_tokens() -> None:
host = QI2_DEFAULT_HOST
member_id = asyncio.run(_fetch_team_member_id(host=host, access_token=token_info["access_token"]))
auth_settings = AuthSettings(
client_id="Yz7ni9PUAyT43eUASZfmc1yqI66QxLUJ",
client_id=CLIENT_ID,
code_challenge_method="S256",
code_verifyer_length=64,
well_known_endpoint=f"{IDP_URL_STAGING}/.well-known/openid-configuration",
Expand Down Expand Up @@ -95,8 +95,7 @@ def my_quantum_circuit(circuit_params): # type: ignore
# Step 5: Perform optimization (optional)
# For example, use gradient descent to minimize the output
opt = qml.GradientDescentOptimizer(stepsize=0.1)
for i in range(3):
params = opt.step(my_quantum_circuit, params)
params = opt.step(my_quantum_circuit, params)
result = my_quantum_circuit(params)
print(f"Optimized params: {params}")
print(f"Optimized result: {result}")
Expand Down

0 comments on commit 4235734

Please sign in to comment.