Skip to content

Why example of angle encoding is multiplying angles by 2 ? #5695

Description

URL to the relevant course

https://quantum.cloud.ibm.com/learning/en/courses/quantum-machine-learning/data-encoding#check-your-understanding-2

Select all that apply

  • new content request
  • typo
  • code bug
  • out-of-date content
  • broken link
  • other

Describe the fix or the content request.

Solution provides for example: qc.ry(2 * math.pi / 4, 1)
Why do we mulltiply by 2 ?
I would expect qc.ry(pi / 4, 1) as in the previous example on 1 qbit.
Thanks for checking.

For new content requests - if the request is accepted, do you want to write the content?

I can help the team by providing enough information or by referring them to a specific Subject Matter Expert to write the material

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions