Skip to content

Bug in circuit addition #511

@rraymondhp

Description

@rraymondhp

WARNING: All the circuits I was testing were generated with initialize()

The circuit can be constructed by combining two or more circuit. But adding circuits obtained from initialize() gives the wrong result. When having circuitC = circuitA + circuitB what we get is circuitC = circuitA.inverse() + circuitB.inverse().

Expected Behavior

circuitC = circuitA + circuitB instead.

Current Behavior

circuitC = circuitA + circuitB results in the application of circuitA.inverse() + circuitB.inverse().

Possible Solution

No idea

Steps to Reproduce (for bugs)

  1. Yeast
    yeast

  2. InverseYeast
    invyeast

  3. Yeast + InverseYeast
    yeast_invyeast

  4. The case below seems more complicated...

Yeast + Protozoan = ??? (unexpected circuit??)

image

Context

Your Environment

  • Version used: 0.5.2
  • Environment name and version (e.g. Python 3.6.1): Python 3.6.x
  • Operating System and version: MacOSX

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions