Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Error with vizcircuit argument "filename" #57

Closed
Shinibali opened this issue Aug 29, 2022 · 1 comment
Closed

Error with vizcircuit argument "filename" #57

Shinibali opened this issue Aug 29, 2022 · 1 comment

Comments

@Shinibali
Copy link

I have been trying to save a vizcircuit plot as a pdf file. I keep getting to following error:

ERROR: MethodError: no method matching vizcircuit(::ChainBlock{2}; filename="C:/Users/Documents/research/yao_practice/qft.pdf")
Closest candidates are:
vizcircuit(::AbstractBlock; w_depth, w_line, scale, show_ending_bar, starting_texts, starting_offset, ending_texts, ending_offset, graphsize, gatestyles) at C:\Users\shini.julia\packages\YaoPlots\fhJ3Z\src\vizcircuit.jl:260 got unsupported keyword argument "filename"
vizcircuit(; kwargs...) at C:\Users\shini.julia\packages\YaoPlots\fhJ3Z\src\vizcircuit.jl:290
Stacktrace:
[1] kwerr(::NamedTuple{(:filename,), Tuple{String}}, ::Function, ::ChainBlock{2})
@ Base .\error.jl:163
[2] top-level scope
@ Untitled-1:7

@GiggleLiu
Copy link
Member

GiggleLiu commented Aug 30, 2022

This is wield, can you please check your package version using

pkg> status

Just make sure you are using YaoPlots 0.8.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants