Skip to content

DESCRIBE on a COMPILER object errors #668

@stylewarning

Description

@stylewarning

Repro:

(describe #'COMMUTE-RZ-AFTER-CPHASE)

Output:

#<COMPILER COMMUTE-RZ-AFTER-CPHASE {10149CF36B}>
  [funcallable-instance]


Lambda-list: (X Y &KEY CONTEXT)
Derived type: (FUNCTION (T T &KEY (:CONTEXT T)) (VALUES T &OPTIONAL))
Documentation:
  T
Source file: quilc/src/compressor/rewriting-rules.lisp

Slots with :INSTANCE allocation:
  NAME                           = COMMUTE-RZ-AFTER-CPHASE
  INSTRUCTION-COUNT              = 2
  BINDINGS                       = (#S(GATE-BINDING..
  OPTIONS                        = NIL
  BODY                           = (LOCALLY (INST "CPHASE" `(,PHI) Q1 Q2) (INST "RZ" `(,THETA) Q))
  OUTPUT-GATES                   = #<OCCURRENCE-TABLE ..
  %FUNCTION                      = #<FUNCTION (LABELS COMMUTE-RZ-AFTER-CPHASE :IN "/Users/rssmith/Source/..

  NAME: COMMUTE-RZ-AFTER-CPHASE

  INPUT:
    RZ (THETA) Q
    CPHASE (PHI) Q1 Q2

  OUTPUT FREQUENCY:

Then errors with:

The value
  #<OCCURRENCE-TABLE 
  CPHASE (_) _ _ -> 1
  RZ (_) _ -> 1>

is not of type
  HASH-TABLE
   [Condition of type TYPE-ERROR]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions