Skip to content

GateError: expected 1 parameters, was given 2 #466

@bramathon

Description

@bramathon

Quil 0.16.0

This error occurs when trying to get the unitary of an FSIM gate. I suspect that FSIM may not be know to quil, but it seems here that two-parameter gates may generally be unsupported.

import numpy as np
from quil.instructions import Gate, Qubit
from quil.expression import Expression

gate = Gate(name="FSIM", parameters=[Expression.from_number(complex(np.pi/3)), Expression.from_number(complex(np.pi/12))], qubits=[Qubit.from_fixed(0), Qubit.from_fixed(1)], modifiers=[])

gate.to_unitary_mut(2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions