Skip to content

AttributeError: module 'pennylane.kernels' has no attribute 'EmbeddingKernel' #4

@manu123416

Description

@manu123416

Hi,
I tried executing the kernel_demonstration.ipy code, but I am getting the below error:

AttributeError                            Traceback (most recent call last)
Cell In[5], line 4
      2 wires = list(range(5))
      3 # compute the kernel matrix
----> 4 k = qml.kernels.EmbeddingKernel(lambda x, params: ansatz(x, params, wires), dev)
AttributeError: module 'pennylane.kernels' has no attribute 'EmbeddingKernel'

Please suggest a way to correct this Error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions