Skip to content

Conditioning colour definition #4044

@Szyli

Description

@Szyli

I have found that under the if statements subsection, at the end of the third example, the explained function of the circle's colour is not fully consistent.

A black circle indicates conditioning on 1, while a white circle indicates conditioning on 0.

This statement is correct if we use the bright theme of the draw function. For example:

circuit.draw(output="mpl", style='iqp')
Image

But if we were to use the dark one, due to the colours switching, the circle's are opposite to the above (and what the quote describes).

circuit.draw(output="mpl", style='iqp-dark')
Image

Note, the functionality of the code remains the same and it is only the figure that is being affected.

Select all that apply

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

Describe the fix or the content request.

My proposal is to either include this detail in the guide or to fix the code such that it follows the above description for the colours.

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

I only want to review the material when it's finished

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions